microsoft / microsoft/terminal
MEGATHREAD: Commandline Args Follow-Up Work
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 105k
- Forks
- 9.6k
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 29
Description
Reference
- Original issue: #607
- Original Spec (Added in #3495)
- Initial Implementation PR: #4023
- UsingCommandlineArguments.md
Untriaged Bugs/Features
- #4619 wt does not handle newlines properly
1.0 Bugs
- #4618 wt command-line cannot consistently parse more than one argument
- #4602 WT -? -help --help window should include a link to the command line arguments
- #4571 wt.exe /d doesn't work if the directory path ends in '' and is quoted
The Help Dialog
- #4612 Help windows contain different help messages dependent of the way how help is triggered.
- The Help Dialog should have copy-pasteable text
- #4134
Post 1.0 features
- #4620 Add support for
initialPositionand others- From the spec:
When parsing a
new-tabcommand, configure theTerminalApp::AppLogicto
set some initial state about itself, to handle thenew-tabarguments
[--initialPosition,--maximized,--initialRows,--initialCols]. Only
set this state for the firstnew-tabparsed. These settings will overwrite
the corresponding global properties on launch. - #5464 Add support for
focus-pane - Add support for a profile to launch multiple panes using
wtcommands - Add support for running a set of
wtcommands on startup - #5466 Add support for "short" command name aliases (like
spforsplit-pane) - Add support for running commands on an existing wt window (e.g.
wt -s 0 split-paneopens a pane in the current window)- Add support for wt.exe to run commands in an existing Terminal Window #4472
- #6183 Add support for
-t,--title titleto set the startingTitle of a new terminal session (add toterminal_parameters) - #6298
wt.exeshould support-%,--percentfor setting a pane's size on the commandline - #6580 Maybe add support for
move-focussubcommand - Add command-line option start terminal in focus mode (after/during #7825)
- Set tab color in command line #8075
2.0 Bugs
- Fails to launch maximized/fullscreen and the given profile #7318
- The nextTab and prevTab actions do not work correctly when initiated via wt.exe or the command palette #10070
- #12191
Backlog
- #5462 Add support for
open-settings - #5465 Add support for
--file,-f configuration_filefor reading a list of commands from a file - Add command-line option start terminal minimized #7374
- Add support for
send-inputsubcommand #9368 - Allow for ExecuteCommandline actions to be called straight from the commandline #9994
- Command line spec/override for closeOnExit #10019
- #4637 Other options for overriding profile starting directory
- #5528 Add support for appending a commandline to a profile's commandline
- WT probably needs a CLI exe to interact with the Terminal via the command line.
- #7258
wt --helpshould print text to terminal, instead of popping open a modal dialog - #11616
- #5463 Add support for
list-profiles
- #7258
- #15496
- #16008
Discussion
- #4611 -H and -V parameters shouldn't be case-sensitive
- #4570
;is an annoying separator character - #4601 long form arguments (e.g.
--profile) have poor discoverability - Windows commandline args are usually
/fooBarbut ours are--fooBarand that's weird - #5801 Add support for launching fullscreen?
- #19818
Other related discussion
- Pass commands to new wt instance. Is this already supported? #4598
- Add support for wt.exe to run commands in the current Terminal Window #4656
- wt support run command in application #4864
- Shouldn't help ( -h or --help) print to the console? #4887
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked Original Spec and UsingCommandlineArguments.md, then review the unchecked entries and their referenced issues to identify one bounded task. This megathread names no implementation file, test, or single completion criterion, so the work is done only after a specific follow-up is selected and its behavior is defined.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100