"GOT", but the "O" is a cute, smiling pufferfish. Index | Thread | Search

From:
Christian Weisgerber <naddy@mips.inka.de>
Subject:
Re: u/ctrl-u/d/ctrl-d bindings for scrolling in tog
To:
gameoftrees@openbsd.org
Cc:
Mikhail <mp39590@gmail.com>
Date:
Sun, 12 Jun 2022 15:40:41 +0200

Download raw body.

Thread
Stefan Sperling:

> In my opinion it would make sense to match less(1) behaviour and implement
> half-page scroll for ^D and ^U. Or only offer the full-page scroll bindings
> used by less(1), i.e. delete our ^D and ^U keybindings again.

The fundamental difference is that with a numeric prefix ^F/^B
scroll by screens, and ^D/^U scroll by lines.  It's only if there
is no numeric prefix that ^D/^U default to scrolling by half a
screen.  tog(1) does not support numeric prefixes.

I also think it's questionable to use 'd' and 'u' as synonyms for
^D and ^U.  This is limited to less(1) and not present in vi(1),
and we may want to reserve these keys for future functionality.

Personally, I have no use for ^D/^U.  I'm not opposed to adding it
with "scroll half-screen" semantics, though.

-- 
Christian "naddy" Weisgerber                          naddy@mips.inka.de