SublimeText: Run the exec with current file as arg (Tab context menu)
问题 I have created a tab context menu to decode some data. Now, I need to take current file(Tab context menu) as 1st argument to decode this file using exec . Currently I'm using hardcoded path. How can I pass the name of the current file instead? [ { "command": "exec", "args": {"cmd": "P:\\decoder.exe P:\\in.txt"}, "caption": "DecodeJ" }, ] 回答1: Generally speaking there's no way to execute a command and provide to it the name of the currently active file without using some sort of plugin code to