erinata/FingerText — Issue #25: change "default hotspot" cursor location to AFTER the inserted snippet
Author: Interessierter
Created: 2012-03-06 08:48:59+00:00
State: open

what the subject says. If I currently create a new snippet and don't put a hotspot marker in it, the cursor position will be before the inserted snippet, not after it as one would assume.

Example (using the provided default snippets): I am editing an HTML file and want to insert a line break. (| should be the cursor position)

br|
now, it is correctly replaced, but the cursor moves to the beginning, not the end:
|

I have to move to the end again to continue writing. I think in the majority of cases it is expected that the cursor stays where it was before the snippet replacement happened, and that is, naturally, at the end.
If you don't agree, it would be at least nice to make this configurable, I find this a little annoying.

P.S. of course I know I can change the behaviour of this by inserting an empty hotspot in the snippets definition, but this is not the point, i don't want to do this for every snippet, I think the normal way should be natural (cursor position stays at the end)