by agibsonsw on Tue Dec 04, 2012 7:56 pm
It might be more fruitful to investigate the
move command with the argument
"extend":True:
- Code: Select all
self.view.run_command("move", {"by": "stops", "extend":False, "forward":False, "word_begin":True, "punct_begin":True, "separators": ""})
There may be a clue in this key-binding:
- Code: Select all
{ "keys": ["]"], "command": "move", "args": {"by": "characters", "forward": true}, "context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
{ "key": "following_text", "operator": "regex_contains", "operand": "^\\]", "match_all": true }
]
},
If you decide to create or extend a .py plug-in then you might side-step 'run_command' and manipulate sel() directly using the ST-API.
"I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.