hi all, I’m new in the sublime text,
I would like to create a keymap, which will move forward to the beginning of word in the next line, when i press Ctrl+Shift+Right in the End of Line.
The current state of the sublime text is, when I press Ctrl+Shift+Right in the end of line, it will move to the beginning of line in the next line, and I should press Ctrl+Shift+Right again to move to the beginning of word, and this behavior doesn’t seem efficient enough for me.
here is my code:
[code] { “keys”: “ctrl+shift+right”], “command”: “move”, “args”: {“by”: “subwords”, “forward”: true, “extend”: true},
“context”:
{ "key": "following_text", "operator": "regex_contains", "operand": "\n", "match_all":true }
]
},[/code]
I had read the documentation about context sublimetext.com/docs/contexts but had a hard time because there are no examples. I’ve tried with other character other than the newline character, and sublime seems can handle it correctly. so, any ideas?
thanks in advance