Sublime Forum

SFTP WBond plugin - shortcut

#1

I don’t know if it’s the right place to post but I installed this SFTP plugin and everything is working well.

I just want to know if there is a way to bind a shortcut that open the “switch remote panel”, couldn’t find it.

Thanks.

0 Likes

#2

See this post.

1 Like

#3

I’m talking about a specific plugin that needs a specific shortcut for a specific command “switch remote panel” which is available with a mouse only :slightly_smiling:

0 Likes

#4

The content of my post still applies. Everything a plugin adds has to be done using a command, and I described a way of discovering which command is called on a certain action.

(Well, there are also event hooks, but you’re not talking about that it seems.)

1 Like

#5

Well, indeed I found something !
I now use this in my keybinding conf :
{ "keys": ["ctrl+alt+c"], "command": "sftp_switch_config", "args" : {"paths": ["C:\\wamp\\www\\my_project"]} }

I just need a way to link to my current project folder dynamically and it’s all good.

Thank you !

0 Likes

#6

$project should get you that value I believe.

Other available variables http://docs.sublimetext.info/en/latest/reference/build_systems/configuration.html#build-system-variables

0 Likes

#7

These variables are only available in build systems, not in key bindings.

You’ll probably have to wrap it in a plugin.

0 Likes

#8

Aw. That’s bad news. Might be a way to learn Python I guess.

0 Likes