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 = { };
example = literalExpression ''
{
input.keymap = [
{ exec = "close"; on = [ "<C-q>" ]; }
{ exec = "close --submit"; on = [ "<Enter>" ]; }
{ exec = "escape"; on = [ "<Esc>" ]; }
{ exec = "backspace"; on = [ "<Backspace>" ]; }
input.prepend_keymap = [
{ run = "close"; on = [ "<C-q>" ]; }
{ run = "close --submit"; on = [ "<Enter>" ]; }
{ run = "escape"; on = [ "<Esc>" ]; }
{ run = "backspace"; on = [ "<Backspace>" ]; }
];
manager.keymap = [
{ exec = "escape"; on = [ "<Esc>" ]; }
{ exec = "quit"; on = [ "q" ]; }
{ exec = "close"; on = [ "<C-q>" ]; }
manager.prepend_keymap = [
{ run = "escape"; on = [ "<Esc>" ]; }
{ run = "quit"; on = [ "q" ]; }
{ run = "close"; on = [ "<C-q>" ]; }
];
}
'';

View file

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

View file

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