Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
zadjii-msft committed Dec 15, 2020
1 parent 6b53c67 commit 7087485
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
7 changes: 6 additions & 1 deletion TerminalDocs/command-line-arguments.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,17 @@ Below is the full list of supported commands and options for the `wt` command li
| Command | Parameters | Description |
| ------- | ---------- | ----------- |
| `new-tab`, `nt` | `--profile, -p profile-name`, `--startingDirectory, -d starting-directory`, `commandline`, `--title` | Creates a new tab. |
| `split-pane`, `sp` | `-H, --horizontal`, `-V, --vertical`, `--profile, -p profile-name`, `--startingDirectory, -d starting-directory`, `commandline`, `--title` | Splits a new pane. |
| `split-pane`, `sp` | `-H, --horizontal`, `-V, --vertical`, `--profile, -p profile-name`, `--startingDirectory, -d starting-directory`, `--title title`, `--size,-s size`, `commandline`| Splits a new pane. |
| `focus-tab`, `ft` | `--target, -t tab-index` | Focuses on a specific tab. |

> [!IMPORTANT]
> The `--size,-s size` parameter to the `split-pane` subcommand is only available in [Windows Terminal Preview](https://aka.ms/terminal-preview/), version 1.6+.
> [!NOTE]
> When opening Windows Terminal from cmd (Command Prompt), if you want to use your custom "cmd" profile settings, you will need to use the command `wt -p cmd`. Otherwise, to run your *default* profile settings, just use `wt cmd`.


## Command line argument examples

Commands may vary slightly depending on which command line you're using.
Expand Down
11 changes: 8 additions & 3 deletions TerminalDocs/customize-settings/actions.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ ___
`ctrl+`, `shift+`, `alt+`

> [!NOTE]
> The `Windows` key is not supported as a modifier.
> The `Windows` key is not supported as a modifier.
### Modifier keys

Expand Down Expand Up @@ -595,8 +595,8 @@ This halves the size of the active pane and opens another. Without any arguments
{ "command": { "action": "splitPane", "split": "auto", "splitMode": "duplicate" }, "keys": "alt+shift+d" },

// In defaults.json
{ "command": { "action": "splitPane", "split": "horizontal"}, "keys": "alt+shift+-" },
{ "command": { "action": "splitPane", "split": "vertical"}, "keys": "alt+shift+plus" }
{ "command": { "action": "splitPane", "split": "horizontal" }, "keys": "alt+shift+-" },
{ "command": { "action": "splitPane", "split": "vertical" }, "keys": "alt+shift+plus" }
```

#### Actions
Expand All @@ -610,6 +610,11 @@ This halves the size of the active pane and opens another. Without any arguments
| `index` | Optional | Integer | Profile that will open based on its position in the dropdown (starting at 0). |
| `profile` | Optional | Profile's name or GUID as a string | Profile that will open based on its GUID or name. |
| `splitMode` | Optional | `"duplicate"` | Controls how the pane splits. Only accepts `"duplicate"`, which will duplicate the focused pane's profile into a new pane. |
| `size` | Optional | Float | Specify how large the new pane should be, as a fraction of the current pane's size. `1.0` would be "all of the current pane", and `0.0` is "None of the parent". Defaults to `0.5`. |


> [!IMPORTANT]
> The `size` parameter was added in [Windows Terminal Preview](https://aka.ms/terminal-preview), version 1.6.
<br />

Expand Down

0 comments on commit 7087485

Please sign in to comment.