Yazi: Update keymap.

This commit is contained in:
Dmitry Voronin 2024-12-03 07:44:04 +03:00
parent 7e6a6b4156
commit d0729d2148
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k

View file

@ -6,30 +6,29 @@
file = (pkgs.formats.toml { }).generate "YaziKeymapConfig" { file = (pkgs.formats.toml { }).generate "YaziKeymapConfig" {
manager = { manager = {
prepend_keymap = [ prepend_keymap = [
{ on = "<Enter>"; desc = "Spawn shell here"; run = ''shell "SHELL_NAME=yazi $SHELL" --block --confirm''; } { on = "<Enter>"; desc = "Spawn shell here"; run = ''shell "SHELL_NAME=yazi $SHELL" --block --confirm''; }
{ on = "<Tab>"; desc = "New tab"; run = "tab_create --current"; } { on = "<Tab>"; desc = "New tab"; run = "tab_create --current"; }
{ on = "?"; desc = "Show help"; run = "help"; } { on = "?"; desc = "Show help"; run = "help"; }
{ on = "D"; desc = "Force delete"; run = "remove --permanently --force"; } { on = "D"; desc = "Force delete"; run = "remove --permanently --force"; }
{ on = "E"; desc = "Move to next tab"; run = "tab_swap 1 --relative"; } { on = "E"; desc = "Move to next tab"; run = "tab_swap 1 --relative"; }
{ on = "O"; desc = "Open default"; run = "open"; } { on = "O"; desc = "Open default"; run = "open"; }
{ on = "Q"; desc = "Move to prev tab"; run = "tab_swap -1 --relative"; } { on = "Q"; desc = "Move to prev tab"; run = "tab_swap -1 --relative"; }
{ on = "R"; desc = "Rename completely"; run = "rename --empty=all"; } { on = "R"; desc = "Rename completely"; run = "rename --empty=all"; }
{ on = "Z"; desc = "Exit yazi w/o cwd"; run = "quit --no-cwd-file"; } { on = "Z"; desc = "Exit yazi"; run = "quit"; }
{ on = "c"; desc = "Close tab"; run = "close"; } { on = "d"; desc = "Delete"; run = "remove --permanently"; }
{ on = "d"; desc = "Delete"; run = "remove --permanently"; } { on = "e"; desc = "Next tab"; run = "tab_switch 1 --relative"; }
{ on = "e"; desc = "Next tab"; run = "tab_switch 1 --relative"; } { on = "o"; desc = "Open interactively"; run = "open --interactive"; }
{ on = "o"; desc = "Open interactively";run = "open --interactive"; } { on = "q"; desc = "Prev tab"; run = "tab_switch -1 --relative"; }
{ on = "q"; desc = "Prev tab"; run = "tab_switch -1 --relative"; } { on = "z"; desc = "Close tab"; run = "close"; }
{ on = "z"; desc = "Exit yazi"; run = "quit"; } { on = [ "g" "T" ]; desc = "Go to system tmp"; run = "cd /tmp"; }
{ on = [ "g" "T" ]; desc = "Go to system tmp"; run = "cd /tmp"; } { on = [ "g" "c" ]; desc = "Go to configs"; run = "noop"; }
{ on = [ "g" "c" ]; desc = "Go to configs"; run = "noop"; } { on = [ "g" "d" ]; desc = "Go to downloads"; run = "cd $XDG_DOWNLOAD_DIR"; }
{ on = [ "g" "d" ]; desc = "Go to downloads"; run = "cd $XDG_DOWNLOAD_DIR"; } { on = [ "g" "m" ]; desc = "Go to mnt"; run = "cd /mnt"; }
{ on = [ "g" "m" ]; desc = "Go to mnt"; run = "cd /mnt"; } { on = [ "g" "p" ]; desc = "Go to projects"; run = "cd ~/project"; }
{ on = [ "g" "p" ]; desc = "Go to projects"; run = "cd ~/project"; } { on = [ "g" "r" ]; desc = "Go to root"; run = "cd /"; }
{ on = [ "g" "r" ]; desc = "Go to root"; run = "cd /"; } { on = [ "g" "s" ]; desc = "Go to storage"; run = "cd /storage"; }
{ on = [ "g" "s" ]; desc = "Go to storage"; run = "cd /storage"; } { on = [ "g" "t" ]; desc = "Go to tmp"; run = "cd ~/tmp"; }
{ on = [ "g" "t" ]; desc = "Go to tmp"; run = "cd ~/tmp"; } { on = [ "g" "u" ]; desc = "Go to user"; run = "cd /run/user/$UID"; }
{ on = [ "g" "u" ]; desc = "Go to user"; run = "cd /run/user/$UID"; }
]; ];
}; };
}; };