-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
'*' and '#' should search whole word #429
Comments
Totally true. I was holding off on doing this until we could handle word delimiters in |
@johnfn |
@octref awesome! absolutely! In Vim, when you're searching with / or ?, you can actually use certain special delimiters to indicate you want to match a full word. For instance, / matches only the entire word foo, not foobar or barfoo. If you use * and # in vim you can tell this is how they work under the hood. So I would suggest to implement that for / and ?, then rewrite * and # to use / and ? rather than reimplement them. |
From #569, another issue with our current implementation.
where | represents where the cursor is. Expected: / or ? of |
Sorry for not responding for so long... If you do Personally, I mostly use Maybe we should guide people to use VSCode's built-in Find by Regex, which is also standard Regex, not like Vim's special flavor. |
This was actually finished a while back! :) |
Do you need help or have a question? Ask us on Slack 👫.
Found a bug? Please fill out the sections below 👍.
Issue Summary
*
and#
not searching whole wordSteps to Reproduce
text as below
*
onabc
n
will matchabc
inabcd
andabcde
Technical details:
The text was updated successfully, but these errors were encountered: