-
I want to open the file in different ways with two different keys, as shown below
|
Beta Was this translation helpful? Give feedback.
Answered by
sxyazi
Jan 8, 2024
Replies: 1 comment
-
I think you can call vim or vscode directly, without following the opener rules. Like this: keymaps = [
{ on = [ "o", "v" ], exec = """ shell --confirm 'vim "$@"' """ },
{ on = [ "o", "c" ], exec = """ shell --confirm 'code "$@"' """ }
] The |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
blankPen
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think you can call vim or vscode directly, without following the opener rules. Like this:
The
shell
command docs here: https://yazi-rs.github.io/docs/configuration/keymap#:~:text=without%20the%20extension.-,shell,-%3A%20Run%20a%20shell