diff --git a/modules/programs/yazi.nix b/modules/programs/yazi.nix index d7b880200..c389469e7 100644 --- a/modules/programs/yazi.nix +++ b/modules/programs/yazi.nix @@ -70,15 +70,15 @@ in { example = literalExpression '' { input.keymap = [ - { exec = "close"; on = [ "" ]; } - { exec = "close --submit"; on = [ "" ]; } - { exec = "escape"; on = [ "" ]; } - { exec = "backspace"; on = [ "" ]; } + { on = [ "" ]; run = "close"; } + { on = [ "" ]; run = "close --submit"; } + { on = [ "" ]; run = "escape"; } + { on = [ "" ]; run = "backspace"; } ]; manager.keymap = [ - { exec = "escape"; on = [ "" ]; } - { exec = "quit"; on = [ "q" ]; } - { exec = "close"; on = [ "" ]; } + { on = [ "" ]; run = "escape"; } + { on = [ "q" ]; run = "quit"; } + { on = [ "" ]; run = "close"; } ]; } ''; diff --git a/tests/modules/programs/yazi/keymap-expected.toml b/tests/modules/programs/yazi/keymap-expected.toml index 6733978ad..9b629e507 100644 --- a/tests/modules/programs/yazi/keymap-expected.toml +++ b/tests/modules/programs/yazi/keymap-expected.toml @@ -1,27 +1,27 @@ [[input.keymap]] -exec = "close" on = [""] +run = "close" [[input.keymap]] -exec = "close --submit" on = [""] +run = "close --submit" [[input.keymap]] -exec = "escape" on = [""] +run = "escape" [[input.keymap]] -exec = "backspace" on = [""] +run = "backspace" [[manager.keymap]] -exec = "escape" on = [""] +run = "escape" [[manager.keymap]] -exec = "quit" on = ["q"] +run = "quit" [[manager.keymap]] -exec = "close" on = [""] +run = "close" diff --git a/tests/modules/programs/yazi/settings.nix b/tests/modules/programs/yazi/settings.nix index 2694dadec..6a4adab54 100644 --- a/tests/modules/programs/yazi/settings.nix +++ b/tests/modules/programs/yazi/settings.nix @@ -7,34 +7,34 @@ keymap = { input.keymap = [ { - exec = "close"; on = [ "" ]; + run = "close"; } { - exec = "close --submit"; on = [ "" ]; + run = "close --submit"; } { - exec = "escape"; on = [ "" ]; + run = "escape"; } { - exec = "backspace"; on = [ "" ]; + run = "backspace"; } ]; manager.keymap = [ { - exec = "escape"; on = [ "" ]; + run = "escape"; } { - exec = "quit"; on = [ "q" ]; + run = "quit"; } { - exec = "close"; on = [ "" ]; + run = "close"; } ]; };