I would like to open files to edit from the sublime text 3 console (which appears on ctrl+`)
I have tried
open [filename]
but it always gives syntax error on the last character of filename. I have tried enclosing name in quotes.
Also, I would like to know if I can execute shell commands directly from it's console
That's the command:
sublime.active_window().open_file("filename.txt")
It's a bit ugly, but probably could be scripted/automated somehow (to have a shortcut for instance).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With