1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2024-12-14 11:57:55 +00:00

yazi: update keymap config

This commit is contained in:
Gaétan Lepage 2024-12-01 18:47:01 +01:00 committed by GitHub
parent 441fae847d
commit 7f78e2d1c6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 32 additions and 32 deletions

View file

@ -77,16 +77,16 @@ in {
default = { }; default = { };
example = literalExpression '' example = literalExpression ''
{ {
input.keymap = [ input.prepend_keymap = [
{ exec = "close"; on = [ "<C-q>" ]; } { run = "close"; on = [ "<C-q>" ]; }
{ exec = "close --submit"; on = [ "<Enter>" ]; } { run = "close --submit"; on = [ "<Enter>" ]; }
{ exec = "escape"; on = [ "<Esc>" ]; } { run = "escape"; on = [ "<Esc>" ]; }
{ exec = "backspace"; on = [ "<Backspace>" ]; } { run = "backspace"; on = [ "<Backspace>" ]; }
]; ];
manager.keymap = [ manager.prepend_keymap = [
{ exec = "escape"; on = [ "<Esc>" ]; } { run = "escape"; on = [ "<Esc>" ]; }
{ exec = "quit"; on = [ "q" ]; } { run = "quit"; on = [ "q" ]; }
{ exec = "close"; on = [ "<C-q>" ]; } { run = "close"; on = [ "<C-q>" ]; }
]; ];
} }
''; '';

View file

@ -1,27 +1,27 @@
[[input.keymap]] [[input.prepend_keymap]]
exec = "close"
on = ["<C-q>"] on = ["<C-q>"]
run = "close"
[[input.keymap]] [[input.prepend_keymap]]
exec = "close --submit"
on = ["<Enter>"] on = ["<Enter>"]
run = "close --submit"
[[input.keymap]] [[input.prepend_keymap]]
exec = "escape"
on = ["<Esc>"] on = ["<Esc>"]
run = "escape"
[[input.keymap]] [[input.prepend_keymap]]
exec = "backspace"
on = ["<Backspace>"] on = ["<Backspace>"]
run = "backspace"
[[manager.keymap]] [[manager.prepend_keymap]]
exec = "escape"
on = ["<Esc>"] on = ["<Esc>"]
run = "escape"
[[manager.keymap]] [[manager.prepend_keymap]]
exec = "quit"
on = ["q"] on = ["q"]
run = "quit"
[[manager.keymap]] [[manager.prepend_keymap]]
exec = "close"
on = ["<C-q>"] on = ["<C-q>"]
run = "close"

View file

@ -5,35 +5,35 @@
enable = true; enable = true;
keymap = { keymap = {
input.keymap = [ input.prepend_keymap = [
{ {
exec = "close"; run = "close";
on = [ "<C-q>" ]; on = [ "<C-q>" ];
} }
{ {
exec = "close --submit"; run = "close --submit";
on = [ "<Enter>" ]; on = [ "<Enter>" ];
} }
{ {
exec = "escape"; run = "escape";
on = [ "<Esc>" ]; on = [ "<Esc>" ];
} }
{ {
exec = "backspace"; run = "backspace";
on = [ "<Backspace>" ]; on = [ "<Backspace>" ];
} }
]; ];
manager.keymap = [ manager.prepend_keymap = [
{ {
exec = "escape"; run = "escape";
on = [ "<Esc>" ]; on = [ "<Esc>" ];
} }
{ {
exec = "quit"; run = "quit";
on = [ "q" ]; on = [ "q" ];
} }
{ {
exec = "close"; run = "close";
on = [ "<C-q>" ]; on = [ "<C-q>" ];
} }
]; ];