1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-26 21:19:45 +01:00

yazi: change yazi exec to be run

yazi previously used "exec" for binds, and now it uses run.
This commit is contained in:
Wolf Mermelstein 2024-07-19 21:30:04 -04:00
parent afd2021bed
commit 547680530f
3 changed files with 21 additions and 21 deletions

View file

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

View file

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

View file

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