-
Notifications
You must be signed in to change notification settings - Fork 89
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
Support regex input #104
Comments
Fix justinmk#104. This should support more flexibility in customisation. With this option enabled, only input text not containing "\v, \V, \m, \M" are treated literal.
Thank you! What are some example inputs that you use? I can use those examples to add some tests. |
Fix justinmk#104. This should support more flexibility in customisation. With this option enabled, input text not matching '^\\[vVmM].' are still treated literal.
I suppose the the pattern parsing is correct. But there are probably problems when inputting patterns in My initial intention for adding pattern input is that, by defining specific mappings, we can jump to common text objects, which is currently all I need. I define a simple wrapper function and some mappings which seems work well.
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Prefix input text with '\v', '\m' or '\M' to turn on "regex mode". This doesn't break search of "literal text" whose length is less than 3. Because only text matching '^\\[vVmM].' are not literal any more, which is identical to what "literal text" means in Vim search pattern starting with '\V'. Systemic adjustments are needed for utilizing "regex mode", which is better to be served by the author. Close justinmk#104.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Prefix input text with '\v', '\m' or '\M' to turn on "regex mode". This doesn't break search of "literal text" whose length is less than 3. Because only text matching '^\\[vVmM].' are not literal any more, which is identical to what "literal text" means in Vim search pattern starting with '\V'. Systemic adjustments are needed for utilizing "regex mode", which is better to be served by the author. Close justinmk#104.
Prefix input text with '\v', '\m' or '\M' to turn on "regex mode". This doesn't break search of "literal text" whose length is less than 3. Because only text matching '^\\[vVmM].' are not literal any more, which is identical to what "literal text" means in Vim search pattern starting with '\V'. Systemic adjustments are needed for utilizing "regex mode", which is better to be served by the author. Close justinmk#104.
With regex input supported, for example, these jumps would be possible:
The text was updated successfully, but these errors were encountered: