Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add running commands to an action #596

Merged
merged 1 commit into from
Jul 2, 2021

Conversation

a-kenji
Copy link
Contributor

@a-kenji a-kenji commented Jul 2, 2021

Add the ability to bind running commands to
an action.

Eg:

 - action: [Run: {command: "htop",},]
   key: [F: 6,]

Optionally the direction and arguments can be
specified:

 - action: [Run: {command: "htop", args: ["-C",]},]
   key: [F: 7,]

The directional splits are analogous to the [NewPane] splits.

- action: [Run: {command: "htop", args: ["-C",], direction: "Up"},]
  key: [F: 8,]

Add the ability to bind running commands to
an action.

Eg:
```
- action: [Run: {command: "htop",},]
  key: [F: 6,]
``

Optionally the direction and arguments can be
specified:

```
- action: [Run: {command: "htop", args: ["-C",]},]
  key: [F: 7,]
```
The directional splits are analogous to the `[NewPane]` splits.
```
- action: [Run: {command: "htop", args: ["-C",], direction: "Up"},]
  key: [F: 8,]
```
@a-kenji a-kenji merged commit 5c3759e into zellij-org:main Jul 2, 2021
@a-kenji a-kenji deleted the run-command-action branch July 2, 2021 12:06
a-kenji added a commit that referenced this pull request Jul 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant