mirror of
https://github.com/nix-community/home-manager
synced 2024-11-23 03:29:45 +01:00
yazi: update keymap config
This commit is contained in:
parent
a46e702093
commit
d86cfbc71e
3 changed files with 32 additions and 32 deletions
|
@ -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>" ]; }
|
||||
];
|
||||
}
|
||||
'';
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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>" ];
|
||||
}
|
||||
];
|
||||
|
|
Loading…
Reference in a new issue