I’m adding regions using:
view.add_regions(key, [new_region], "comment", "", sublime.PERSISTENT)
and I was wondering if there is any way to remove all added regions in one fell swoop from the current view. I understand I can iterate over all keys and call ‘erase_regions’ but that would require me keeping the list of keys around somewhere, which is a challenge (with the current plugin I’m developing).
Thoughts?