-
Notifications
You must be signed in to change notification settings - Fork 0
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
[REVIEW ONLY] Add "Find Whole Word" Functionality #12873
Comments
Comment by ficristo I didn't realize the existence of this PR so I implemented the same feature in adobe/brackets#11624 |
Comment by MarcelGerber
|
Comment by abose
|
Comment by MarcelGerber |
Comment by Denisov21 👍 I hope that this feature will be added soon! |
Comment by ficristo I think is time to review and merge this: it is a basic feature that other code editore have (Notepad++, Sublime, Atom). |
Comment by abose I too find the drop down hiding the search option. we could add match whole case as one more button in the findbar as all three could work with each other. |
Comment by MarcelGerber This PR is up-to-date again, with the toggle moved into the find bar. |
Comment by ficristo
|
Comment by swmitra
|
Comment by MarcelGerber Unfortunately, I've now noticed that our RegExp-based search implementation is not well fitted for whole-word detection. I tried fixing that with the more advanced XRegExp and it worked for the word end using lookaheads, but as JS doesn't support lookbehinds, we cannot do the same for the word start. I don't know what to do about that now. Refactoring the find system seems overkill, and is not trivial either. |
Comment by ficristo I tryed VSCode and it seems to have the same behaviour. |
Comment by ficristo Also to replace this missing feature I use a regexp search with \b, which has the same problem (of course). |
Comment by MarcelGerber Interesting. |
Issue by MarcelGerber
Saturday Oct 11, 2014 at 08:52 GMT
Originally opened as adobe/brackets#9526
This is still a somewhat ugly and hacky implementation, but it works at least ;)
Successor of #8310, using a dropdown for RegExp and Whole Word toggle.
MarcelGerber included the following code: https://github.com/adobe/brackets/pull/9526/commits
The text was updated successfully, but these errors were encountered: