0

variables in key bindings

Sander Pilon 7 years ago 0

In EditPlus I have the ability to use the file directory and path as input to a custom command. So I could execute a "svn commit", using the path of the current file as the working directory.

Something like this:

 { "keys": ["ctrl+1"], "command": "exec", "args": { "cmd": ["'C:\\Program Files (x86)\\Subversion\\bin\\svn.exe'", "-m: ci"], "shell" : true, "working_dir": "$file_dir"  } }

The build system isn't quite as flexible as I'd like. (I'd like to be able to execute this on any type of file whenever I want.)