<h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: 10.0.18362.0
Windows Terminal version: 0.5.2762.0
Terminals: Ubuntu WSL, git-bash, cygwin"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: 10.0.18362.0
Windows Terminal version: 0.5.2762.0
Terminals: Ubuntu WSL, git-bash, cygwin
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<p dir="auto">Copy and paste the command below into the terminal:</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="echo \
'backslash test'"><pre class="notranslate"><span class="pl-c1">echo</span> \
<span class="pl-s"><span class="pl-pds">'</span>backslash test<span class="pl-pds">'</span></span></pre></div>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">Be interpreted as a single command.</p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">It is being interpreted as two commands.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/17688846/67058537-a378c700-f12b-11e9-85fa-abc1c277e7f6.png"><img src="https://user-images.githubusercontent.com/17688846/67058537-a378c700-f12b-11e9-85fa-abc1c277e7f6.png" alt="image" style="max-width: 100%;"></a></p>
<h1 dir="auto">More Information</h1>
<p dir="auto">If you copy and paste the code below, it works fine.</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="echo 'line 1' &amp;&amp; \
echo 'line 2'"><pre class="notranslate"><span class="pl-c1">echo</span> <span class="pl-s"><span class="pl-pds">'</span>line 1<span class="pl-pds">'</span></span> <span class="pl-k">&amp;&amp;</span> \
<span class="pl-c1">echo</span> <span class="pl-s"><span class="pl-pds">'</span>line 2<span class="pl-pds">'</span></span></pre></div>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/17688846/67058623-fce0f600-f12b-11e9-8dd7-f73454149e1f.png"><img src="https://user-images.githubusercontent.com/17688846/67058623-fce0f600-f12b-11e9-8dd7-f73454149e1f.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">You can only open a pane with the default profile</p>
<p dir="auto">I left space for adding support for opening a specific pane, but it didn't really seem like there was a good keychord for doing this currently. Maybe if we added support for multi-key keychords, then it'd make more sense.</p>
<p dir="auto">EDIT:</p>
<p dir="auto">With <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="515497591" data-permission-text="Title is private" data-url="https://github.com/microsoft/terminal/issues/3391" data-hovercard-type="pull_request" data-hovercard-url="/microsoft/terminal/pull/3391/hovercard" href="https://github.com/microsoft/terminal/pull/3391">#3391</a> merged, this is pretty possible now.</p>
<p dir="auto">I'd really like for this to work like the following:</p>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="    { &quot;command&quot;: &quot;splitHorizontal&quot;, &quot;keys&quot;: [ &quot;alt+shift+-&quot; ] },
    { &quot;command&quot;: &quot;splitVertical&quot;, &quot;keys&quot;: [ &quot;alt+shift+plus&quot; ] },

    { &quot;keys&quot;: [ &quot;alt+1&quot; ], &quot;command&quot;: { &quot;action&quot;: &quot;split&quot;, &quot;style&quot;: &quot;horizontal&quot; } },
    { &quot;keys&quot;: [ &quot;alt+2&quot; ], &quot;command&quot;: { &quot;action&quot;: &quot;split&quot;, &quot;style&quot;: &quot;vertical&quot;, &quot;profile&quot;: &quot;{some-guid}&quot; } },
    { &quot;keys&quot;: [ &quot;alt+3&quot; ], &quot;command&quot;: { &quot;action&quot;: &quot;split&quot;, &quot;style&quot;: &quot;horizontal&quot;, &quot;type&quot;: &quot;duplicate&quot; } },
    { &quot;keys&quot;: [ &quot;alt+4&quot; ], &quot;command&quot;: { &quot;action&quot;: &quot;split&quot;, &quot;style&quot;: &quot;vertical&quot;, &quot;type&quot;: &quot;prompt&quot; } },"><pre class="notranslate">    { <span class="pl-ent">"command"</span>: <span class="pl-s"><span class="pl-pds">"</span>splitHorizontal<span class="pl-pds">"</span></span>, <span class="pl-ent">"keys"</span>: [ <span class="pl-s"><span class="pl-pds">"</span>alt+shift+-<span class="pl-pds">"</span></span> ] },
    { <span class="pl-ent">"command"</span>: <span class="pl-s"><span class="pl-pds">"</span>splitVertical<span class="pl-pds">"</span></span>, <span class="pl-ent">"keys"</span>: [ <span class="pl-s"><span class="pl-pds">"</span>alt+shift+plus<span class="pl-pds">"</span></span> ] },

    { <span class="pl-ent">"keys"</span>: [ <span class="pl-s"><span class="pl-pds">"</span>alt+1<span class="pl-pds">"</span></span> ], <span class="pl-ent">"command"</span>: { <span class="pl-ent">"action"</span>: <span class="pl-s"><span class="pl-pds">"</span>split<span class="pl-pds">"</span></span>, <span class="pl-ent">"style"</span>: <span class="pl-s"><span class="pl-pds">"</span>horizontal<span class="pl-pds">"</span></span> } },
    { <span class="pl-ent">"keys"</span>: [ <span class="pl-s"><span class="pl-pds">"</span>alt+2<span class="pl-pds">"</span></span> ], <span class="pl-ent">"command"</span>: { <span class="pl-ent">"action"</span>: <span class="pl-s"><span class="pl-pds">"</span>split<span class="pl-pds">"</span></span>, <span class="pl-ent">"style"</span>: <span class="pl-s"><span class="pl-pds">"</span>vertical<span class="pl-pds">"</span></span>, <span class="pl-ent">"profile"</span>: <span class="pl-s"><span class="pl-pds">"</span>{some-guid}<span class="pl-pds">"</span></span> } },
    { <span class="pl-ent">"keys"</span>: [ <span class="pl-s"><span class="pl-pds">"</span>alt+3<span class="pl-pds">"</span></span> ], <span class="pl-ent">"command"</span>: { <span class="pl-ent">"action"</span>: <span class="pl-s"><span class="pl-pds">"</span>split<span class="pl-pds">"</span></span>, <span class="pl-ent">"style"</span>: <span class="pl-s"><span class="pl-pds">"</span>horizontal<span class="pl-pds">"</span></span>, <span class="pl-ent">"type"</span>: <span class="pl-s"><span class="pl-pds">"</span>duplicate<span class="pl-pds">"</span></span> } },
    { <span class="pl-ent">"keys"</span>: [ <span class="pl-s"><span class="pl-pds">"</span>alt+4<span class="pl-pds">"</span></span> ], <span class="pl-ent">"command"</span>: { <span class="pl-ent">"action"</span>: <span class="pl-s"><span class="pl-pds">"</span>split<span class="pl-pds">"</span></span>, <span class="pl-ent">"style"</span>: <span class="pl-s"><span class="pl-pds">"</span>vertical<span class="pl-pds">"</span></span>, <span class="pl-ent">"type"</span>: <span class="pl-s"><span class="pl-pds">"</span>prompt<span class="pl-pds">"</span></span> } },</pre></div>
<p dir="auto">The first two entries are the legacy style keybindings for panes.</p>
<p dir="auto">The next four represent 4 different ways of opening a new pane:</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <kbd>alt+1</kbd>: Open a new pane with the default profile. This is the current behavior.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <kbd>alt+2</kbd>: Open a new pane with the profile with guid "{some-guid}". (this issue)</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <kbd>alt+3</kbd>: Open a new pane with the same profile as the currently focused pane. (this is tacked in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="462736848" data-permission-text="Title is private" data-url="https://github.com/microsoft/terminal/issues/1756" data-hovercard-type="issue" data-hovercard-url="/microsoft/terminal/issues/1756/hovercard" href="https://github.com/microsoft/terminal/issues/1756">#1756</a>)</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <kbd>alt+4</kbd>: Open a new pane by prompting the user first. (this is tacked in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="523144106" data-permission-text="Title is private" data-url="https://github.com/microsoft/terminal/issues/3586" data-hovercard-type="issue" data-hovercard-url="/microsoft/terminal/issues/3586/hovercard" href="https://github.com/microsoft/terminal/issues/3586">#3586</a>)</li>
</ul>
<p dir="auto">This issue will track just that second option.</p>