Module: ko/keybindings

An interface for the Komodo keybindings

Methods


require("ko/keybindings").getConfigs()

Get all available keybinding schemes

Returns:

An array of all available keybinding sets

Type
Array

require("ko/keybindings").getCurrentConfig()

Get the current key binding configuration

Returns:

name of the current keybinding configuration

Type
String

require("ko/keybindings").getKeybindFromCommand(commandName)

Retrieve string representation of keybind for command

Parameters:
Name Type Description
commandName string

eg. "cmd_theCommandName"

Returns:
Type
string

require("ko/keybindings").register(commandName, keybind [, force])

Add a new keybind

Parameters:
Name Type Argument Default Description
commandName string
keybind string | array

["Ctrl+U", "A"] | "Ctrl+C"

force bool <optional>
false

Whether to override any existing keybinds


require("ko/keybindings").unregister(commandName)

Remove a keybind

Todo: this should act on the keybind, not the command

Parameters:
Name Type Description
commandName string

require("ko/keybindings").usedBy(keybind)

Check what the given keybind is used by

Parameters:
Name Type Description
keybind string | array

["Ctrl+U", "A"] | "Ctrl+C"

Returns:
Type
array