Skip to content
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

[vim] single line input vim mode #13293

Closed
1 task done
0x2CA opened this issue Jun 20, 2024 · 5 comments
Closed
1 task done

[vim] single line input vim mode #13293

0x2CA opened this issue Jun 20, 2024 · 5 comments
Labels
enhancement [core label] keymap / key binding Feedback for keyboard shortcuts, key mapping, etc vim

Comments

@0x2CA
Copy link
Contributor

0x2CA commented Jun 20, 2024

Check for existing issues

  • Completed

Describe the feature

As far as I know, there is a single line vim mode at the beginning, but due to the esc problem, it causes the need to press esc multiple times. So single line vim mode is turned off, and I was wondering if it is possible to add shift-esc instead of the original esc so that multiple esc presses can be avoided. problem, or the default behavior is to go back, but use shift-esc to enter normal mode?

If applicable, add mockups / screenshots to help present your vision of the feature

No response

@notpeter notpeter added vim keymap / key binding Feedback for keyboard shortcuts, key mapping, etc and removed triage labels Jun 20, 2024
@notpeter
Copy link
Member

Forgive me for not being a vim user. I don't quite understand exactly what you're asking for. Can you explain to me like I'm five?

I wonder whether this could be solved with a custom keybinding for shift-esc.

@notpeter notpeter added the awaiting info Issue that needs more information from the user label Jun 20, 2024
@0x2CA
Copy link
Contributor Author

0x2CA commented Jun 21, 2024

The core of this issue is that any single line of input should support vim mode, this includes search input, chat input rename input etc. This is a feature that can not be achieved with a simple keymap, nowadays cursor movement deletion is limited to the most primitive keybindings, this is far from vim, it was possible in the early versions supported by zed, but some people opened the issue complaining about why you need to press esc multiple times to close the interface, because the first press is switching from insertion mode to normal mode, and the second time is the actual The second press was to actually close the interface. Then the team turned off this feature. But this feature is very common in lazyvim which also supports it.

@0x2CA
Copy link
Contributor Author

0x2CA commented Jun 21, 2024

For example telescope.nvim

2024-06-21.10.20.04.mov

@JosephTLyons JosephTLyons removed the awaiting info Issue that needs more information from the user label Oct 13, 2024
@kbarys
Copy link

kbarys commented Jan 9, 2025

is it or would it be possible to configure whether to use the vim mode, for those who are ok with pressing the escape key multiple times? It would be very useful, especially when renaming symbols.

@ConradIrwin
Copy link
Member

Duplicate of #12008

I think this is technically possible, but we unfortunately already use escape in most contexts to mean "close the input" not "switch to normal mode"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement [core label] keymap / key binding Feedback for keyboard shortcuts, key mapping, etc vim
Projects
None yet
Development

No branches or pull requests

5 participants