I’m trying to use the --command flag to subl with funced in fish. The funced command creates a tempfile with no set extension (usually something like XRCuEau3), so Sublime doesn’t automatically set the syntax coloring.
Here’s the subl command that should be working (as an editor for funced):
subl -w --command 'set_file_type {"syntax": "Packages/fish-shell/fish.tmLanguage"}'
The command sets the coloring of the front window if I just run it like
subl --command 'set_file_type {"syntax": "Packages/fish-shell/fish.tmLanguage"}'
with no other arguments, so technically I should be able to write a script that makes a thread to open the file and a thread that waits a second and runs that. I can’t think of any other way without losing the -w flag. Is there something easier?