by castles_made_of_sand on Tue Apr 09, 2013 6:34 am
By `repr` I mean representation. In the sublime-keymap files, you will find json structures, where a given key short cut is described using a `keys` entry.
In the following binding ` {"keys": ["ctrl+alt+shift+t"], "command" : "insert_date"} ` the `keys` value is a list containing a `repr` of one key combination. (The reason for a list? It may be a an emacs style binding `ctrl+x, ctrl+s`)
The EditPreferences package has commands for listing all the bindings, aggregated from all sublime-keymap files in a quick panel. Upon selection of an item, you are taken to the location in the corresponding file so you can edit it.
When this panel is shown, a special key is bound so that it escapes the subsequent keypress, such that in lieu of running the normal binding, it will insert a `repr` (representation) of the keys pressed into the quick panel. This saves you the tedium of typing in `c` `t` `r` `l` `+` ... ( I can't even be bothered finishing ... )
The QuickPanel normalises all the keys shown such that `shift+ctrl+d` will show in the panel as `ctrl+shift+d`
It is better to remain silent and be thought a fool, than to speak out and remove all doubt