Sublime Forum

Route interpolated code in snippets to command

#1

ST ignores interpolated code in snippets:

<a href="`$PWD`.html">$TM_SELECTED_TEXT</a>

I’d like to have an option called something like interpolatedCodeCommand that would pass the code to a command, read its output (command.read()) and merge the text with the snippet. If interpolatedCodeCommand equals None (default), the code will still be ignored.

Could this be done?

0 Likes