So, I want modify default behavior, when Ctrl+A is pressed.
When there is single word selected, Ctrl+A must select all the same words. I made context-driven key binding in my Packages\User\Default.sublime-keymap:
{ "keys": ["ctrl+a"], "command": "find_all_under" , "context": [ { "key": "num_selections", "operator": "equal", "operand": 1 }, ] }
It’s works fine: when the single word is selected: first keypress [ctrl+a] make all the same words selected. After that, second keypress [ctrl+a] make whole text selected, because num_selections isn’t equals 1 anymore, and (as I think), there is default key binding works.
BUT, when nothing is selected default [ctrl+a] not working, and I don’t understand why…