astrale-sharp / typstfmt

Apache License 2.0
253 stars 25 forks source link

Running typstfmt on the current buffer in Sublime Text #94

Closed ondohotola closed 1 year ago

ondohotola commented 1 year ago

Would it be possible to make it run from within Sublime Text (on the Mac) on the current buffer, tied to a key combination?

astrale-sharp commented 1 year ago

probably quite easily since typstfmt is also a binary!

Is the current buffer a file? If so, you're tied command needs to run typstfmt your_buffer_file

astrale-sharp commented 1 year ago

It can also accept stdin and write to stdout so I'm sure something is possible

astrale-sharp commented 1 year ago

Closing this for now, if you have other question you may reopen it!