Is there a hidden preference, modifier key, or some other way to make “Jump to Selection” put the current line at the top of the window instead of in the center?
Actually, one or two lines of context above the current line would be even better. Like what `less -j4 file.txt` would do.
Thanks.
How about using a macro that did, e.g. "Jump to Selection" + ("Scroll/Line Down" x 10)?
On Fri, 8 Feb 2019 at 00:21 Rob McBroom mailinglist0@skurfer.com wrote:
Is there a hidden preference, modifier key, or some other way to make “Jump to Selection” put the current line at the top of the window instead of in the center?
Actually, one or two lines of context above the current line would be even better. Like what less -j4 file.txt would do.
Thanks.
-- Rob McBroom
textmate mailing list textmate@lists.macromates.com https://lists.macromates.com/listinfo/textmate
On 8 Feb 2019, at 6:29, George McGinley Smith wrote:
How about using a macro that did, e.g. "Jump to Selection" + ("Scroll/Line Down" x 10)?
I thought about that, but the number of lines to scroll (from the center of the window to the top) won’t always be the same. Thanks, though.
On 7 Feb 2019, at 21:21, Rob McBroom wrote:
Is there a hidden preference, modifier key, or some other way to make “Jump to Selection” put the current line at the top of the window instead of in the center?
No such hidden settings, you could make a macro that triggers the Jump to Selection and then Navigate → Scroll → Line Down 10+ times, although such macro would depend on window size and also, these actions are not recorded by default, so you would have to edit the macro manually.
The two selectors to use in the macro are `centerSelectionInVisibleArea:` and `scrollLineDown:`. Let me know if you need step-by-step.