-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
use javascript in “find” field #20
Comments
How do you want to use this exactly? In general, you can not use javascript to create a If you have text like and select it, then text like this will match and be selected and replaced if you have a
{
"key": "alt+e",
"command": "findInCurrentFile",
"args": {
"isRegex": true, // MUST have this for the selection(s) to be treated as a regex
// "replace": "some replacement"
}
}, You can even select 2 or more regex's in the file and have them all select any matches: Is there something else you wanted to do not covered by the above? |
Noted |
Is it possible to use javascript in "find" filed?
For example, read a regular expression string from a text file and convert the raw string to the format string (like transforming backslash into double backslash,double quote into backslash+double quote) that javascript accepts.
Or have the "Find and Transform" supported that feature already?
The text was updated successfully, but these errors were encountered: