Page 1 of 1

How to scroll specific item into view?

Posted: 28 Apr 2015 05:42
by binocular222
Both sel and #1049 has drawback: if target item is already in vew and in the middle of screen, these command scroll to make it top/bottom-of screen.

I'm thinking of how to get list of items in view so that I can stop these commands if target item is already in view.
Is this possible?

Re: How to scroll specific item into view?

Posted: 28 Apr 2015 11:20
by admin
sel seems to work as you desire.

Re: How to scroll specific item into view?

Posted: 28 Apr 2015 11:44
by binocular222
It doesn't make sense when target item is already in view (i.e: nicely in the middle of screen) but sel and #1049 force it to be scrolled to top-of-screen

Re: How to scroll specific item into view?

Posted: 28 Apr 2015 12:04
by admin
No, sel works, I tested it with fresh.

Code: Select all

sel "[filename]";

Re: How to scroll specific item into view?

Posted: 28 Apr 2015 15:34
by binocular222
Oh, found it. That's because I had #486 before sel