Restore cursor position when using shift-enter to move between item and note

Currently if your cursor is in the middle of a note and you press shift-enter, the cursor moves to the end of the item. If you press shift-enter again, the cursor moves back to the note but it goes to the end of the note rather than the previous location. This can be frustrating losing your place when editing long notes.

I suggest keeping track of the cursor position in the most recently active item and the most recently active note. When pressing shift-enter to move between item and note, detect if you are moving into the most recently active item or the most recently active note. If so, restore the previous cursor position. If not, move the cursor to the end (same behaviour as now).

2 Likes