Yazi: add keymaps

This commit is contained in:
Paul-Henri Froidmont 2024-06-25 03:22:38 +02:00
parent 335447b956
commit 28b58fe7ea
Signed by: phfroidmont
GPG key ID: BE948AFD7E7873BE

View file

@ -21,6 +21,30 @@ in {
max_height = 1800; max_height = 1800;
}; };
}; };
keymap = {
manager.prepend_keymap = [
{
on = [ "<C-s>" ];
run = ''shell "$SHELL" --block --confirm'';
desc = "Open shell here";
}
{
on = [ "y" ];
run = [
"yank"
''
shell --confirm 'for path in "$@"; do echo "file://$path"; done | wl-copy -t text/uri-list'
''
];
desc = "Copy files to clipboard";
}
];
input.prepend_keymap = [{
on = [ "<Esc>" ];
run = "close";
desc = "Cancel input";
}];
};
theme = { theme = {
status = { status = {
separator_open = ""; separator_open = "";