| 1 | # A TOML linter such as https://taplo.tamasfe.dev/ can use this schema to validate your config. |
| 2 | # If you encounter any issues, please make an issue at https://github.com/yazi-rs/schemas. |
| 3 | "$schema" = "https://yazi-rs.github.io/schemas/keymap.json" |
| 4 | |
| 5 | [mgr] |
| 6 | |
| 7 | keymap = [ |
| 8 | { on = "<Esc>", run = "escape", desc = "Exit visual mode, clear selection, or cancel search" }, |
| 9 | { on = "<C-[>", run = "escape", desc = "Exit visual mode, clear selection, or cancel search" }, |
| 10 | { on = "q", run = "quit", desc = "Quit the process" }, |
| 11 | { on = "Q", run = "quit --no-cwd-file", desc = "Quit without outputting cwd-file" }, |
| 12 | { on = "<C-c>", run = "close", desc = "Close the current tab, or quit if it's last" }, |
| 13 | { on = "<C-z>", run = "suspend", desc = "Suspend the process" }, |
| 14 | |
| 15 | # Hopping |
| 16 | { on = "k", run = "arrow prev", desc = "Previous file" }, |
| 17 | { on = "j", run = "arrow next", desc = "Next file" }, |
| 18 | |
| 19 | { on = "<Up>", run = "arrow prev", desc = "Previous file" }, |
| 20 | { on = "<Down>", run = "arrow next", desc = "Next file" }, |
| 21 | |
| 22 | { on = "<C-u>", run = "arrow -50%", desc = "Move cursor up half page" }, |
| 23 | { on = "<C-d>", run = "arrow 50%", desc = "Move cursor down half page" }, |
| 24 | { on = "<C-b>", run = "arrow -100%", desc = "Move cursor up one page" }, |
| 25 | { on = "<C-f>", run = "arrow 100%", desc = "Move cursor down one page" }, |
| 26 | |
| 27 | { on = "<S-PageUp>", run = "arrow -50%", desc = "Move cursor up half page" }, |
| 28 | { on = "<S-PageDown>", run = "arrow 50%", desc = "Move cursor down half page" }, |
| 29 | { on = "<PageUp>", run = "arrow -100%", desc = "Move cursor up one page" }, |
| 30 | { on = "<PageDown>", run = "arrow 100%", desc = "Move cursor down one page" }, |
| 31 | |
| 32 | { on = [ "g", "g" ], run = "arrow top", desc = "Go to top" }, |
| 33 | { on = "G", run = "arrow bot", desc = "Go to bottom" }, |
| 34 | |
| 35 | # Navigation |
| 36 | { on = "h", run = "leave", desc = "Back to the parent directory" }, |
| 37 | { on = "l", run = "enter", desc = "Enter the child directory" }, |
| 38 | |
| 39 | { on = "<Left>", run = "leave", desc = "Back to the parent directory" }, |
| 40 | { on = "<Right>", run = "enter", desc = "Enter the child directory" }, |
| 41 | |
| 42 | { on = "H", run = "back", desc = "Back to previous directory" }, |
| 43 | { on = "L", run = "forward", desc = "Forward to next directory" }, |
| 44 | |
| 45 | # Toggle |
| 46 | { on = "<Space>", run = [ "toggle", "arrow next" ], desc = "Toggle the current selection state" }, |
| 47 | { on = "<C-a>", run = "toggle_all --state=on", desc = "Select all files" }, |
| 48 | { on = "<C-r>", run = "toggle_all", desc = "Invert selection of all files" }, |
| 49 | |
| 50 | # Visual mode |
| 51 | { on = "v", run = "visual_mode", desc = "Enter visual mode (selection mode)" }, |
| 52 | { on = "V", run = "visual_mode --unset", desc = "Enter visual mode (unset mode)" }, |
| 53 | |
| 54 | # Seeking |
| 55 | { on = "K", run = "seek -5", desc = "Seek up 5 units in the preview" }, |
| 56 | { on = "J", run = "seek 5", desc = "Seek down 5 units in the preview" }, |
| 57 | |
| 58 | # Spotting |
| 59 | { on = "<Tab>", run = "spot", desc = "Spot hovered file" }, |
| 60 | |
| 61 | # Operation |
| 62 | { on = "o", run = "open", desc = "Open selected files" }, |
| 63 | { on = "O", run = "open --interactive", desc = "Open selected files interactively" }, |
| 64 | { on = "<Enter>", run = "open", desc = "Open selected files" }, |
| 65 | { on = "<S-Enter>", run = "open --interactive", desc = "Open selected files interactively" }, |
| 66 | { on = "y", run = "yank", desc = "Yank selected files (copy)" }, |
| 67 | { on = "x", run = "yank --cut", desc = "Yank selected files (cut)" }, |
| 68 | { on = "p", run = "paste", desc = "Paste yanked files" }, |
| 69 | { on = "P", run = "paste --force", desc = "Paste yanked files (overwrite if the destination exists)" }, |
| 70 | { on = "-", run = "link", desc = "Symlink the absolute path of yanked files" }, |
| 71 | { on = "_", run = "link --relative", desc = "Symlink the relative path of yanked files" }, |
| 72 | { on = "<C-->", run = "hardlink", desc = "Hardlink yanked files" }, |
| 73 | { on = "Y", run = "unyank", desc = "Cancel the yank status" }, |
| 74 | { on = "X", run = "unyank", desc = "Cancel the yank status" }, |
| 75 | { on = "d", run = "remove", desc = "Trash selected files" }, |
| 76 | { on = "D", run = "remove --permanently", desc = "Permanently delete selected files" }, |
| 77 | { on = "a", run = "create", desc = "Create a file (ends with / for directories)" }, |
| 78 | { on = "r", run = "rename --cursor=before_ext", desc = "Rename selected file(s)" }, |
| 79 | { on = ";", run = "shell --interactive", desc = "Run a shell command" }, |
| 80 | { on = ":", run = "shell --block --interactive", desc = "Run a shell command (block until finishes)" }, |
| 81 | { on = ".", run = "hidden toggle", desc = "Toggle the visibility of hidden files" }, |
| 82 | { on = "s", run = "search --via=fd", desc = "Search files by name via fd" }, |
| 83 | { on = "S", run = "search --via=rg", desc = "Search files by content via ripgrep" }, |
| 84 | { on = "<C-s>", run = "escape --search", desc = "Cancel the ongoing search" }, |
| 85 | { on = "z", run = "plugin fzf", desc = "Jump to a file/directory via fzf" }, |
| 86 | |
| 87 | # Linemode |
| 88 | { on = [ "m", "s" ], run = "linemode size", desc = "Linemode: size" }, |
| 89 | { on = [ "m", "p" ], run = "linemode permissions", desc = "Linemode: permissions" }, |
| 90 | { on = [ "m", "b" ], run = "linemode btime", desc = "Linemode: btime" }, |
| 91 | { on = [ "m", "m" ], run = "linemode mtime", desc = "Linemode: mtime" }, |
| 92 | { on = [ "m", "o" ], run = "linemode owner", desc = "Linemode: owner" }, |
| 93 | { on = [ "m", "n" ], run = "linemode none", desc = "Linemode: none" }, |
| 94 | |
| 95 | # Copy |
| 96 | { on = [ "c", "c" ], run = "copy path", desc = "Copy the file path" }, |
| 97 | { on = [ "c", "d" ], run = "copy dirname", desc = "Copy the directory path" }, |
| 98 | { on = [ "c", "f" ], run = "copy filename", desc = "Copy the filename" }, |
| 99 | { on = [ "c", "n" ], run = "copy name_without_ext", desc = "Copy the filename without extension" }, |
| 100 | |
| 101 | # Filter |
| 102 | { on = "f", run = "filter --smart", desc = "Filter files" }, |
| 103 | |
| 104 | # Find |
| 105 | { on = "/", run = "find --smart", desc = "Find next file" }, |
| 106 | { on = "?", run = "find --previous --smart", desc = "Find previous file" }, |
| 107 | { on = "n", run = "find_arrow", desc = "Next found" }, |
| 108 | { on = "N", run = "find_arrow --previous", desc = "Previous found" }, |
| 109 | |
| 110 | # Sorting |
| 111 | { on = [ ",", "m" ], run = [ "sort mtime --reverse=no", "linemode mtime" ], desc = "Sort by modified time" }, |
| 112 | { on = [ ",", "M" ], run = [ "sort mtime --reverse", "linemode mtime" ], desc = "Sort by modified time (reverse)" }, |
| 113 | { on = [ ",", "b" ], run = [ "sort btime --reverse=no", "linemode btime" ], desc = "Sort by birth time" }, |
| 114 | { on = [ ",", "B" ], run = [ "sort btime --reverse", "linemode btime" ], desc = "Sort by birth time (reverse)" }, |
| 115 | { on = [ ",", "e" ], run = "sort extension --reverse=no", desc = "Sort by extension" }, |
| 116 | { on = [ ",", "E" ], run = "sort extension --reverse", desc = "Sort by extension (reverse)" }, |
| 117 | { on = [ ",", "a" ], run = "sort alphabetical --reverse=no", desc = "Sort alphabetically" }, |
| 118 | { on = [ ",", "A" ], run = "sort alphabetical --reverse", desc = "Sort alphabetically (reverse)" }, |
| 119 | { on = [ ",", "n" ], run = "sort natural --reverse=no", desc = "Sort naturally" }, |
| 120 | { on = [ ",", "N" ], run = "sort natural --reverse", desc = "Sort naturally (reverse)" }, |
| 121 | { on = [ ",", "s" ], run = [ "sort size --reverse=no", "linemode size" ], desc = "Sort by size" }, |
| 122 | { on = [ ",", "S" ], run = [ "sort size --reverse", "linemode size" ], desc = "Sort by size (reverse)" }, |
| 123 | { on = [ ",", "r" ], run = "sort random --reverse=no", desc = "Sort randomly" }, |
| 124 | |
| 125 | # Goto |
| 126 | { on = [ "g", "h" ], run = "cd ~", desc = "Go home" }, |
| 127 | { on = [ "g", "c" ], run = "cd ~/.config", desc = "Go ~/.config" }, |
| 128 | { on = [ "g", "d" ], run = "cd ~/dl", desc = "Go ~/dl" }, |
| 129 | { on = [ "g", "d" ], run = "cd ~/pix", desc = "Go ~/pix" }, |
| 130 | { on = [ "g", "C" ], run = "cd ~/.cache", desc = "Go ~/.cache" }, |
| 131 | { on = [ "g", "r" ], run = "cd ~/code/repos", desc = "Go ~/code/repos" }, |
| 132 | { on = [ "g", "v" ], run = "cd ~/vids", desc = "Go ~/vids" }, |
| 133 | { on = [ "g", "m" ], run = "cd ~/media/movies", desc = "Go ~/media/movies" }, |
| 134 | { on = [ "g", "M" ], run = "cd ~/media", desc = "Go ~/media" }, |
| 135 | { on = [ "g", "b" ], run = "cd ~/.local/bin", desc = "Go ~/.local/bin" }, |
| 136 | { on = [ "g", "s" ], run = "cd ~/.local/share", desc = "Go ~/.local/bin" }, |
| 137 | { on = [ "g", "t" ], run = "cd /tmp", desc = "Go /tmp" }, |
| 138 | { on = [ "g", "<Space>" ], run = "cd --interactive", desc = "Jump interactively" }, |
| 139 | { on = [ "g", "f" ], run = "follow", desc = "Follow hovered symlink" }, |
| 140 | |
| 141 | # Tabs |
| 142 | { on = "t", run = "tab_create --current", desc = "Create a new tab with CWD" }, |
| 143 | |
| 144 | { on = "1", run = "tab_switch 0", desc = "Switch to first tab" }, |
| 145 | { on = "2", run = "tab_switch 1", desc = "Switch to second tab" }, |
| 146 | { on = "3", run = "tab_switch 2", desc = "Switch to third tab" }, |
| 147 | { on = "4", run = "tab_switch 3", desc = "Switch to fourth tab" }, |
| 148 | { on = "5", run = "tab_switch 4", desc = "Switch to fifth tab" }, |
| 149 | { on = "6", run = "tab_switch 5", desc = "Switch to sixth tab" }, |
| 150 | { on = "7", run = "tab_switch 6", desc = "Switch to seventh tab" }, |
| 151 | { on = "8", run = "tab_switch 7", desc = "Switch to eighth tab" }, |
| 152 | { on = "9", run = "tab_switch 8", desc = "Switch to ninth tab" }, |
| 153 | |
| 154 | { on = "[", run = "tab_switch -1 --relative", desc = "Switch to previous tab" }, |
| 155 | { on = "]", run = "tab_switch 1 --relative", desc = "Switch to next tab" }, |
| 156 | |
| 157 | { on = "{", run = "tab_swap -1", desc = "Swap current tab with previous tab" }, |
| 158 | { on = "}", run = "tab_swap 1", desc = "Swap current tab with next tab" }, |
| 159 | |
| 160 | # Tasks |
| 161 | { on = "w", run = "tasks:show", desc = "Show task manager" }, |
| 162 | |
| 163 | # Help |
| 164 | { on = "~", run = "help", desc = "Open help" }, |
| 165 | { on = "<F1>", run = "help", desc = "Open help" }, |
| 166 | ] |
| 167 | |
| 168 | [tasks] |
| 169 | |
| 170 | keymap = [ |
| 171 | { on = "<Esc>", run = "close", desc = "Close task manager" }, |
| 172 | { on = "<C-[>", run = "close", desc = "Close task manager" }, |
| 173 | { on = "<C-c>", run = "close", desc = "Close task manager" }, |
| 174 | { on = "w", run = "close", desc = "Close task manager" }, |
| 175 | |
| 176 | { on = "k", run = "arrow prev", desc = "Previous task" }, |
| 177 | { on = "j", run = "arrow next", desc = "Next task" }, |
| 178 | |
| 179 | { on = "<Up>", run = "arrow prev", desc = "Previous task" }, |
| 180 | { on = "<Down>", run = "arrow next", desc = "Next task" }, |
| 181 | |
| 182 | { on = "<Enter>", run = "inspect", desc = "Inspect the task" }, |
| 183 | { on = "x", run = "cancel", desc = "Cancel the task" }, |
| 184 | |
| 185 | # Help |
| 186 | { on = "~", run = "help", desc = "Open help" }, |
| 187 | { on = "<F1>", run = "help", desc = "Open help" }, |
| 188 | ] |
| 189 | |
| 190 | [spot] |
| 191 | |
| 192 | keymap = [ |
| 193 | { on = "<Esc>", run = "close", desc = "Close the spot" }, |
| 194 | { on = "<C-[>", run = "close", desc = "Close the spot" }, |
| 195 | { on = "<C-c>", run = "close", desc = "Close the spot" }, |
| 196 | { on = "<Tab>", run = "close", desc = "Close the spot" }, |
| 197 | |
| 198 | { on = "k", run = "arrow prev", desc = "Previous line" }, |
| 199 | { on = "j", run = "arrow next", desc = "Next line" }, |
| 200 | { on = "h", run = "swipe prev", desc = "Swipe to previous file" }, |
| 201 | { on = "l", run = "swipe next", desc = "Swipe to next file" }, |
| 202 | |
| 203 | { on = "<Up>", run = "arrow prev", desc = "Previous line" }, |
| 204 | { on = "<Down>", run = "arrow next", desc = "Next line" }, |
| 205 | { on = "<Left>", run = "swipe prev", desc = "Swipe to previous file" }, |
| 206 | { on = "<Right>", run = "swipe next", desc = "Swipe to next file" }, |
| 207 | |
| 208 | # Copy |
| 209 | { on = [ "c", "c" ], run = "copy cell", desc = "Copy selected cell" }, |
| 210 | |
| 211 | # Help |
| 212 | { on = "~", run = "help", desc = "Open help" }, |
| 213 | { on = "<F1>", run = "help", desc = "Open help" }, |
| 214 | ] |
| 215 | |
| 216 | [pick] |
| 217 | |
| 218 | keymap = [ |
| 219 | { on = "<Esc>", run = "close", desc = "Cancel pick" }, |
| 220 | { on = "<C-[>", run = "close", desc = "Cancel pick" }, |
| 221 | { on = "<C-c>", run = "close", desc = "Cancel pick" }, |
| 222 | { on = "<Enter>", run = "close --submit", desc = "Submit the pick" }, |
| 223 | |
| 224 | { on = "k", run = "arrow prev", desc = "Previous option" }, |
| 225 | { on = "j", run = "arrow next", desc = "Next option" }, |
| 226 | |
| 227 | { on = "<Up>", run = "arrow prev", desc = "Previous option" }, |
| 228 | { on = "<Down>", run = "arrow next", desc = "Next option" }, |
| 229 | |
| 230 | # Help |
| 231 | { on = "~", run = "help", desc = "Open help" }, |
| 232 | { on = "<F1>", run = "help", desc = "Open help" }, |
| 233 | ] |
| 234 | |
| 235 | [input] |
| 236 | |
| 237 | keymap = [ |
| 238 | { on = "<C-c>", run = "close", desc = "Cancel input" }, |
| 239 | { on = "<Enter>", run = "close --submit", desc = "Submit input" }, |
| 240 | { on = "<Esc>", run = "escape", desc = "Back to normal mode, or cancel input" }, |
| 241 | { on = "<C-[>", run = "escape", desc = "Back to normal mode, or cancel input" }, |
| 242 | |
| 243 | # Mode |
| 244 | { on = "i", run = "insert", desc = "Enter insert mode" }, |
| 245 | { on = "I", run = [ "move first-char", "insert" ], desc = "Move to the BOL, and enter insert mode" }, |
| 246 | { on = "a", run = "insert --append", desc = "Enter append mode" }, |
| 247 | { on = "A", run = [ "move eol", "insert --append" ], desc = "Move to the EOL, and enter append mode" }, |
| 248 | { on = "v", run = "visual", desc = "Enter visual mode" }, |
| 249 | { on = "r", run = "replace", desc = "Replace a single character" }, |
| 250 | |
| 251 | # Selection |
| 252 | { on = "V", run = [ "move bol", "visual", "move eol" ], desc = "Select from BOL to EOL" }, |
| 253 | { on = "<C-A>", run = [ "move eol", "visual", "move bol" ], desc = "Select from EOL to BOL" }, |
| 254 | { on = "<C-E>", run = [ "move bol", "visual", "move eol" ], desc = "Select from BOL to EOL" }, |
| 255 | |
| 256 | # Character-wise movement |
| 257 | { on = "h", run = "move -1", desc = "Move back a character" }, |
| 258 | { on = "l", run = "move 1", desc = "Move forward a character" }, |
| 259 | { on = "<Left>", run = "move -1", desc = "Move back a character" }, |
| 260 | { on = "<Right>", run = "move 1", desc = "Move forward a character" }, |
| 261 | { on = "<C-b>", run = "move -1", desc = "Move back a character" }, |
| 262 | { on = "<C-f>", run = "move 1", desc = "Move forward a character" }, |
| 263 | |
| 264 | # Word-wise movement |
| 265 | { on = "b", run = "backward", desc = "Move back to the start of the current or previous word" }, |
| 266 | { on = "B", run = "backward --far", desc = "Move back to the start of the current or previous WORD" }, |
| 267 | { on = "w", run = "forward", desc = "Move forward to the start of the next word" }, |
| 268 | { on = "W", run = "forward --far", desc = "Move forward to the start of the next WORD" }, |
| 269 | { on = "e", run = "forward --end-of-word", desc = "Move forward to the end of the current or next word" }, |
| 270 | { on = "E", run = "forward --far --end-of-word", desc = "Move forward to the end of the current or next WORD" }, |
| 271 | { on = "<A-b>", run = "backward", desc = "Move back to the start of the current or previous word" }, |
| 272 | { on = "<A-f>", run = "forward --end-of-word", desc = "Move forward to the end of the current or next word" }, |
| 273 | |
| 274 | # Line-wise movement |
| 275 | { on = "0", run = "move bol", desc = "Move to the BOL" }, |
| 276 | { on = "$", run = "move eol", desc = "Move to the EOL" }, |
| 277 | { on = "_", run = "move first-char", desc = "Move to the first non-whitespace character" }, |
| 278 | { on = "^", run = "move first-char", desc = "Move to the first non-whitespace character" }, |
| 279 | { on = "<C-a>", run = "move bol", desc = "Move to the BOL" }, |
| 280 | { on = "<C-e>", run = "move eol", desc = "Move to the EOL" }, |
| 281 | { on = "<Home>", run = "move bol", desc = "Move to the BOL" }, |
| 282 | { on = "<End>", run = "move eol", desc = "Move to the EOL" }, |
| 283 | |
| 284 | # Delete |
| 285 | { on = "<Backspace>", run = "backspace", desc = "Delete the character before the cursor" }, |
| 286 | { on = "<Delete>", run = "backspace --under", desc = "Delete the character under the cursor" }, |
| 287 | { on = "<C-h>", run = "backspace", desc = "Delete the character before the cursor" }, |
| 288 | { on = "<C-d>", run = "backspace --under", desc = "Delete the character under the cursor" }, |
| 289 | |
| 290 | # Kill |
| 291 | { on = "<C-u>", run = "kill bol", desc = "Kill backwards to the BOL" }, |
| 292 | { on = "<C-k>", run = "kill eol", desc = "Kill forwards to the EOL" }, |
| 293 | { on = "<C-w>", run = "kill backward", desc = "Kill backwards to the start of the current word" }, |
| 294 | { on = "<A-d>", run = "kill forward", desc = "Kill forwards to the end of the current word" }, |
| 295 | |
| 296 | # Cut/Yank/Paste |
| 297 | { on = "d", run = "delete --cut", desc = "Cut selected characters" }, |
| 298 | { on = "D", run = [ "delete --cut", "move eol" ], desc = "Cut until EOL" }, |
| 299 | { on = "c", run = "delete --cut --insert", desc = "Cut selected characters, and enter insert mode" }, |
| 300 | { on = "C", run = [ "delete --cut --insert", "move eol" ], desc = "Cut until EOL, and enter insert mode" }, |
| 301 | { on = "s", run = [ "delete --cut --insert", "move 1" ], desc = "Cut current character, and enter insert mode" }, |
| 302 | { on = "S", run = [ "move bol", "delete --cut --insert", "move eol" ], desc = "Cut from BOL until EOL, and enter insert mode" }, |
| 303 | { on = "x", run = [ "delete --cut", "move 1 --in-operating" ], desc = "Cut current character" }, |
| 304 | { on = "y", run = "yank", desc = "Copy selected characters" }, |
| 305 | { on = "p", run = "paste", desc = "Paste copied characters after the cursor" }, |
| 306 | { on = "P", run = "paste --before", desc = "Paste copied characters before the cursor" }, |
| 307 | |
| 308 | # Undo/Redo |
| 309 | { on = "u", run = "undo", desc = "Undo the last operation" }, |
| 310 | { on = "<C-r>", run = "redo", desc = "Redo the last operation" }, |
| 311 | |
| 312 | # Help |
| 313 | { on = "~", run = "help", desc = "Open help" }, |
| 314 | { on = "<F1>", run = "help", desc = "Open help" }, |
| 315 | ] |
| 316 | |
| 317 | [confirm] |
| 318 | |
| 319 | keymap = [ |
| 320 | { on = "<Esc>", run = "close", desc = "Cancel the confirm" }, |
| 321 | { on = "<C-[>", run = "close", desc = "Cancel the confirm" }, |
| 322 | { on = "<C-c>", run = "close", desc = "Cancel the confirm" }, |
| 323 | { on = "<Enter>", run = "close --submit", desc = "Submit the confirm" }, |
| 324 | |
| 325 | { on = "n", run = "close", desc = "Cancel the confirm" }, |
| 326 | { on = "y", run = "close --submit", desc = "Submit the confirm" }, |
| 327 | |
| 328 | { on = "k", run = "arrow prev", desc = "Previous line" }, |
| 329 | { on = "j", run = "arrow next", desc = "Next line" }, |
| 330 | |
| 331 | { on = "<Up>", run = "arrow prev", desc = "Previous line" }, |
| 332 | { on = "<Down>", run = "arrow next", desc = "Next line" }, |
| 333 | |
| 334 | # Help |
| 335 | { on = "~", run = "help", desc = "Open help" }, |
| 336 | { on = "<F1>", run = "help", desc = "Open help" }, |
| 337 | ] |
| 338 | |
| 339 | [cmp] |
| 340 | |
| 341 | keymap = [ |
| 342 | { on = "<C-c>", run = "close", desc = "Cancel completion" }, |
| 343 | { on = "<Tab>", run = "close --submit", desc = "Submit the completion" }, |
| 344 | { on = "<Enter>", run = [ "close --submit", "input:close --submit" ], desc = "Complete and submit the input" }, |
| 345 | |
| 346 | { on = "<A-k>", run = "arrow prev", desc = "Previous item" }, |
| 347 | { on = "<A-j>", run = "arrow next", desc = "Next item" }, |
| 348 | |
| 349 | { on = "<Up>", run = "arrow prev", desc = "Previous item" }, |
| 350 | { on = "<Down>", run = "arrow next", desc = "Next item" }, |
| 351 | |
| 352 | { on = "<C-p>", run = "arrow prev", desc = "Previous item" }, |
| 353 | { on = "<C-n>", run = "arrow next", desc = "Next item" }, |
| 354 | |
| 355 | # Help |
| 356 | { on = "~", run = "help", desc = "Open help" }, |
| 357 | { on = "<F1>", run = "help", desc = "Open help" }, |
| 358 | ] |
| 359 | |
| 360 | [help] |
| 361 | |
| 362 | keymap = [ |
| 363 | { on = "<Esc>", run = "escape", desc = "Clear the filter, or hide the help" }, |
| 364 | { on = "<C-[>", run = "escape", desc = "Clear the filter, or hide the help" }, |
| 365 | { on = "<C-c>", run = "close", desc = "Hide the help" }, |
| 366 | |
| 367 | # Navigation |
| 368 | { on = "k", run = "arrow prev", desc = "Previous line" }, |
| 369 | { on = "j", run = "arrow next", desc = "Next line" }, |
| 370 | |
| 371 | { on = "<Up>", run = "arrow prev", desc = "Previous line" }, |
| 372 | { on = "<Down>", run = "arrow next", desc = "Next line" }, |
| 373 | |
| 374 | # Filtering |
| 375 | { on = "f", run = "filter", desc = "Filter help items" }, |
| 376 | ] |