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

Repeated searches from same cursor position skip first match (vim mode) #21234

Open
1 task done
nicmue opened this issue Nov 27, 2024 · 0 comments
Open
1 task done

Repeated searches from same cursor position skip first match (vim mode) #21234

nicmue opened this issue Nov 27, 2024 · 0 comments
Labels
admin read Pending admin review bug [core label] triage Maintainer needs to classify the issue

Comments

@nicmue
Copy link

nicmue commented Nov 27, 2024

Check for existing issues

  • Completed

Describe the bug / provide steps to reproduce it

Steps to reproduce:

  1. Have multiple lines containing the same word
  2. Press / to open the search
  3. Search for your word dolor and hit enter. You will jump to the first match in the same line.
  4. Jump to beginning of the line (^)
  5. Press / to open the search again
  6. Search for your word dolor and hit enter. This time you land at the second match and skip the first one.

This is especially inconvenient if you try to use vim commands like c/<word>. If you did it for the same word before you might just skip the intended match. I expected the search to be reset when pressing / again. I also tried this setup in neovim and it is not skipping the first match in this scenario.

Screen.Recording.2024-11-27.at.10.34.20.mov

(I am not 100% sure if this is a bug or just a feature that I am misunderstanding. Please just close it if not valid)

Environment

Zed: v0.163.2 (Zed Preview)
OS: macOS 14.7.1
Memory: 32 GiB
Architecture: x86_64

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

No response

If applicable, attach your Zed.log file to this issue.

Zed.log

@nicmue nicmue added admin read Pending admin review bug [core label] triage Maintainer needs to classify the issue labels Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
admin read Pending admin review bug [core label] triage Maintainer needs to classify the issue
Projects
None yet
Development

No branches or pull requests

1 participant