Bind the <Enter>
key to open both files and directories
#2304
Unanswered
mukuldaroch
asked this question in
1. Q&A
Replies: 1 comment
-
https://github.com/yazi-rs/plugins/tree/main/smart-enter.yazi is exactly what you're looking for, you can bind it to your [[manager.prepend_keymap]]
on = "<Enter>"
run = "plugin smart-enter"
desc = "Enter the child directory, or open the file" Doc of |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What system are you running Yazi on?
Linux Wayland
What terminal are you running Yazi in?
kitty 0.39.1
yazi --debug
outputDescribe the question
I used to use nnn as my termial file manager now i switched to yazi but there is a little thing i don't know how to configure its the keybinding i nnn you open files with l key and in yazi its enter key can anyone tell me how can i configure the l key to open files
[manager]
prepend_keymap = [
{ on = "l", run = "open", desc = "Open selected files" },
]
append_keymap = [
{ on = "", run = "open", desc = "Open selected files" },
]
this in keymap.toml works but the problem is when I press l key on any directory it will open it in nvim , I tried some other things also but nothing works
Anything else?
No response
Checklist
Beta Was this translation helpful? Give feedback.
All reactions