Home Download Buy Blog Forum Support

Pin parent to top of viewport

Pin parent to top of viewport

Postby swrobel on Fri Apr 05, 2013 7:02 am

Is there a plugin or perhaps some sublime setting that I don't know about that pins the parent element/method definition/whatever to the top of the viewport? It would be really helpful to give context for where you are in the middle of long methods or html blocks.

Let's say in the example below my cursor is on "this is the last of it" and my viewport isn't that large vertically, so <div> is off the screen. Is there some way to pin that to the top? Ideally this would be dynamic so whatever the parent is of what I'm viewing is always pinned to the top.

Code: Select all
<div>
  <p>some text</p>
  <p>some text</p>
  <p>some text</p>
  <p>some text</p>
  <p>some text</p>
  <p>some text</p>
  <p>some text</p>
  <p>some text</p>
  <p>some text</p>
  <p>some text</p>
  <p>this is the last of it</p>
</div>
swrobel
 
Posts: 16
Joined: Wed Feb 01, 2012 8:02 pm

Re: Pin parent to top of viewport

Postby swrobel on Wed Apr 10, 2013 7:19 am

Anyone feel me on this? Hoping there's some plugin out there that I haven't come across yet...
swrobel
 
Posts: 16
Joined: Wed Feb 01, 2012 8:02 pm

Re: Pin parent to top of viewport

Postby skuroda on Wed Apr 10, 2013 11:51 pm

I'm guessing there are other people that may like this, but I don't know. You can't pin anything (well we don't have tool tips/pop up text/whatever you want to call it) in general. The closest you could get is printing the parent element in the status bar. I thought I had a seen a plugin like that somewhere, but I can't recall what it was called (or perhaps I just imagined it. Maybe someone else will know.
skuroda
 
Posts: 677
Joined: Fri Oct 05, 2012 8:11 am


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 32 guests