jonas / tig

Text-mode interface for git
https://jonas.github.io/tig/
GNU General Public License v2.0
12.49k stars 611 forks source link

Vim-like scrolling relative to cursor (zz) #1267

Open ovk opened 1 year ago

ovk commented 1 year ago

In Vim there's a set of commands for scrolling contents of a window relative to cursor. Arguably, the most widely used one is zz, which scrolls the contents of the window such that the current line (line with the cursor) is centered in the window.

Is it possible to have similar behavior in Tig? I checked the manual for tigrc and contrib/vim.tigrc file but could figure out a way to do this.

On somewhat related note, it would also be nice to have H/M/L motions for quickly moving cursor around the window.