-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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 mode: Pressing enter in the buffer search dialog moves to the second match #8049
Comments
To clarify reproduction steps here:
(This doesn't happen if you use See also #7692 |
It also happens when using |
Hmm. I definitely did, thanks for clarifying. I now can't reproduce this at all. Can you describe the reproduction steps in more detail? |
|
I think it's the same problem: #7692 |
@hferreiro hmm... The behavior you are describing is how it should work (each time you do I think I managed to reproduce what you're seeing using just vim mode though:
Screen.Recording.2024-02-20.at.9.53.11.PM.mov |
Yes, but that's not the correct behavior. Enter should just unfocus and jump to the first result, as mentioned at #7692 (comment). |
Funny thing, at the forth step at #8049 (comment), if you don't type |
Hi there! 👋 |
Still an issue. |
Hi there! 👋 |
Still an issue. |
The issue is caused by this zed/crates/vim/src/normal/search.rs Line 191 in 74d1a65
That initial state:
|
👍 Nice find! I'd like to fix this to more correctly match vim, and it sounds like we need to maintain a little more or different state to correctly emulate how vim works here. Happy to pair on a solution, or review PRs if you have an idea: https://cal.com/conradirwin/pairing |
I took a slot for Tuesday |
Closes #8049 Co-authored-by: nilehmann <[email protected]> Co-authored-by: Anthony Eid <[email protected]>
Check for existing issues
Describe the bug / provide steps to reproduce it
I'd expect that the cursor is positioned at the first match.
Environment
Zed: v0.122.2 (Zed)
OS: macOS 14.3.1
Memory: 32 GiB
Architecture: aarch64
If applicable, add mockups / screenshots to help explain present your vision of the feature
No response
If applicable, attach your
~/Library/Logs/Zed/Zed.log
file to this issue.If you only need the most recent lines, you can run the
zed: open log
command palette action to see the last 1000.No response
The text was updated successfully, but these errors were encountered: