2023-07-17 19:34:58 +03:00
|
|
|
[manager]
|
|
|
|
|
|
|
|
keymap = [
|
|
|
|
{ on = [ "<Esc>" ], exec = "escape" },
|
|
|
|
{ on = [ "q" ], exec = "quit" },
|
2023-08-24 18:55:21 +03:00
|
|
|
# close current tab and exit if it is last tab
|
2023-07-17 19:34:58 +03:00
|
|
|
{ on = [ "<C-q>" ], exec = "close" },
|
|
|
|
|
|
|
|
# Navigation
|
|
|
|
{ on = [ "k" ], exec = "arrow -1" },
|
2023-07-20 01:44:26 +03:00
|
|
|
{ on = [ "j" ], exec = "arrow 1" },
|
2023-07-17 19:34:58 +03:00
|
|
|
|
|
|
|
{ on = [ "K" ], exec = "arrow -5" },
|
2023-07-20 01:44:26 +03:00
|
|
|
{ on = [ "J" ], exec = "arrow 5" },
|
2023-07-17 19:34:58 +03:00
|
|
|
|
|
|
|
{ on = [ "h" ], exec = "leave" },
|
|
|
|
{ on = [ "l" ], exec = "enter" },
|
|
|
|
|
|
|
|
{ on = [ "H" ], exec = "back" },
|
|
|
|
{ on = [ "L" ], exec = "forward" },
|
|
|
|
|
2023-07-20 01:44:26 +03:00
|
|
|
{ on = [ "<Up>" ], exec = "arrow -1" },
|
|
|
|
{ on = [ "<Down>" ], exec = "arrow 1" },
|
|
|
|
{ on = [ "<Left>" ], exec = "leave" },
|
2023-07-22 19:14:55 +03:00
|
|
|
{ on = [ "<Right>" ], exec = "enter" },
|
2023-07-20 01:44:26 +03:00
|
|
|
|
2023-07-17 19:34:58 +03:00
|
|
|
# Selection
|
2023-07-25 06:31:34 +03:00
|
|
|
{ on = [ "<Space>" ], exec = [ "select --state=none", "arrow 1" ] },
|
2023-07-17 19:34:58 +03:00
|
|
|
{ on = [ "v" ], exec = "visual_mode" },
|
2023-07-23 03:32:00 +03:00
|
|
|
{ on = [ "V" ], exec = "visual_mode --unset" },
|
2023-07-17 19:34:58 +03:00
|
|
|
{ on = [ "<C-a>" ], exec = "select_all --state=true" },
|
|
|
|
{ on = [ "<C-r>" ], exec = "select_all --state=none" },
|
|
|
|
|
|
|
|
# Operation
|
2023-07-18 12:50:11 +03:00
|
|
|
{ on = [ "o" ], exec = "open" },
|
2023-07-25 06:31:34 +03:00
|
|
|
{ on = [ "O" ], exec = "open --interactive" },
|
2023-08-02 05:29:49 +03:00
|
|
|
{ on = [ "<Enter>" ], exec = "open" },
|
|
|
|
{ on = [ "<C-Enter>" ], exec = "open --interactive" }, # It's cool if you're using a terminal that supports CSI u
|
2023-07-17 19:34:58 +03:00
|
|
|
{ on = [ "y" ], exec = "yank" },
|
|
|
|
{ on = [ "x" ], exec = "yank --cut" },
|
|
|
|
{ on = [ "p" ], exec = "paste" },
|
|
|
|
{ on = [ "P" ], exec = "paste --force" },
|
2023-08-02 05:29:49 +03:00
|
|
|
{ on = [ "k" ], exec = "paste --follow" },
|
|
|
|
{ on = [ "K" ], exec = "paste --follow --force" },
|
2023-07-17 19:34:58 +03:00
|
|
|
{ on = [ "d" ], exec = "remove" },
|
|
|
|
{ on = [ "D" ], exec = "remove --permanently" },
|
2023-08-02 05:29:49 +03:00
|
|
|
{ on = [ "a" ], exec = "create" },
|
2023-07-17 19:34:58 +03:00
|
|
|
{ on = [ "r" ], exec = "rename" },
|
2023-08-05 20:27:52 +03:00
|
|
|
{ on = [ ";" ], exec = "shell" },
|
|
|
|
{ on = [ ":" ], exec = "shell --block" },
|
2023-07-17 19:34:58 +03:00
|
|
|
{ on = [ "." ], exec = "hidden toggle" },
|
|
|
|
{ on = [ "s" ], exec = "search fd" },
|
|
|
|
{ on = [ "S" ], exec = "search rg" },
|
|
|
|
{ on = [ "<C-s>" ], exec = "search none" },
|
|
|
|
{ on = [ "z" ], exec = "jump zoxide" },
|
|
|
|
{ on = [ "Z" ], exec = "jump fzf" },
|
|
|
|
|
2023-08-02 05:29:49 +03:00
|
|
|
# Copy
|
|
|
|
{ on = [ "c", "c" ], exec = "copy path" },
|
|
|
|
{ on = [ "c", "d" ], exec = "copy dirname" },
|
|
|
|
{ on = [ "c", "f" ], exec = "copy filename" },
|
|
|
|
{ on = [ "c", "n" ], exec = "copy name_without_ext" },
|
|
|
|
|
2023-07-25 06:31:34 +03:00
|
|
|
# Sorting
|
2023-08-26 06:15:07 +03:00
|
|
|
{ on = [ ",", "a" ], exec = "sort alphabetical --dir_first" },
|
|
|
|
{ on = [ ",", "A" ], exec = "sort alphabetical --reverse --dir_first" },
|
|
|
|
{ on = [ ",", "c" ], exec = "sort created --dir_first" },
|
|
|
|
{ on = [ ",", "C" ], exec = "sort created --reverse --dir_first" },
|
|
|
|
{ on = [ ",", "m" ], exec = "sort modified --dir_first" },
|
|
|
|
{ on = [ ",", "M" ], exec = "sort modified --reverse --dir_first" },
|
|
|
|
{ on = [ ",", "n" ], exec = "sort natural --dir_first" },
|
|
|
|
{ on = [ ",", "N" ], exec = "sort natural --reverse --dir_first" },
|
|
|
|
{ on = [ ",", "s" ], exec = "sort size --dir_first" },
|
|
|
|
{ on = [ ",", "S" ], exec = "sort size --reverse --dir_first" },
|
2023-07-25 06:31:34 +03:00
|
|
|
|
2023-07-17 19:34:58 +03:00
|
|
|
# Tabs
|
|
|
|
{ on = [ "t" ], exec = "tab_create --current" },
|
|
|
|
|
|
|
|
{ on = [ "1" ], exec = "tab_switch 0" },
|
|
|
|
{ on = [ "2" ], exec = "tab_switch 1" },
|
|
|
|
{ on = [ "3" ], exec = "tab_switch 2" },
|
|
|
|
{ on = [ "4" ], exec = "tab_switch 3" },
|
|
|
|
{ on = [ "5" ], exec = "tab_switch 4" },
|
2023-08-02 05:29:49 +03:00
|
|
|
{ on = [ "6" ], exec = "tab_switch 5" },
|
|
|
|
{ on = [ "7" ], exec = "tab_switch 6" },
|
|
|
|
{ on = [ "8" ], exec = "tab_switch 7" },
|
|
|
|
{ on = [ "9" ], exec = "tab_switch 8" },
|
2023-07-17 19:34:58 +03:00
|
|
|
|
|
|
|
{ on = [ "[" ], exec = "tab_switch -1 --relative" },
|
|
|
|
{ on = [ "]" ], exec = "tab_switch 1 --relative" },
|
|
|
|
|
|
|
|
{ on = [ "{" ], exec = "tab_swap -1" },
|
|
|
|
{ on = [ "}" ], exec = "tab_swap 1" },
|
|
|
|
|
|
|
|
# Tasks
|
|
|
|
{ on = [ "w" ], exec = "tasks_show" },
|
2023-07-24 03:20:06 +03:00
|
|
|
|
|
|
|
# Goto
|
|
|
|
{ on = [ "g", "h" ], exec = "cd ~" },
|
|
|
|
{ on = [ "g", "c" ], exec = "cd ~/.config" },
|
|
|
|
{ on = [ "g", "d" ], exec = "cd ~/Downloads" },
|
|
|
|
{ on = [ "g", "t" ], exec = "cd /tmp" },
|
2023-08-09 17:30:02 +03:00
|
|
|
{ on = [ "g", "<Space>" ], exec = "cd --interactive" },
|
2023-07-17 19:34:58 +03:00
|
|
|
]
|
|
|
|
|
|
|
|
[tasks]
|
|
|
|
|
|
|
|
keymap = [
|
2023-07-18 17:23:27 +03:00
|
|
|
{ on = [ "<C-q>" ], exec = "close" },
|
2023-07-17 19:34:58 +03:00
|
|
|
{ on = [ "<Esc>" ], exec = "close" },
|
|
|
|
{ on = [ "w" ], exec = "close" },
|
|
|
|
|
|
|
|
{ on = [ "k" ], exec = "arrow -1" },
|
2023-07-20 01:44:26 +03:00
|
|
|
{ on = [ "j" ], exec = "arrow 1" },
|
|
|
|
|
|
|
|
{ on = [ "<Up>" ], exec = "arrow -1" },
|
|
|
|
{ on = [ "<Down>" ], exec = "arrow 1" },
|
2023-07-17 19:34:58 +03:00
|
|
|
|
2023-08-03 13:55:40 +03:00
|
|
|
{ on = [ "<Enter>" ], exec = "inspect" },
|
2023-07-17 19:34:58 +03:00
|
|
|
{ on = [ "x" ], exec = "cancel" },
|
|
|
|
]
|
|
|
|
|
2023-07-18 17:23:27 +03:00
|
|
|
[select]
|
|
|
|
|
|
|
|
keymap = [
|
|
|
|
{ on = [ "<C-q>" ], exec = "close" },
|
|
|
|
{ on = [ "<Esc>" ], exec = "close" },
|
|
|
|
{ on = [ "<Enter>" ], exec = "close --submit" },
|
|
|
|
|
|
|
|
{ on = [ "k" ], exec = "arrow -1" },
|
2023-07-20 01:44:26 +03:00
|
|
|
{ on = [ "j" ], exec = "arrow 1" },
|
2023-07-18 17:23:27 +03:00
|
|
|
|
|
|
|
{ on = [ "K" ], exec = "arrow -5" },
|
2023-07-20 01:44:26 +03:00
|
|
|
{ on = [ "J" ], exec = "arrow 5" },
|
|
|
|
|
|
|
|
{ on = [ "<Up>" ], exec = "arrow -1" },
|
|
|
|
{ on = [ "<Down>" ], exec = "arrow 1" },
|
2023-07-18 17:23:27 +03:00
|
|
|
]
|
|
|
|
|
2023-07-17 19:34:58 +03:00
|
|
|
[input]
|
|
|
|
|
|
|
|
keymap = [
|
|
|
|
{ on = [ "<C-q>" ], exec = "close" },
|
|
|
|
{ on = [ "<Enter>" ], exec = "close --submit" },
|
|
|
|
{ on = [ "<Esc>" ], exec = "escape" },
|
|
|
|
{ on = [ "<Backspace>" ], exec = "backspace" },
|
|
|
|
|
|
|
|
# Mode
|
|
|
|
{ on = [ "i" ], exec = "insert" },
|
|
|
|
{ on = [ "a" ], exec = "insert --append" },
|
2023-07-18 17:23:27 +03:00
|
|
|
{ on = [ "v" ], exec = "visual" },
|
2023-07-17 19:34:58 +03:00
|
|
|
|
2023-07-25 06:31:34 +03:00
|
|
|
# Navigation
|
2023-07-17 19:34:58 +03:00
|
|
|
{ on = [ "h" ], exec = "move -1" },
|
|
|
|
{ on = [ "l" ], exec = "move 1" },
|
|
|
|
|
2023-07-24 20:25:21 +03:00
|
|
|
{ on = [ "0" ], exec = "move -999" },
|
|
|
|
{ on = [ "$" ], exec = "move 999" },
|
|
|
|
{ on = [ "I" ], exec = [ "move -999", "insert" ] },
|
|
|
|
{ on = [ "A" ], exec = [ "move 999", "insert --append" ] },
|
2023-07-17 19:34:58 +03:00
|
|
|
|
2023-07-20 01:44:26 +03:00
|
|
|
{ on = [ "<Left>" ], exec = "move -1" },
|
|
|
|
{ on = [ "<Right>" ], exec = "move 1" },
|
|
|
|
|
2023-07-17 19:34:58 +03:00
|
|
|
{ on = [ "b" ], exec = "backward" },
|
|
|
|
{ on = [ "w" ], exec = "forward" },
|
|
|
|
{ on = [ "e" ], exec = "forward --end-of-word" },
|
|
|
|
|
2023-07-25 06:31:34 +03:00
|
|
|
# Deletion
|
2023-07-24 20:25:21 +03:00
|
|
|
{ on = [ "d" ], exec = "delete --cut" },
|
|
|
|
{ on = [ "c" ], exec = "delete --cut --insert" },
|
|
|
|
{ on = [ "x" ], exec = [ "delete --cut", "move 1 --in-operating" ] },
|
2023-07-21 02:54:02 +03:00
|
|
|
|
2023-08-02 05:29:49 +03:00
|
|
|
# Yank/Paste
|
2023-08-20 05:39:05 +03:00
|
|
|
{ on = [ "y" ], exec = "yank" },
|
|
|
|
{ on = [ "p" ], exec = "paste" },
|
|
|
|
{ on = [ "P" ], exec = "paste --before" },
|
2023-07-22 19:14:55 +03:00
|
|
|
|
2023-07-25 06:31:34 +03:00
|
|
|
# Undo/Redo
|
2023-08-20 05:39:05 +03:00
|
|
|
{ on = [ "u" ], exec = "undo" },
|
|
|
|
{ on = [ "<C-r>" ], exec = "redo" },
|
2023-07-17 19:34:58 +03:00
|
|
|
]
|