ice9js / ace-jump-sublime

Jump between characters in Sublime Text 3 without using a mouse at ease
MIT License
202 stars 31 forks source link

Labels not removed in any mode if text is edited before jumping the cursor #69

Open rohantalesara opened 7 years ago

rohantalesara commented 7 years ago

In any mode, if before choosing a label to jump to, the text content is edited, and then the jump is made, the labels don't get removed even after the jump has finished. If the file is now saved, the labels get saved instead of the actual text content. The following are screen shots detailing the same:

ace-1

ace-2

The labels remain even after the jump has finished: ace-3

After saving the file: ace-4

RohanBS commented 7 years ago

Pressing (Ctrl+Z) before saving removes the labels. However , if the file is saved without doing so , the labels do gets saved instead of the actual text content.

ice9js commented 7 years ago

Yes. Unfortunately the way it works is that AceJump is actually editing the files to add the labels, and then undoing that change once you make the jump. If you make any change in between - it will undo that instead of removing the labels.
Do you think setting the buffers to read-only while the labels are shown would be a sufficient solution ?