walles / moar

Moar is a pager. It's designed to just do the right thing without any configuration.
Other
587 stars 17 forks source link

Support centering search results #132

Open araaha opened 1 year ago

araaha commented 1 year ago

In less, when using the -j (--jump-target) option, we can center search results by specifying a line on the screen where the "target" line is to be positioned. In this case, -j.5 leads to less jumping on search results in the middle of the screen. See image: 2023-03-31-17:47:33-screenshot whereas in moar, the jump target is always at the top. Ideally, a similar feature is implemented in moar, or at least allowing the jump target to be at the top, middle, or bottom of the screen.