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 ''
{
input.keymap = [
{ exec = "close"; on = [ "<C-q>" ]; }
{ exec = "close --submit"; on = [ "<Enter>" ]; }
{ exec = "escape"; on = [ "<Esc>" ]; }
{ exec = "backspace"; on = [ "<Backspace>" ]; }
{ on = [ "<C-q>" ]; run = "close"; }
{ on = [ "<Enter>" ]; run = "close --submit"; }
{ on = [ "<Esc>" ]; run = "escape"; }
{ on = [ "<Backspace>" ]; run = "backspace"; }
];
manager.keymap = [
{ exec = "escape"; on = [ "<Esc>" ]; }
{ exec = "quit"; on = [ "q" ]; }
{ exec = "close"; on = [ "<C-q>" ]; }
{ on = [ "<Esc>" ]; run = "escape"; }
{ on = [ "q" ]; run = "quit"; }
{ on = [ "<C-q>" ]; run = "close"; }
];
}
'';

View file

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

View file

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