Sublime Text QuickRef
10-May-2025 16:15: V.Wheeler — Created
Note
This project is under active development.
Contents:
- 1. Introduction
- 2. Editing
- 3. Markers and Bookmarks
- 4. Projects
- 5. Commands
- 6. Command List
- 7. Scope, Selectors and Context
- 8. Key Bindings
- 9. Default Key Bindings
- 10. Menus
- 11. Completions
- 12. Snippets
- 13. Build Systems
- 14. Plugins
- 15. Packages
- 16. Input Handlers
- 17. Event Listeners
- 18. Event list
- 18.1. EventListener
EventListener.on_init()EventListener.on_exit()EventListener.on_new()EventListener.on_new_async()EventListener.on_associate_buffer()EventListener.on_associate_buffer_async()EventListener.on_clone()EventListener.on_clone_async()EventListener.on_load()EventListener.on_load_async()EventListener.on_reload()EventListener.on_reload_async()EventListener.on_revert()EventListener.on_revert_async()EventListener.on_pre_move()EventListener.on_post_move()EventListener.on_post_move_async()EventListener.on_pre_close()EventListener.on_close()EventListener.on_pre_save()EventListener.on_pre_save_async()EventListener.on_post_save()EventListener.on_post_save_async()EventListener.on_modified()EventListener.on_modified_async()EventListener.on_selection_modified()EventListener.on_selection_modified_async()EventListener.on_activated()EventListener.on_activated_async()EventListener.on_deactivated()EventListener.on_deactivated_async()EventListener.on_hover()EventListener.on_query_context()EventListener.on_query_completions()EventListener.on_text_command()EventListener.on_window_command()EventListener.on_post_text_command()EventListener.on_post_window_command()EventListener.on_new_window()EventListener.on_new_window_async()EventListener.on_pre_close_window()EventListener.on_new_project()EventListener.on_new_project_async()EventListener.on_load_project()EventListener.on_load_project_async()EventListener.on_pre_save_project()EventListener.on_post_save_project()EventListener.on_post_save_project_async()EventListener.on_pre_close_project()
- 18.2. ViewEventListener
ViewEventListener.on_load()ViewEventListener.on_load_async()ViewEventListener.on_reload()ViewEventListener.on_reload_async()ViewEventListener.on_revert()ViewEventListener.on_revert_async()ViewEventListener.on_pre_move()ViewEventListener.on_post_move()ViewEventListener.on_post_move_async()ViewEventListener.on_pre_close()ViewEventListener.on_close()ViewEventListener.on_pre_save()ViewEventListener.on_pre_save_async()ViewEventListener.on_post_save()ViewEventListener.on_post_save_async()ViewEventListener.on_modified()ViewEventListener.on_modified_async()ViewEventListener.on_selection_modified()ViewEventListener.on_selection_modified_async()ViewEventListener.on_activated()ViewEventListener.on_activated_async()ViewEventListener.on_deactivated()ViewEventListener.on_deactivated_async()ViewEventListener.on_hover()ViewEventListener.on_query_context()ViewEventListener.on_query_completions()ViewEventListener.on_text_command()ViewEventListener.on_post_text_command()
- 18.3. TextChangeListener
- 18.1. EventListener
- 19. Dialog Boxes and User Messaging
- 20. Clipboard Utilities Available to Plugins
- 21. View Settings List Example
- 22. Paths
- 23. Glossary
- 24. Notes
Indices and Tables
TODOs
Todo
Keyboard Editing
(The original entry is located in E:\Vics Documents\References\Sublime_Text\quickref\src\editing.rst, line 254.)
Todo
write Macros section
(The original entry is located in E:\Vics Documents\References\Sublime_Text\quickref\src\editing.rst, line 638.)
Todo
Mouse Features details.
(The original entry is located in E:\Vics Documents\References\Sublime_Text\quickref\src\editing.rst, line 663.)
Todo
fill in
(The original entry is located in E:\Vics Documents\References\Sublime_Text\quickref\src\markers_and_bookmarks.rst, line 18.)
Todo
fill in
(The original entry is located in E:\Vics Documents\References\Sublime_Text\quickref\src\markers_and_bookmarks.rst, line 25.)
Todo
Viewport, and its relationship to these View functions:
- viewport_position(self) -> Vector:
“”” :returns: The offset of the viewport in layout coordinates. “””
- set_viewport_position(self, xy: Vector, animate=True):
“”” Scrolls the viewport to the given layout position. “””
- viewport_extent(self) -> Vector:
“”” :returns: The width and height of the viewport. “””
- layout_extent(self) -> Vector:
“”” :returns: The width and height of the layout. “””
- text_to_layout(self, tp: Point) -> Vector:
“”” Convert a text point to a layout position. “””
- text_to_window(self, tp: Point) -> Vector:
“”” Convert a text point to a window position. “””
- layout_to_text(self, xy: Vector) -> Point:
“”” Convert a layout position to a text point. “””
- layout_to_window(self, xy: Vector) -> Vector:
“”” Convert a layout position to a window position. “””
- window_to_layout(self, xy: Vector) -> Vector:
“”” Convert a window position to a layout position. “””
- window_to_text(self, xy: Vector) -> Point:
“”” Convert a window position to a text point. “””
- line_height(self) -> DIP:
“”” :returns: The light height used in the layout. “””
(The original entry is located in E:\Vics Documents\References\Sublime_Text\quickref\src\introduction.rst, line 461.)