Skip to content

Commit

Permalink
Add Multiple Actions Command (#401)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rosefield authored Oct 15, 2021
1 parent d56d622 commit fc4b860
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions TerminalDocs/customize-settings/actions.md
Original file line number Diff line number Diff line change
Expand Up @@ -1158,3 +1158,36 @@ ___
This unbinds the associated keys from any command.

**Command name:** `unbound`

## Run Multiple Actions

This action allows the user to bind multiple sequential actions to one command.

**Command name:** `multipleActions`

#### Actions

| Name | Necessity | Accepts | Description |
| ---- | --------- | ------- | ----------- |
| `actions` | Required | Array of Actions | The list of `action` to run. |


#### Examples

```jsonc
{ "name": "Create My Layout", "command": {
"action": "multipleActions",
"actions": [
// Create a new tab with 3 panes
{ "action": "newTab", "tabTitle": "Work", "colorScheme": "One Half Dark" },
{ "action": "splitPane", "split": "vertical", "profile": "Windows PowerShell", "tabTitle": "Work", "colorScheme": "Campbell Powershell", },
{ "action": "splitPane", "split": "horizontal", "profile": "Windows PowerShell", "tabTitle": "Work", "colorScheme": "Campbell Powershell", },
// Create a second tab
{ "action": "newTab", "tabTitle": "Misc"},
// Go back to the first tab and zoom the first pane
{ "action": "prevTab", "tabSwitcherMode": "disabled" },
{ "action": "moveFocus", "direction": "first"},
"togglePaneZoom"
]
}}
```

0 comments on commit fc4b860

Please sign in to comment.