You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Interestingly #count and count# don't work but co#unt does. It looks like the text which ends up in the search bar converts the # to \#.
Similarly @count and count@ don't work but co@unt does, but this time there's no conversion of the text which ends up in the search bar.
The behaviour I expect is that if I put my cursor on a 'word' which includes a @ or # and use vim: move to next (* key) or use vim: move to prev (# key) then it should go to the next/prev instance of that 'word'. I don't care what ends up in the search bar or whether Use Regular Expressions is checked, I just want it to find the next instance.
Currently the search bar uses \< and \> when word-only mode is enabled (which it is for */#). This doesn't know about zed's word-characters, so fails because there is not a word-break at the beginning/end of the query.
ConradIrwin
changed the title
@/# don't work in language word_characters when using vim */# find under cursor
vim: */# do not work if "current word" starts or ends with punctuation
Dec 3, 2024
Check for existing issues
Describe the bug / provide steps to reproduce it
@
or#
to language word_characters (or look at a JavaScript file which already includes#
).@
or#
character.*
/#
.Use Regular Expressions
option results in matches being found.Environment
Zed: v0.160.7 (Zed)
OS: macOS 14.4.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 Zed.log file to this issue.
No response
The text was updated successfully, but these errors were encountered: