Skip to content

Commit

Permalink
Document shell commands in keymap.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Omnikar committed Aug 30, 2021
1 parent 123815b commit 7cd098e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions book/src/keymap.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,16 @@ in reverse, or searching via smartcase.
| `[D` | Go to first diagnostic in document | `goto_first_diag` |
| `]D` | Go to last diagnostic in document | `goto_last_diag` |

### Shell

| Key | Description | Command |
| ------ | ----------- | ------- |
| `\|` | Pipe each selection through shell command, replacing with output | `shell_pipe` |
| `A-\|` | Pipe each selection into shell command, ignoring output | `shell_pipe_to` |
| `!` | Run shell command, inserting output before each selection | `shell_insert_output` |
| `A-!` | Run shell command, appending output after each selection | `shell_append_output` |
| `$` | Pipe each selection into shell command, removing if the command exits >0 | `shell_keep_pipe` |

## Select / extend mode

I'm still pondering whether to keep this mode or not. It changes movement
Expand Down

0 comments on commit 7cd098e

Please sign in to comment.