It would be nice if there was access in the API to determine if a given view is transient (preview). I have tried every way I can think of, but I cannot seem to pin down when a view is actually opened or if it is a preview.
I have a plugin in which I need to perform some action when the file is actually opened. on_load is triggered when the preview is shown and never again, so I cannot use that or it will trigger during “goto anything”. The attributes of the view in every way seen to look like a normal view as far as I can tell. The id (view and buffer) never changes during the transition from preview to opened file.
It would also kind of be nice if there was a method that dumped all of the view settings. Currently we only know a setting exists if it is documented; if there was a method that would just dump the internal settings to a dict, we could more quickly figure out undocumented stuff.