-
-
Save NigelThorne/067cb108c55162bad2aa to your computer and use it in GitHub Desktop.
"%~dp0subl.exe" -n -w %1 |
Awesome thank you!
One line that's a bit ambiguous "Set Zip's "Editor" to the full path of the above script." For anyone else confused I take this to mean set the path in 7zips Tools>Options>Editor>Editor
Great, thank you! 😃
Only one question: how to make the script work when closing the tab? Because I have to close the whole program (Sublime 3) for 7zip to detect there is a change in the file.
I don't think you can. 7Zip launches the process, then needs to know when you have finished editing, so it knows when to update the Zip file. It does that by detecting when the launched process exits.
You don't need to have a separate batch file. In 7zips Tools>Options>Editor>Editor, just enter the full path in double quotes followed by -n -w
:
In the 7Zip menu Tools>Options>Editor>Editor
, enter:
"C:\Program Files\Sublime Text 3\subl.exe" -n -w
You don't need to have a separate batch file. In 7zips Tools>Options>Editor>Editor, just enter the full path in double quotes followed by
-n -w
:
That's the easiest solution, but not all versions support it. I tested it with 7ZIP 16.04, and it didn't work. Updated to 19.0, and it does.
Amazing. I've been looking for this. Thanks.