Some APIs I need to provide better plugins.
**sublime_plugin.EventListener.on_reload
**This will allow me to restore scroll and other view properties such bookmarks, selections, folds, etc for views that are reloaded.
**sublime_plugin.EventListener.on_application_close
**This will allow to flush to disk some data collected in a session when sublime is closed. There is no need to flush to disk everytime a view lose focus or change of properties. I just need to flush when the application is closed.
**sublime_plugin.EventListener.on_viewport_change and sublime_plugin.EventListener.on_viewport_extent_change
**This will allow to do some magic scroll between cloned views when you just scroll one of these.
**sublime.View.has_clones
**This will allow to apply (if appropriated) some magic to cloned views. Without this we need to iterate every window and foreach window every view to see if there is some clone for a view. This should return true even if the cloned view is located in other window.
**sublime.View.clones
**This should return the clones of a view.
**sublime.View.get_history
**This should return a history object of the view. This is useful for when a file is renamed, we currently lose undo when renaming.
**sublime.View.set_history
**This should allow to set history object of the view.
**sublime_plugin.on_project_close
**I hope you can add this, and dispatch the event before the project is closed, then we will be able to save some data related to the view that is going to be closed. Or just send on_close for each view when we switch to another project.
**sublime.View.file.settings
**This should return a persistent settings object on which the id is the file_name. This will allow to save settings based on file names instead of views. Also, this setting should be persistent between sessions.
**sublime.Window.project.settings
**This should return a persistent settings object on which the data is saved at the project file. This will allow to have settings for projects.
_
Also, If you wish please fix the API set_viewport_position which is currently broken for xml/html files. Details in: Please fixme: A reproducible bug in set_viewport_position