Class Main
Defined in: | lib/main.coffee |
Overview
The Minimap
package provides an eagle-eye view of text buffers.
It also provides API for plugin packages that want to interact with the minimap and be available to the user through the minimap settings.
Plugins Interface
Plugins should conform to the following interface:
class Plugin
void activatePlugin: ->
void deactivatePlugin: ->
bool isActive: ->
Instance Method Summary
- ::activate() Activates the minimap package.
- ::deactivate() Deactivates the minimap package.
- ::generatePlugin() Opens the plugin generation view.
-
Minimap ::getActiveMinimap()
Returns the Minimap of the active
TextEditor
. -
Minimap ::minimapForEditor(textEditor)
Returns the Minimap object associated to the passed-in
TextEditor
. -
Minimap ::minimapForEditorElement(editorElement)
Returns the Minimap object associated to the passed-in
TextEditorElement
. -
::observeMinimaps(iterator)
Calls
iterator
for each present and future minimaps. -
::onDidActivate(callback)
Calls the
callback
when the minimap package have been activated. -
::onDidActivatePlugin(callback)
Calls the
callback
when a plugin have been activated. -
::onDidAddPlugin(callback)
Calls the
callback
when a plugin have been registered. -
::onDidCreateMinimap(callback)
Calls the
callback
when a minimap have been created. -
::onDidDeactivate(callback)
Calls the
callback
when the minimap package have been deactivated. -
::onDidDeactivatePlugin(callback)
Calls the
callback
when a plugin have been deactivated. -
::onDidRemovePlugin(callback)
Calls the
callback
when a plugin have been unregistered. - ::toggle() Toggles the minimap display.
- Boolean ::versionMatch(expectedVersion) Verifies that the passed-in version expression is satisfied by the current minimap version.
Instance Method Details
::activate() Source
Activates the minimap package.
::deactivate() Source
Deactivates the minimap package.
::generatePlugin() Source
Opens the plugin generation view.
Minimap ::minimapForEditor(textEditor) Source
Returns the Minimap object associated to the passed-in TextEditor
.
Minimap ::minimapForEditorElement(editorElement) Source
Returns the Minimap object associated to the passed-in TextEditorElement
.
::observeMinimaps(iterator) Source
Calls iterator
for each present and future minimaps. It returns a Disposable
to unsubscribe the iterator from being called for future views.
::onDidActivate(callback) Source
Calls the callback
when the minimap package have been activated.
::onDidActivatePlugin(callback) Source
Calls the callback
when a plugin have been activated.
::onDidAddPlugin(callback) Source
Calls the callback
when a plugin have been registered.
::onDidCreateMinimap(callback) Source
Calls the callback
when a minimap have been created.
::onDidDeactivate(callback) Source
Calls the callback
when the minimap package have been deactivated.
::onDidDeactivatePlugin(callback) Source
Calls the callback
when a plugin have been deactivated.
::onDidRemovePlugin(callback) Source
Calls the callback
when a plugin have been unregistered.
::toggle() Source
Toggles the minimap display.
Boolean ::versionMatch(expectedVersion) Source
Verifies that the passed-in version expression is satisfied by the current minimap version.