Home Download Buy Blog Forum Support

ShortcutPlus (allow more shortcuts)

ShortcutPlus (allow more shortcuts)

Postby facelessuser on Wed Nov 07, 2012 5:58 am

Do you have a lot of plugins with shortcuts, but not enough open shortcuts?

Shortcut Plus allows you to reuse key bindings by associating them with profiles.

Gist is here https://gist.github.com/4029726

Example:
Two shortcuts to toggle profiles MyProfile1 and MyProfile2.

Also, two shortcuts using the currently bound "escape" key and binding the shortcut to two additional commands under the previously mentioned profiles. (Just simple command for testing purposes).
    // Shortcut Plus Toggle
{
"keys": ["alt+`"],
"command": "toggle_shortcut_plus",
"args": {"profile": "MyProfile1"}
},
// Shortcut Plus Toggle
{
"keys": ["ctrl+alt+`"],
"command": "toggle_shortcut_plus",
"args": {"profile": "MyProfile2"}
},

// Shortcut Plus Test
{
"keys": ["escape"],
"command": "shortcut_plus_test",
"context":
[
{"key": "shortcut_plus(profile):MyProfile1"},
{"key": "selection_empty", "operator": "equal", "operand": true, "match_all": true}
],
"args": {
"msg": "All selection are empty!"
}
},
// Shortcut Plus Test
{
"keys": ["escape"],
"command": "shortcut_plus_test",
"context":
[
{"key": "shortcut_plus(profile):MyProfile2"},
{"key": "selection_empty", "operator": "equal", "operand": false, "match_all": true}
],
"args": {
"msg": "All selections are not empty!"
}
}



Something I coded up to resolve my own personal shortcut issues. Just something I am trying out to see how useful it might be. If you try it, let me know what you think.
facelessuser
 
Posts: 1576
Joined: Tue Apr 05, 2011 7:38 pm

Return to Plugin Announcements

Who is online

Users browsing this forum: Google [Bot] and 13 guests