From 8970216cb046360d3cfa54aabcb1608964a667da Mon Sep 17 00:00:00 2001 From: abe33 Date: Sat, 15 Aug 2015 16:25:31 +0200 Subject: [PATCH] Add `standAloneMinimapForEditor` in API --- lib/main.coffee | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/main.coffee b/lib/main.coffee index 2f67db85..9687b55a 100644 --- a/lib/main.coffee +++ b/lib/main.coffee @@ -253,6 +253,15 @@ class Main minimap + standAloneMinimapForEditor: (textEditor) -> + return unless textEditor? + + Minimap ?= require './minimap' + new Minimap({ + textEditor: atom.workspace.getActiveTextEditor() + standAlone: true + }) + # Returns the {Minimap} of the active `TextEditor`. # # Returns a {Minimap}.