misfo / Shell-Turtlestein

Plugin for running arbitrary shell commands in Sublime Text
https://sublime.wbond.net/packages/Shell%20Turtlestein
MIT License
245 stars 35 forks source link

Interpret % as current filepath #25

Open autokludge opened 11 years ago

autokludge commented 11 years ago

Just wondering if you could implement interpreting % as the path and name of the current views file like vim (eg. /home/foo/bar/projects/baz.ext )?

misfo commented 11 years ago

This would be handy. The only problem is that it would make it impossible to use a % literal in command, even in quoted parts of the command (since we're not going to start "parsing" the shell command). So maybe a longer substitution would work better:

rm $st_filename

Maybe a few other variables could be substituted and they could possibly be tab-completed as well. What do you think?

ArmorDarks commented 11 years ago

thumbs up for that feature

fabiosantoscode commented 10 years ago

+1 here too. I came from vim to Sublime recently and I'm missing this. It's really practical. I don't mind typing longer things like $filename or $file_dir.