24 lines
976 B
TOML
24 lines
976 B
TOML
# "$schema" = "https://yazi-rs.github.io/schemas/keymap.json"
|
|
|
|
[mgr]
|
|
prepend_keymap = [
|
|
{ on = "t", run = "tab_create --current", desc = "Create a new tab with CWD" },
|
|
|
|
# { on = "<C-y>", run = "plugin wl-clipboard", desc = "Yank to clipboard" },
|
|
{ on = "<C-y>", run = 'shell -- for path in "$@"; do echo "file://$path"; done | wl-copy -t text/uri-list', desc = "Yank to clipboard" },
|
|
{ on = "<C-n>", run = 'shell -- dragon-drop -x -a -T -s 256 "$@"', desc = "Open drag and drop window" },
|
|
{ on = "!", run = 'shell "$SHELL" --block', desc = "Open $SHELL here" },
|
|
|
|
{ on = "R", run = "rename --empty=stem --cursor=start", desc = "Rename file full" },
|
|
# { on = [
|
|
# "g",
|
|
# "d",
|
|
# ], run = "cd ~/documents", desc = "Goto ~/documents" },
|
|
{ on = [
|
|
"g",
|
|
"r",
|
|
], run = 'shell -- ya emit cd "$(git rev-parse --show-toplevel)"', desc = "Go git root" },
|
|
|
|
{ on = "<A-s>", run = "search --via=rga", desc = "Search files by content via ripgrep-all" },
|
|
]
|