Sublime Forum

--command

#1

maybe this was too general for a forum search but I’m curious about the --command feature in sublime. I tried a few things (on debian) like

$ ./sublime_text --command="ctrl+shift+p" # open control pallete
$ ./sublime_text --command="new" # open a new buffer

and other items, but nothing seems to do anything. The docs don’t seem to go over this particular tidbid either.

What I was interested in doing is launching the control pallete via a keyboard shortcut outside of sublime in a currently running instance or start a new instance and open pallete when something is passed into the --command argument executed.

Even if I can’t do that, I’d like to know what the possibilities are.

Thanks,
Daniel

0 Likes

#2

subl --command "show_overlay {\"overlay\": \"command_palette\"}" subl --command "new_file"

Enter sublime.log_commands(True) in the python console and you can see what command is run when you press a key combination or use a menu item.

0 Likes