When there are a large number of bookmarks - toggle_bookmark does not work on some of the bookmarks. On others it does.
Steps to reproduce:
- Load a large file such as “Key Bindings - Default”
- In the console enter (this will result in many matches which is what we want):
RegionsResult = sublime.active_window().active_view().find_all("{", sublime.IGNORECASE | sublime.LITERAL) - In the console enter (this will add bookmarks to all the matches):
sublime.active_window().active_view().add_regions(“bookmarks”, RegionsResult, “bookmarks”, “bookmark”, sublime.HIDDEN | sublime.PERSISTENT) - Try to do “toggle_bookmark” on the lines with bookmarks - as you will see on some of them will work, on some of them will not.
However, if I do the same thing with a smaller file in which it doesn’t have that many results, it works fine. So it seems to be a problem when there are a large number of bookmarks set - then “toggle_bookmark” stops working on some of the lines.