I’d like to understand how toggle_bookmark & next_bookmark work but I don’t know where the code is living. I’ve tried to find it by using “Edit preferences: List plugin commands” plugin but unfortunately is not finding anything. There isn’t any bookmark.py
in Default.sublime-package
so maybe is not living here?
Anyway, thing is, I understand +/- how toggle_bookmark works, what I don’t understand is the logic when delete text that could contain some bookmarks… It seems the bookmarks will still live after you’ve deleted text that contains them. My question is, how are the new positions of the bookmarks computed after the text has changed (for instance, multiple selected blocks of text deleted).
Thanks.