Can we get Image preview views to act like other views?
For instance, I can have 3 image preview tabs open, and when I call self.window.views(), I get an empty set. This really breaks some plugins. Image views don’t have to function like other views, they can return none or whatever for non-relevant methods, but can we please have them show up as normal views so plugins can handle them appropriately? And maybe give us an easy way to tell if a view is an image view and not a text view.
Currently, if I want to sort tabs or close tabs, or get the active view, sublime will pretend the image tabs don’t exist.
What is even more frustrating, is that the tab context menu actually sends a group and index to underlying window commands for the image view. So you can call a command from the tab context menu on an image view, and it will send the appropriate group and index, but when the plugin tries to call that index in the group, it will get a different view.
I understand that image views are not text views; all I am asking for is the very basics to be exposed so we can target an image view check and set its settings, read its file name etc. Just the basics. Obviously the content specific methods wouldn’t work or wouldn’t be included at all.