Skip to content

Commit

Permalink
Clean up commands sheet
Browse files Browse the repository at this point in the history
  • Loading branch information
anjakefala committed Sep 27, 2024
1 parent a57cf0a commit 080e1e8
Showing 1 changed file with 14 additions and 24 deletions.
38 changes: 14 additions & 24 deletions visidata/guides/CommandsSheet.md
Original file line number Diff line number Diff line change
@@ -1,38 +1,28 @@
# The Command Sheet: How to find the command you want run

The Command Sheet lists all of the available commands, their keyboard bindings, function names and other information.
# How to find commands

## Use the fuzzy finder to search by name

- {help.commands.exec_longname}

Press [:keys]Tab[/] to provide a numeric jumplist. Typing the number next to a command will execute the command.

## Open the Command Sheet for all commands

- {help.commands.help_commands_all}

Start typing a command longname or keyword in its helpstring.

## Open the Command Sheet for the current sheet
- [:code]Enter[/] to execute top command.
- [:code]Tab[/] to highlight top command and provide a numeric jumplist.

- {help.commands.help_commands}

## Search for commands

Just like any other sheet, use search and select on the Comand Sheet. The `description` and `longname` columns are helpful.
When a command is highlighted:

- {help.commands.search_col}
- {help.commands.search_cols}
- [:code]Tab[/]/[:code]Shift+Tab[/] to cycle highlighted command.
- [:code]Enter[/] to execute highlighted command.
- [:code]0-9[/] to execute numbered command.

- {help.commands.search_next}
- {help.commands.searchr_next}
## Command Sheet

To create a new sheet with only related commands, select rows that match some part of the command, for example, `save`:
The Command Sheet lists all of the available commands, their keyboard bindings, function names and other information.

- {help.commands.select_cols_regex} to find and highlight commands containing a pattern
- open these rows as a new sheet with [:keys]"[/]
- {help.commands.help_commands_all}
- {help.commands.help_commands}

## Look up keybindings
'description' and 'longname' column: useful to find rows that share a longname suffix or prefix. E.g, `save` or `selected`.

Using the `keystrokes` and/or the `all_bindings` column, search for a key binding. For example, search for 'Ctrl' to find all keybindings that use the 'Ctrl' key.
'keystrokes' and 'all_bindings' column: useful to search for keybindings. E.g, `Ctrl` or `F`.

0 comments on commit 080e1e8

Please sign in to comment.