I have a proposition for feature i often used in Intellij and Eclipse called in Eclipse: "select enclosing element".
For example in code below:
if you put cursor mark in the center of the word "positions_" and activate shortcut, editor will select one word:
After subsequent calls to the same shortcut it's selecting bigger and bigger fragments of code:
after that it selects whole function block, whole function, whole namespace and finally whole file.
This can save user from a lot of troublesome arrow manipulations.
That is certainly not trivial to get it right for every type of expressions, but maybe with some clang help it would be doable? I think it's a neat feature that might be worth a trouble.
Hey. Great project!
I have a proposition for feature i often used in Intellij and Eclipse called in Eclipse: "select enclosing element". For example in code below:
if you put cursor mark in the center of the word "positions_" and activate shortcut, editor will select one word: After subsequent calls to the same shortcut it's selecting bigger and bigger fragments of code: after that it selects whole function block, whole function, whole namespace and finally whole file.
This can save user from a lot of troublesome arrow manipulations.
That is certainly not trivial to get it right for every type of expressions, but maybe with some clang help it would be doable? I think it's a neat feature that might be worth a trouble.