GaurangTandon / ProKeys

free Chrome/Opera extension; makes you productive in online text-related work
Other
101 stars 31 forks source link

Cursor manipulation macros #178

Open GaurangTandon opened 7 years ago

GaurangTandon commented 7 years ago

Having studied the cursor position macros of PhraseExpress, TextExpander and Autohotkey, I think the following would be the most robust cursor positioning macro system (consistent with other macros we already have).

We've to support text block selection, absolute cursor positioning, cursor movement wrt end of snippet

Note: the current default behavior is to place the caret at the end of/highlighting the first placeholder the snippet. In case of implementing these macros, the caret can be placed at the macro after all placeholders have been executed.

Warning: more than one such a macro shouldn't be used in a single snippet, because the caret can only be placed on the first one of them.

Syntax:

GaurangTandon commented 6 years ago

Postponing caret movements for milestone 3.5.0