terminal/src/cascadia
Mike Griese 445da4bae4
wt.exe: Add support for "short" sub-commands (#6576)
This adds `nt`, `sp`, and `ft` as aliases for `new-tab`, `split-pane`,
and `focus-tab`, respectively. These do exactly the same thing as their
long for counterparts, but are just shorter, for those of us who type
slower than a fifth grader 👀 

Now you can do
```
wt nt cmd.exe /k #work 15 ; sp cmd.exe /k #work 15 ; sp cmd.exe /k
media-commandline ; nt powershell dev\\symbols.ps1 ; nt -p \"Ubuntu\" ;
nt -p \"Ubuntu\" ; ft -t 0
``` 

instead of 

```
new-tab cmd.exe /k #work 15 ; split-pane cmd.exe /k #work 15 ;
split-pane cmd.exe /k media-commandline ; new-tab powershell
dev\\symbols.ps1 ; new-tab -p \"Ubuntu\" ; new-tab -p \"Ubuntu\" ;
focus-tab -t 0
```

The pattern I'm using here is that each of these subcommands now has a
little helper lambda that actually sets up the subcommand with the
required arguments, and we just call that lambda twice, once for the
long-form of the command, and again for the short.

I imagine that in the future, we won't necessarily have short-forms for
every subcommands, so if there are future conflicts we'd have to figure
that out pre-emptively, but these all seem like they'll need a short
form. 

Closes #5466
2020-07-14 18:50:32 +00:00
..
CascadiaPackage Build and ship an actual binary named wt that just launches WT (#6860) 2020-07-10 22:41:37 +00:00
inc Add support for the Command Palette (#6635) 2020-06-26 20:38:02 +00:00
LocalTests_TerminalApp wt.exe: Add support for "short" sub-commands (#6576) 2020-07-14 18:50:32 +00:00
PublicTerminalCore Refactor the renderer color calculations (#6853) 2020-07-10 22:26:34 +00:00
ShellExtension Make the Shell Extension methods STDMETHODIMP (#6238) 2020-05-28 14:09:52 -07:00
TerminalApp wt.exe: Add support for "short" sub-commands (#6576) 2020-07-14 18:50:32 +00:00
TerminalAzBridge Fix the build in VS 2019 16.7 (#6838) 2020-07-09 04:10:50 +00:00
TerminalConnection Replace old C headers (xxx.h) with modern ones (cxxx) (#5080) 2020-07-01 11:00:24 -07:00
TerminalControl Remove the rowsToScroll setting and just always use the system setting (#6891) 2020-07-14 01:38:11 +00:00
TerminalCore Move to GSL 3.1.0 (#6908) 2020-07-14 18:30:59 +00:00
TerminalSettings Remove the rowsToScroll setting and just always use the system setting (#6891) 2020-07-14 01:38:11 +00:00
UnitTests_TerminalCore Remove the rowsToScroll setting and just always use the system setting (#6891) 2020-07-14 01:38:11 +00:00
ut_app Move to GSL 3.1.0 (#6908) 2020-07-14 18:30:59 +00:00
WindowsTerminal Add support for focus mode (#6804) 2020-07-13 17:40:20 +00:00
WindowsTerminalUniversal Fix the build in VS 2019 16.7 (#6838) 2020-07-09 04:10:50 +00:00
WinRTUtils Add support for the Command Palette (#6635) 2020-06-26 20:38:02 +00:00
WpfTerminalControl Replace std::map with std::unordered_map (#6640) 2020-06-23 20:49:07 +00:00
WpfTerminalTestNetCore/WpfTerminalTestNetCore Fix 3 different bugs in the WPF control (#6464) 2020-06-11 18:05:43 +00:00
wt Build and ship an actual binary named wt that just launches WT (#6860) 2020-07-10 22:41:37 +00:00
CascadiaResources.build.items Add a new appxmanifest for preview (#5774) 2020-05-07 16:00:56 +00:00