Home Download Buy Blog Forum Support

Creating an overlay, similar to minimap

Creating an overlay, similar to minimap

Postby dubs on Wed Jul 18, 2012 3:02 am

I am fairly new to ST2 and python, but I have an interest in creating a plugin. I have begun to make my way through the API but I'm having some troubles with the nomenclature. It seems that a 'view' is a buffer, but does that view contain other views?

Actually it might help to just describe what I am trying to do: I want to create another 'overlay' similar to the minimap on the right (the object that shows the current position in the file). Ideally my 'overlay' would sit on top of that minimap and would give me some information about the file I am working in and I would be able to hide/show the element just like the minimap works right now. Do these API's exist? Is what I am trying to do possible?

Looking at the API at http://www.sublimetext.com/docs/api-reference and other resources on the web have been useful for plugin's which manipulate text in a view, but this is different. I will admit that I am a little out of my element on this, but this is a great tool and I want to improve it.

Thanks for any starting resources / help / comments /etc.
dubs
 
Posts: 1
Joined: Wed Jul 18, 2012 2:31 am

Re: Creating an overlay, similar to minimap

Postby adzenith on Wed Jul 18, 2012 5:14 pm

A view shows you the contents of a buffer.

What you want to do is not currently possible with Sublime Text's API, as far as I know.
adzenith
 
Posts: 1217
Joined: Mon Oct 19, 2009 9:12 pm

Re: Creating an overlay, similar to minimap

Postby C0D312 on Wed Jul 18, 2012 6:19 pm

Your best bet is probably an output panel.
C0D312
 
Posts: 1063
Joined: Sun Jul 10, 2011 3:23 am


Return to Plugin Development

Who is online

Users browsing this forum: Exabot [Bot] and 4 guests