mirror of
https://github.com/nix-community/home-manager
synced 2024-11-30 06:59: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 = { };
|
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>" ]; }
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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>" ];
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue