-
Notifications
You must be signed in to change notification settings - Fork 219
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FEATURE: Put cursor in the beginning of line in normal mode #1371
Comments
Oh I'm sorry. |
Just adding info for anyone looking to pick this up: you might have success getting the |
Please read |
Not sure if this is the right place to ask this, but does anyone know if there's a way to control what happens based on the different input popups? |
Also with this new suggested event: {
event = "neo_tree_popup_input_ready",
---@param input NuiInput
handler = function(input)
vim.cmd("stopinsert") -- Enter normal mode
end,
} I am unable to enter normal mode after manually entering insert mode with |
There's no simple way to do this, but it would be a nice feature. Someone could probably come up with a code snippet to inspect the title displayed in the wrapper window.
That's a bug, or at least an oversight. I made a separate issue out of that. |
Isn't it just up to the user to remap using |
Maybe, but we make the mapping with Nui so I'm not sure how easy it is to unmap from the event. |
Wdym? There's |
|
I'm sorry, I even put it in the docs but I forgot to pass I think we should pass it as either Which one would you prefer? I'll make a PR later today. |
I've created #1398. Do you think this method works for you? It was my mistake in the previous PR. Thanks for pointing out. |
Yup being able to control the mappings seems good. Thanks for the fix. Although im thinking now with the complexity of this event handler increasing, it might have been a good idea to keep the boolean option enable_normal_mode_for_inputs which if set to 'true' would just create this handler. That makes sense as its own option since thats a basic functionality imo, and then the event handler would be there to customize the behaviour more. Let me know if this makes sense, maybe I can create a separate ticket for it |
This is my opinion on that #1372 (comment) I understand that it is complicated but I've seen many FR that are slightly different for everybody (normal by default, put cursor before extension but in insert mode, put cursor at front, ...) and it is hard to distinguish where we officially support and not. Therefore imo I think it's better to say that we support one and only one feature (insert + maps for |
That sounds alright to me. Thanks for clarifying |
Did you check the docs?
Is your feature request related to a problem? Please describe.
Most of the time, when renaming a file I just want to rename the filename without changing the extension. Currently the cursor placed in the end of line.
Describe the solution you'd like.
I think it would be better to put the cursor in the beginning of the line so we can just use
cw
orct.
to change the filename.Describe alternatives you've considered.
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: