diff --git a/modules/programs/yazi.nix b/modules/programs/yazi.nix index d7b88020..c389469e 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 6733978a..9b629e50 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 2694dade..6a4adab5 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"; } ]; };