-
Hi, 👋 I know how to replace/override a key. But how to remove it completely?
prepend_keymap = [
{ on = ["n"], exec = "arrow -1", desc = "Move cursor up" },
{ on = ["e"], exec = "arrow 1", desc = "Move cursor down" },
]
prepend_keymap = [
{ on = ["<S-Up>"], exec = "false(?)", desc = "Move cursor up 5 lines" },
{ on = ["<S-Down>"], exec = "false(?)", desc = "Move cursor down 5 lines" },
] Thank you for Yazi! 🍦 |
Beta Was this translation helpful? Give feedback.
Answered by
sxyazi
Feb 5, 2024
Replies: 1 comment 5 replies
-
You can bind any commands that do not exist to them, and Yazi will silently ignore them, like: prepend_keymap = [
{ on = ["<S-Up>"], exec = "whatever", desc = "Move cursor up 5 lines" },
{ on = ["<S-Down>"], exec = "youwant", desc = "Move cursor down 5 lines" },
] |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
azzamsa
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can bind any commands that do not exist to them, and Yazi will silently ignore them, like: