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
Regex Find in Page #367
Comments
I'm working on it at my fork. |
This is now implemented in the regex-find branch. The current UX is a stripped down version of what's available in Pentadactyl (see here for more details) -- essentially the search string is treated as a regex if the user types '\r' in the search query. By default the query is treated as a plain string. It doesn't sound very elegant, but I think it makes sense -- if the user at any point realizes that he needs a regex he can switch it on very easily, without losing what he has typed before. Pentadactyl uses these flags to toggle case sensitivity, too, and I think it would make sense for us to add that in as well in the future. @philc and @ilya, any comments on the UX or on the code? Also, we should probably document this somewhere. Perhaps we could start a guide that's similar to what Pentadactyl has, and link to it via our help dialog? |
Okay, I polished up the whole find service on the regex-find branch. It still needs a bit of refactoring but I think I'm mostly done. Here's what we have:
Thoughts about the code: Could probably be more OO and better encapsulated, but I didn't want to create too much code churn by moving everything into a new file. I definitely plan to create a domUtils.js file though. @philc -- if this is good, I'm going to add some user documentation and merge it into master. |
Thanks Jez. I'll have a look. |
I've made several changes to other aspects of vimium that aren't directly related to the find service but are incompatible with the differences between |
This feature was completed and merged a while ago. |
Just want to say thanks for all the work on this feature, it is great! |
For others seeking to turn this feature on as the default behavior, this is under options as "Treat find queries as regular expressions". It's great! |
Thanks @niedzielski! |
Could you include an option to have the Find in Page feature accept regular expressions? That would be awesome, thanks for this extension!
The text was updated successfully, but these errors were encountered: