2023-07-17 19:34:58 +03:00
|
|
|
[manager]
|
|
|
|
|
|
|
|
keymap = [
|
2023-09-07 11:08:51 +03:00
|
|
|
{ on = [ "<Esc>" ], exec = "escape", desc = "Exit visual mode, clear selected, or cancel search" },
|
|
|
|
{ on = [ "q" ], exec = "quit", desc = "Exit the process" },
|
|
|
|
{ on = [ "<C-q>" ], exec = "close", desc = "Close the current tab, or quit if it is last tab" },
|
|
|
|
{ on = [ "<C-z>" ], exec = "suspend", desc = "Suspend the process" },
|
2023-07-17 19:34:58 +03:00
|
|
|
|
|
|
|
# Navigation
|
2023-08-31 08:58:13 +03:00
|
|
|
{ on = [ "k" ], exec = "arrow -1", desc = "Move cursor up" },
|
|
|
|
{ on = [ "j" ], exec = "arrow 1", desc = "Move cursor down" },
|
2023-07-17 19:34:58 +03:00
|
|
|
|
2023-08-31 08:58:13 +03:00
|
|
|
{ on = [ "K" ], exec = "arrow -5", desc = "Move cursor up 5 lines" },
|
|
|
|
{ on = [ "J" ], exec = "arrow 5", desc = "Move cursor down 5 lines" },
|
2023-07-17 19:34:58 +03:00
|
|
|
|
2023-08-31 08:58:13 +03:00
|
|
|
{ on = [ "h" ], exec = "leave", desc = "Go back to the parent directory" },
|
|
|
|
{ on = [ "l" ], exec = "enter", desc = "Enter the child directory" },
|
2023-07-17 19:34:58 +03:00
|
|
|
|
2023-08-31 08:58:13 +03:00
|
|
|
{ on = [ "H" ], exec = "back", desc = "Go back to the previous directory" },
|
|
|
|
{ on = [ "L" ], exec = "forward", desc = "Go forward to the next directory" },
|
2023-07-17 19:34:58 +03:00
|
|
|
|
2023-08-31 08:58:13 +03:00
|
|
|
{ on = [ "<C-k>" ], exec = "peek -5", desc = "Peek up 5 units in the preview" },
|
|
|
|
{ on = [ "<C-j>" ], exec = "peek 5", desc = "Peek down 5 units in the preview" },
|
2023-08-26 12:28:43 +03:00
|
|
|
|
2023-08-31 08:58:13 +03:00
|
|
|
{ on = [ "<Up>" ], exec = "arrow -1", desc = "Move cursor up" },
|
|
|
|
{ on = [ "<Down>" ], exec = "arrow 1", desc = "Move cursor down" },
|
|
|
|
{ on = [ "<Left>" ], exec = "leave", desc = "Go back to the parent directory" },
|
|
|
|
{ on = [ "<Right>" ], exec = "enter", desc = "Enter the child directory" },
|
2023-07-20 01:44:26 +03:00
|
|
|
|
2023-07-17 19:34:58 +03:00
|
|
|
# Selection
|
2023-08-31 08:58:13 +03:00
|
|
|
{ on = [ "<Space>" ], exec = [ "select --state=none", "arrow 1" ], desc = "Toggle the current selection state" },
|
|
|
|
{ on = [ "v" ], exec = "visual_mode", desc = "Enter visual mode (selection mode)" },
|
|
|
|
{ on = [ "V" ], exec = "visual_mode --unset", desc = "Enter visual mode (unset mode)" },
|
|
|
|
{ on = [ "<C-a>" ], exec = "select_all --state=true", desc = "Select all files" },
|
|
|
|
{ on = [ "<C-r>" ], exec = "select_all --state=none", desc = "Inverse selection of all files" },
|
2023-07-17 19:34:58 +03:00
|
|
|
|
|
|
|
# Operation
|
2023-08-31 08:58:13 +03:00
|
|
|
{ on = [ "o" ], exec = "open", desc = "Open the selected files" },
|
|
|
|
{ on = [ "O" ], exec = "open --interactive", desc = "Open the selected files interactively" },
|
|
|
|
{ on = [ "<Enter>" ], exec = "open", desc = "Open the selected files" },
|
|
|
|
{ on = [ "<C-Enter>" ], exec = "open --interactive", desc = "Open the selected files interactively" }, # It's cool if you're using a terminal that supports CSI u
|
|
|
|
{ on = [ "y" ], exec = "yank", desc = "Copy the selected files" },
|
|
|
|
{ on = [ "x" ], exec = "yank --cut", desc = "Cut the selected files" },
|
|
|
|
{ on = [ "p" ], exec = "paste", desc = "Paste the files" },
|
|
|
|
{ on = [ "P" ], exec = "paste --force", desc = "Paste the files (overwrite if the destination exists)" },
|
|
|
|
{ on = [ "k" ], exec = "paste --follow", desc = "Paste the files (follow the symlinks)" },
|
|
|
|
{ on = [ "K" ], exec = "paste --follow --force", desc = "Paste the files (overwrite + follow)" },
|
|
|
|
{ on = [ "d" ], exec = "remove", desc = "Move the files to the trash" },
|
|
|
|
{ on = [ "D" ], exec = "remove --permanently", desc = "Permanently delete the files" },
|
|
|
|
{ on = [ "a" ], exec = "create", desc = "Create a file or directory (ends with / for directories)" },
|
|
|
|
{ on = [ "r" ], exec = "rename", desc = "Rename a file or directory" },
|
|
|
|
{ on = [ ";" ], exec = "shell", desc = "Run a shell command" },
|
|
|
|
{ on = [ ":" ], exec = "shell --block", desc = "Run a shell command (block the UI until the command finishes)" },
|
|
|
|
{ on = [ "." ], exec = "hidden toggle", desc = "Toggle the visibility of hidden files" },
|
|
|
|
{ on = [ "s" ], exec = "search fd", desc = "Search files by content using ripgrep" },
|
|
|
|
{ on = [ "S" ], exec = "search rg", desc = "Search files by name using fd" },
|
|
|
|
{ on = [ "<C-s>" ], exec = "search none", desc = "Cancel the ongoing search" },
|
|
|
|
{ on = [ "z" ], exec = "jump zoxide", desc = "Jump to a directory using zoxide" },
|
|
|
|
{ on = [ "Z" ], exec = "jump fzf", desc = "Jump to a directory, or reveal a file using fzf" },
|
2023-07-17 19:34:58 +03:00
|
|
|
|
2023-08-02 05:29:49 +03:00
|
|
|
# Copy
|
2023-08-31 08:58:13 +03:00
|
|
|
{ on = [ "c", "c" ], exec = "copy path", desc = "Copy the absolute path" },
|
|
|
|
{ on = [ "c", "d" ], exec = "copy dirname", desc = "Copy the path of the parent directory" },
|
|
|
|
{ on = [ "c", "f" ], exec = "copy filename", desc = "Copy the name of the file" },
|
|
|
|
{ on = [ "c", "n" ], exec = "copy name_without_ext", desc = "Copy the name of the file without the extension" },
|
2023-08-02 05:29:49 +03:00
|
|
|
|
2023-07-25 06:31:34 +03:00
|
|
|
# Sorting
|
2023-08-31 08:58:13 +03:00
|
|
|
{ on = [ ",", "a" ], exec = "sort alphabetical --dir_first", desc = "Sort alphabetically, directories first" },
|
|
|
|
{ on = [ ",", "A" ], exec = "sort alphabetical --reverse --dir_first", desc = "Sort alphabetically, directories first (reverse)" },
|
|
|
|
{ on = [ ",", "c" ], exec = "sort created --dir_first", desc = "Sort by creation time, directories first" },
|
|
|
|
{ on = [ ",", "C" ], exec = "sort created --reverse --dir_first", desc = "Sort by creation time, directories first (reverse)" },
|
|
|
|
{ on = [ ",", "m" ], exec = "sort modified --dir_first", desc = "Sort by modified time, directories first" },
|
|
|
|
{ on = [ ",", "M" ], exec = "sort modified --reverse --dir_first", desc = "Sort by modified time, directories first (reverse)" },
|
|
|
|
{ on = [ ",", "n" ], exec = "sort natural --dir_first", desc = "Sort naturally, directories first" },
|
|
|
|
{ on = [ ",", "N" ], exec = "sort natural --reverse --dir_first", desc = "Sort naturally, directories first (reverse)" },
|
|
|
|
{ on = [ ",", "s" ], exec = "sort size --dir_first", desc = "Sort by size, directories first" },
|
|
|
|
{ on = [ ",", "S" ], exec = "sort size --reverse --dir_first", desc = "Sort by size, directories first (reverse)" },
|
2023-07-25 06:31:34 +03:00
|
|
|
|
2023-07-17 19:34:58 +03:00
|
|
|
# Tabs
|
2023-08-31 08:58:13 +03:00
|
|
|
{ on = [ "t" ], exec = "tab_create --current", desc = "Create a new tab using the current path" },
|
2023-07-17 19:34:58 +03:00
|
|
|
|
2023-08-31 08:58:13 +03:00
|
|
|
{ on = [ "1" ], exec = "tab_switch 0", desc = "Switch to the first tab" },
|
|
|
|
{ on = [ "2" ], exec = "tab_switch 1", desc = "Switch to the second tab" },
|
|
|
|
{ on = [ "3" ], exec = "tab_switch 2", desc = "Switch to the third tab" },
|
|
|
|
{ on = [ "4" ], exec = "tab_switch 3", desc = "Switch to the fourth tab" },
|
|
|
|
{ on = [ "5" ], exec = "tab_switch 4", desc = "Switch to the fifth tab" },
|
|
|
|
{ on = [ "6" ], exec = "tab_switch 5", desc = "Switch to the sixth tab" },
|
|
|
|
{ on = [ "7" ], exec = "tab_switch 6", desc = "Switch to the seventh tab" },
|
|
|
|
{ on = [ "8" ], exec = "tab_switch 7", desc = "Switch to the eighth tab" },
|
|
|
|
{ on = [ "9" ], exec = "tab_switch 8", desc = "Switch to the ninth tab" },
|
2023-07-17 19:34:58 +03:00
|
|
|
|
2023-08-31 08:58:13 +03:00
|
|
|
{ on = [ "[" ], exec = "tab_switch -1 --relative", desc = "Switch to the previous tab" },
|
|
|
|
{ on = [ "]" ], exec = "tab_switch 1 --relative", desc = "Switch to the next tab" },
|
2023-07-17 19:34:58 +03:00
|
|
|
|
2023-08-31 08:58:13 +03:00
|
|
|
{ on = [ "{" ], exec = "tab_swap -1", desc = "Swap the current tab with the previous tab" },
|
|
|
|
{ on = [ "}" ], exec = "tab_swap 1", desc = "Swap the current tab with the next tab" },
|
2023-07-17 19:34:58 +03:00
|
|
|
|
|
|
|
# Tasks
|
2023-08-31 08:58:13 +03:00
|
|
|
{ on = [ "w" ], exec = "tasks_show", desc = "Show the tasks manager" },
|
2023-07-24 03:20:06 +03:00
|
|
|
|
|
|
|
# Goto
|
2023-08-31 08:58:13 +03:00
|
|
|
{ on = [ "g", "h" ], exec = "cd ~", desc = "Go to the home directory" },
|
|
|
|
{ on = [ "g", "c" ], exec = "cd ~/.config", desc = "Go to the config directory" },
|
|
|
|
{ on = [ "g", "d" ], exec = "cd ~/Downloads", desc = "Go to the downloads directory" },
|
|
|
|
{ on = [ "g", "t" ], exec = "cd /tmp", desc = "Go to the temporary directory" },
|
|
|
|
{ on = [ "g", "<Space>" ], exec = "cd --interactive", desc = "Go to a directory interactively" },
|
|
|
|
|
|
|
|
# Help
|
|
|
|
{ on = [ "?" ], exec = "help", desc = "Open help" },
|
2023-07-17 19:34:58 +03:00
|
|
|
]
|
|
|
|
|
|
|
|
[tasks]
|
|
|
|
|
|
|
|
keymap = [
|
2023-08-31 08:58:13 +03:00
|
|
|
{ on = [ "<Esc>" ], exec = "close", desc = "Hide the task manager" },
|
|
|
|
{ on = [ "<C-q>" ], exec = "close", desc = "Hide the task manager" },
|
|
|
|
{ on = [ "w" ], exec = "close", desc = "Hide the task manager" },
|
2023-07-17 19:34:58 +03:00
|
|
|
|
2023-08-31 08:58:13 +03:00
|
|
|
{ on = [ "k" ], exec = "arrow -1", desc = "Move cursor up" },
|
|
|
|
{ on = [ "j" ], exec = "arrow 1", desc = "Move cursor down" },
|
2023-07-20 01:44:26 +03:00
|
|
|
|
2023-08-31 08:58:13 +03:00
|
|
|
{ on = [ "<Up>" ], exec = "arrow -1", desc = "Move cursor up" },
|
|
|
|
{ on = [ "<Down>" ], exec = "arrow 1", desc = "Move cursor down" },
|
2023-07-17 19:34:58 +03:00
|
|
|
|
2023-08-31 08:58:13 +03:00
|
|
|
{ on = [ "<Enter>" ], exec = "inspect", desc = "Inspect the task" },
|
|
|
|
{ on = [ "x" ], exec = "cancel", desc = "Cancel the task" },
|
|
|
|
|
|
|
|
{ on = [ "?" ], exec = "help", desc = "Open help" }
|
2023-07-17 19:34:58 +03:00
|
|
|
]
|
|
|
|
|
2023-07-18 17:23:27 +03:00
|
|
|
[select]
|
|
|
|
|
|
|
|
keymap = [
|
2023-08-31 08:58:13 +03:00
|
|
|
{ on = [ "<C-q>" ], exec = "close", desc = "Cancel selection" },
|
|
|
|
{ on = [ "<Esc>" ], exec = "close", desc = "Cancel selection" },
|
|
|
|
{ on = [ "<Enter>" ], exec = "close --submit", desc = "Submit the selection" },
|
|
|
|
|
|
|
|
{ on = [ "k" ], exec = "arrow -1", desc = "Move cursor up" },
|
|
|
|
{ on = [ "j" ], exec = "arrow 1", desc = "Move cursor down" },
|
2023-07-18 17:23:27 +03:00
|
|
|
|
2023-08-31 08:58:13 +03:00
|
|
|
{ on = [ "K" ], exec = "arrow -5", desc = "Move cursor up 5 lines" },
|
|
|
|
{ on = [ "J" ], exec = "arrow 5", desc = "Move cursor down 5 lines" },
|
2023-07-18 17:23:27 +03:00
|
|
|
|
2023-08-31 08:58:13 +03:00
|
|
|
{ on = [ "<Up>" ], exec = "arrow -1", desc = "Move cursor up" },
|
|
|
|
{ on = [ "<Down>" ], exec = "arrow 1", desc = "Move cursor down" },
|
2023-07-20 01:44:26 +03:00
|
|
|
|
2023-08-31 08:58:13 +03:00
|
|
|
{ on = [ "?" ], exec = "help", desc = "Open help" }
|
2023-07-18 17:23:27 +03:00
|
|
|
]
|
|
|
|
|
2023-07-17 19:34:58 +03:00
|
|
|
[input]
|
|
|
|
|
|
|
|
keymap = [
|
2023-08-31 08:58:13 +03:00
|
|
|
{ on = [ "<C-q>" ], exec = "close", desc = "Cancel input" },
|
|
|
|
{ on = [ "<Enter>" ], exec = "close --submit", desc = "Submit the input" },
|
|
|
|
{ on = [ "<Esc>" ], exec = "escape", desc = "Go back the normal mode, or cancel input" },
|
2023-07-17 19:34:58 +03:00
|
|
|
|
|
|
|
# Mode
|
2023-08-31 08:58:13 +03:00
|
|
|
{ on = [ "i" ], exec = "insert", desc = "Enter insert mode" },
|
|
|
|
{ on = [ "a" ], exec = "insert --append", desc = "Enter append mode" },
|
|
|
|
{ on = [ "v" ], exec = "visual", desc = "Enter visual mode" },
|
2023-07-17 19:34:58 +03:00
|
|
|
|
2023-07-25 06:31:34 +03:00
|
|
|
# Navigation
|
2023-08-31 08:58:13 +03:00
|
|
|
{ on = [ "h" ], exec = "move -1", desc = "Move cursor left" },
|
|
|
|
{ on = [ "l" ], exec = "move 1", desc = "Move cursor right" },
|
2023-07-17 19:34:58 +03:00
|
|
|
|
2023-08-31 08:58:13 +03:00
|
|
|
{ on = [ "0" ], exec = "move -999", desc = "Move to the BOL" },
|
|
|
|
{ on = [ "$" ], exec = "move 999", desc = "Move to the EOL" },
|
|
|
|
{ on = [ "I" ], exec = [ "move -999", "insert" ], desc = "Move to the BOL, and enter insert mode" },
|
|
|
|
{ on = [ "A" ], exec = [ "move 999", "insert --append" ], desc = "Move to the EOL, and enter append mode" },
|
2023-07-17 19:34:58 +03:00
|
|
|
|
2023-08-31 08:58:13 +03:00
|
|
|
{ on = [ "<Left>" ], exec = "move -1", desc = "Move cursor left" },
|
|
|
|
{ on = [ "<Right>" ], exec = "move 1", desc = "Move cursor right" },
|
2023-07-20 01:44:26 +03:00
|
|
|
|
2023-08-31 08:58:13 +03:00
|
|
|
{ on = [ "b" ], exec = "backward", desc = "Move to the beginning of the previous word" },
|
|
|
|
{ on = [ "w" ], exec = "forward", desc = "Move to the beginning of the next word" },
|
|
|
|
{ on = [ "e" ], exec = "forward --end-of-word", desc = "Move to the end of the next word" },
|
2023-07-17 19:34:58 +03:00
|
|
|
|
2023-07-25 06:31:34 +03:00
|
|
|
# Deletion
|
2023-08-31 08:58:13 +03:00
|
|
|
{ on = [ "d" ], exec = "delete --cut", desc = "Cut the selected characters" },
|
|
|
|
{ on = [ "c" ], exec = "delete --cut --insert", desc = "Cut the selected characters, and enter insert mode" },
|
|
|
|
{ on = [ "x" ], exec = [ "delete --cut", "move 1 --in-operating" ], desc = "Cut the current character" },
|
2023-07-21 02:54:02 +03:00
|
|
|
|
2023-08-02 05:29:49 +03:00
|
|
|
# Yank/Paste
|
2023-08-31 08:58:13 +03:00
|
|
|
{ on = [ "y" ], exec = "yank", desc = "Copy the selected characters" },
|
|
|
|
{ on = [ "p" ], exec = "paste", desc = "Paste the copied characters after the cursor" },
|
|
|
|
{ on = [ "P" ], exec = "paste --before", desc = "Paste the copied characters before the cursor" },
|
2023-07-22 19:14:55 +03:00
|
|
|
|
2023-07-25 06:31:34 +03:00
|
|
|
# Undo/Redo
|
2023-08-31 08:58:13 +03:00
|
|
|
{ on = [ "u" ], exec = "undo", desc = "Undo the last operation" },
|
|
|
|
{ on = [ "<C-r>" ], exec = "redo", desc = "Redo the last operation" },
|
|
|
|
|
|
|
|
# Help
|
|
|
|
{ on = [ "?" ], exec = "help", desc = "Open help" }
|
|
|
|
]
|
|
|
|
|
|
|
|
[help]
|
|
|
|
|
|
|
|
keymap = [
|
|
|
|
{ on = [ "<Esc>" ], exec = "escape", desc = "Clear the filter, or hide the help" },
|
|
|
|
{ on = [ "q" ], exec = "close", desc = "Exit the process" },
|
|
|
|
{ on = [ "<C-q>" ], exec = "close", desc = "Hide the help" },
|
|
|
|
|
|
|
|
# Navigation
|
|
|
|
{ on = [ "k" ], exec = "arrow -1", desc = "Move cursor up" },
|
|
|
|
{ on = [ "j" ], exec = "arrow 1", desc = "Move cursor down" },
|
|
|
|
|
|
|
|
{ on = [ "K" ], exec = "arrow -5", desc = "Move cursor up 5 lines" },
|
|
|
|
{ on = [ "J" ], exec = "arrow 5", desc = "Move cursor down 5 lines" },
|
|
|
|
|
|
|
|
{ on = [ "<Up>" ], exec = "arrow -1", desc = "Move cursor up" },
|
|
|
|
{ on = [ "<Down>" ], exec = "arrow 1", desc = "Move cursor down" },
|
|
|
|
|
|
|
|
# Filtering
|
|
|
|
{ on = [ "/" ], exec = "filter", desc = "Apply a filter for the help items" },
|
2023-07-17 19:34:58 +03:00
|
|
|
]
|