I need to do several replacements in many files so I was looking for a "batch find and replace" tool and this RegReplace for Sublime Text 3 plugin looks promising, but I can't get it working.
Here is what I have done:
- installed RegReplace using PackageControl: Install package
edited file Preferences->PackageSettings->RegReplace->Settings-User:
{ "replacements": { "remove_a": { "find" : "a", "replace": "", "greedy": true } } }
- opened a file containing some text
- opened the console
- typed
view.run_command('reg_replace',{"replacements": ["remove_a"]})
but nothing happened (I expected that letters "a" in the file would be removed) edited file Preferences->PackageSettings->RegReplace->Commands-User:
[ { "caption": "Remove a", "command": "reg_replace", "args": { "replacements": ["remove_a"] } } ]
- Ran the command "Remove a" from Command Palette. Again, nothing happened.
Is there anything that could be done to get it working?