-
Hi everyone, I understand that setting enable_normal_mode_for_inputs = true would apply to every file actions like creating and renaming a file. I'm just wondering, is there a way for me to configure neo-tree to only enable this normal mode behavior specifically for renaming and not for other actions such as creating a new file? Perhaps there is a way to remap r to a callback function to do this? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Update to the latest main branch, and you'll have this feature. However, the argument given to this handler is You do have TLDR; no, and it is very difficult to implement due to how the code is structured. |
Beta Was this translation helpful? Give feedback.
Update to the latest main branch, and you'll have this feature.
#1372
However, the argument given to this handler is
NuiInput
object and to my knowledge it is not possible to detect which type of prompt it is.You do have
input.bufnr
andinput.winid
so it is not impossible to fetch eg the title or buffer content (Enter new name for, ...).TLDR; no, and it is very difficult to implement due to how the code is structured.