-
Notifications
You must be signed in to change notification settings - Fork 36
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
Passing a string to actions.find #39
Comments
This is caused by delay in the editor, to verify it you can add a bunch of write commands (and you'll see that they eventually write in the find window) Solution: #13 |
Just in case anyone else lands here, the solution I landed on was:
|
That helps a lot. Thank you. "json2-": [
{
"command": "editor.actions.findWithArgs",
"args": {
"searchString": "^ *('|\")(.+?)('|\") *: *('|\")(.+?)('|\"),? *$",
"replaceString": "-$2=$5",
"isRegex": true
}
},
"editor.action.replaceAll"
] To know the full args of |
I'm trying to create a macro that will find a certain string (a regex string that I use a lot), that will then replace it with another regex string. I have set it up, but instead of the find string being placed in the find box, it's being placed in the text editor. Is there another argument I should be using instead of text?
The text was updated successfully, but these errors were encountered: