docs: full keymap commands

This commit is contained in:
sxyazi 2023-07-20 00:23:55 +08:00
parent 1397401711
commit 8b7f72afaa
No known key found for this signature in database

View File

@ -6,7 +6,7 @@
- quit: Exit the process. - quit: Exit the process.
- close: Close the current tab; if it is the last tab, then exit the process. - close: Close the current tab; if it is the last tab, then exit the process.
Navigation ### Navigation
- arrow - arrow
@ -17,7 +17,7 @@ Navigation
- back: Go back to the previous directory. - back: Go back to the previous directory.
- forward: Go forward to the next directory. - forward: Go forward to the next directory.
Selection ### Selection
- select - select
@ -35,7 +35,7 @@ Selection
- `--state=false`: Deselect all files. - `--state=false`: Deselect all files.
- `--state=none`: Default, toggle the selection state of all files. - `--state=none`: Default, toggle the selection state of all files.
Operation ### Operation
- open: Open the selected files. - open: Open the selected files.
@ -54,8 +54,7 @@ Operation
- `--permanently`: Permanently delete the file. - `--permanently`: Permanently delete the file.
- create: Create a file or directory (append `/` at the end of the filename for directory). - create: Create a file or directory (ends with `/` for directory).
- rename: Rename a file or directory. - rename: Rename a file or directory.
- hidden: Set the visibility of hidden files. - hidden: Set the visibility of hidden files.
@ -74,7 +73,7 @@ Operation
- `fzf`: Jump to a directory, or reveal a file using fzf. - `fzf`: Jump to a directory, or reveal a file using fzf.
- `zoxide`: Jump to a directory using zoxide. - `zoxide`: Jump to a directory using zoxide.
Tabs ### Tabs
- tab_create - tab_create
@ -88,24 +87,62 @@ Tabs
- tab_switch - tab_switch
- `n`: Switch to the tab at position n, starting from 0. - `n`: Switch to the tab at position n, starting from 0.
- `relative`: Switch to the tab at a position relative to the current tab. The value of n can be negative when using this parameter. - `--relative`: Switch to the tab at a position relative to the current tab. The value of n can be negative when using this parameter.
- tab_swap - tab_swap
- `n`: Swap the current tab with the tab at position n, where negative values move the tab forward, and positive values move it backward. - `n`: Swap the current tab with the tab at position n, where negative values move the tab forward, and positive values move it backward.
Tasks ### Tasks
- tasks_show: Display the task manager. - tasks_show: Display the task manager.
## tasks ## tasks
TODO - close: Hide the task manager.
- arrow:
- `-1`: Move the cursor up 1 line.
- `1`: Move the cursor down 1 line.
- cancel: Cancel the task.
## select ## select
TODO - close: Cancel selection.
- `--submit`: Submit the selection.
- arrow
- `n`: Move the cursor up or down n lines. Negative value for up, positive value for down.
## input ## input
TODO ### Normal mode
- close: Cancel input.
- `--submit`: Submit the input.
- escape: Cancel visual mode and enter normal mode.
- insert: Enter insert mode.
- `--append`: Insert after the cursor.
- visual: Enter visual mode.
- move: Move the cursor left or right.
- `n`: Move the cursor n characters left or right. Negative value for left, positive value for right.
- backward: Move to the beginning of the previous word.
- forward: Move to the beginning of the next word.
- `--end-of-word`: Move to the end of the next word.
- delete: Delete the selected characters.
- `--insert`: Delete and enter insert mode.
### Insert mode
- close: Cancel input.
- `--submit`: Submit the input.
- escape: Cancel insert mode and enter normal mode.
- backspace: Delete the character before the cursor.