yadm-config/.config/yazi/keymap.toml
2025-02-23 22:36:48 +01:00

19 lines
1.1 KiB
TOML

[manager]
prepend_keymap = [
{ on = [ "<Space>", "m" ], run = "plugin mount", desc = "Displays mount dialog"},
{ on = [ "<Space>", 's'], run = "plugin what-size", desc = "Calc size of selection or cwd" },
{ on = [ "<Space>", '<S-s>'], run = "plugin what-size --args='--clipboard'", desc = "Calc size of selection or cwd" },
{ on = ["<Space>", 'c'], desc = "Archive selected files", run = "plugin compress"},
{ on = ["<Space>", "<Space>"], desc = "Jump with zoxide", run = "plugin zoxide" },
{ on = "<S-l>", desc = "Move to the tab on the left", run = "tab_switch 1 --relative" },
{ on = "<S-h>", desc = "Move to the tab on the right", run = "tab_switch -1 --relative" },
{ on = ["c", 'm'], desc = "Change file mod", run = "plugin chmod"},
{ on = [ "l" ], run = "plugin fuse-archive mount", desc = "Enter or Mount selected archive" },
{ on = [ "h" ], run = "plugin fuse-archive unmount", desc = "Leave or Unmount selected archive" },
]
append_keymap = [
{ on = ['c', 'v'], desc = "Drag selected files", run = "shell 'blobdrop -b \"$@\"'" },
{ on = ['c', 'y'], desc = "Copy file/files to wl-clipboard", run = "plugin wl-clipboard"}
]