Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible to get the minimap to display in the second window? #11

Open
reece-bennett opened this issue Mar 23, 2015 · 3 comments
Open

Possible to get the minimap to display in the second window? #11

reece-bennett opened this issue Mar 23, 2015 · 3 comments

Comments

@reece-bennett
Copy link

Would it be possible to display a second minimap when the window is being split into two? Like this:

Default
default

With an extra bar
extra bar

@zorgzerg
Copy link
Owner

Hi.
Yes, it is planned, but I do not think that soon. Very busy now

@reece-bennett reece-bennett changed the title Possible to get the minimap Possible to get the minimap to display in the second window? Mar 26, 2015
@floross
Copy link

floross commented Dec 3, 2015

+1

@Murazaki
Copy link
Contributor

Tried to make that work, unfortunately it seems that it implies a major revamp of the plugin, as well as changing the way it gets the views.

MinimapViewManager (which could actually be considered as the Minimap Object itself or its handler here) might have to be used as a class and not a singleton. Another solution was to handle Minimaps attributes as javascript objects in the MainViewManager, but this means you have to give the id of the pane/minimap you want to act upon on every MinimapViewManager's function.

Currently, you're using the EditorManager, but this one doesn't give you a list of the Editors, only the one currently opened (actually, this info isn't stored anywhere).

MainViewManager may give you the list of panes, but from there you might have to dig into the HTML code to get the rest of the content (you may get the list of documents in the specified pane with getCurrentlyViewedPath, but not the one currently opened, and you'll have to figure if it's a code document or not).

I broke the plugin several times to make this work, but I didn't find any simple solution for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants