ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Keybinding​Helper

by r-stein ST2/ST3

A Sublime Text package to simplify the creation and look-up of key-bindings

Details

  • 3 2.1.1
    2 1.0.1
    1.0.0
  • github.​com
  • github.​com
  • 1 year ago
  • 1 hour ago
  • 2 years ago

Installs

  • Total 2K
  • Win 1K
  • OS X 401
  • Linux 326
Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6 Apr 5 Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13 Mar 12 Mar 11 Mar 10 Mar 9 Mar 8 Mar 7 Mar 6
Windows 0 0 4 0 2 0 1 1 1 0 1 0 2 3 2 1 0 0 1 0 3 3 6 1 3 5 4 3 0 3 2 1 1 0 2 0 0 4 0 1 3 3 2 0 1 1
OS X 0 2 0 0 0 0 1 0 0 2 1 1 1 1 0 0 1 1 0 0 1 0 0 1 1 0 0 3 1 0 2 0 1 0 0 0 0 0 0 1 0 0 0 1 0 1
Linux 0 0 0 0 0 1 0 0 0 1 0 1 0 0 0 0 1 1 0 1 0 1 0 1 1 0 2 0 1 3 1 2 0 0 0 1 4 0 1 0 0 3 0 0 0 1

Readme

Source
raw.​githubusercontent.​com

Keybinding Helper

A plugin with the purpose to show keybindings and simplify the creation of new keybindings.

New in version 2.1.0:

  • support of the Suricate package
  • support of pasting into python run_command calls

Command Assistant (ST3 only)

The command assistant shows the executed commands in an output panel and adds a [COPY]-button to copy the command. Afterwards it can be pasted into a keymap via Paste keybindings to create a keybinding. Press alt+` or ctrl+shift+p and write KeybindingHelper: Show Command Assistant to show the Command Assistant. If you click on [COPY] it will copy the command in your clipboard. Afterwards you can paste it via ctrl+v into a keymap to create a keybinding. Use the [CLOSE]-button or press escape to close the panel.

kh_command_assistant

Show used keybindings

Use ctrl+alt+` (KeybindingHelper: Toggle show commands) to show the used commands (keybindings) and ctrl+alt+shift+` (KeybindingHelper: Toggle show inputs) to show the keys (key events). This will just open the console and call sublime.log_commands or sublime.log_input. Copy a line from the console (Hint: Click on the line above) and paste it into a keymap to create a keybinding.

kbh_example_show_key

Paste keybindings

Because the keybinding is bound to a scope, it requires the PackageDev package to be installed.

Select and copy a command from the console and paste it into a keymap. E.g. you could select command: paste_keybinding and paste it into a keymap. This will create a snippet, which transforms it into a valid keybinding and will insert the following:

{
    "keys": ["ctrl+alt+shift+a"],
    "command": "paste_keybinding",|
},

This does also work if you write a TextCommand plugin and copy the name, e.g. PasteKeybindingCommand. If it ends with Command it will automatically converted into a keybinding.

kbh_paste_command

This does also work in profile files of the Suricate package or paste inside a python run_command call.