Sublime Forum

ST 4213 open_terminal command

#1

Hello,

I noticed that Build 4213’s changelog contained this line:

Added open_terminal command for opening external terminal emulators

I’ve used the Terminus package in the past to open terminals in Sublime Text. Is the open_terminal command supposed to do something similar? I’ve tried adding a key binding for it like this:

{ "keys": ["ctrl+alt+y"], "command": "open_terminal" }

It does not seem to work on Debian 13. Can’t see any errors in the console either. Do I need to add some args for the command or have I misunderstood what it does?

0 Likes

#2

The command expects a "dir" argument.

{ "keys": ["ctrl+alt+y"], "command": "open_terminal", "args": {"dir": "$file_path"} }
0 Likes

#3

That worked, thanks!

How did you find that out? Is there a way to list what arguments a command accepts or did you just guess it?

0 Likes

#4

Was closely following discussions about new features during dev cycle and immediately created my own entries in Command Palette and key bindings.

Other than that, PackageDev or CommandBrowser normally provide some help. This specific command has not yet been added to their meta data though.

0 Likes