Home Download Buy Blog Forum Support



Postby dskinner on Sat Nov 17, 2012 4:39 am

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.

Posts: 9
Joined: Sat Nov 17, 2012 4:34 am

Re: --command

Postby quarnster on Sat Nov 17, 2012 6:54 am

Code: Select all
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.
Posts: 389
Joined: Tue Nov 29, 2011 11:34 am

Return to General Discussion

Who is online

Users browsing this forum: Orlmente, Silberling, Yahoo [Bot] and 29 guests