How do I remap pg-up/pg-dn to be the same as 'f' and 'b' in man viewer?
All, When viewing a man page, pg-up/pg-dn scroll 1/2 screen while 'f' and 'b' scroll an entire screen. How do I remap the pg-up/pg-dn keys for man so they behave like 'f' and 'b'? -- David C. Rankin, J.D.,P.E.
Le 16/07/2024 à 14:37, David C. Rankin a écrit :
All,
When viewing a man page, pg-up/pg-dn scroll 1/2 screen while 'f' and 'b' scroll an entire screen. How do I remap the pg-up/pg-dn keys for man so they behave like 'f' and 'b'?
for "man"? space bar also scrolls an entire page jdd -- https://artdagio.fr
On 7/16/24 8:06 AM, jdd@dodin.org wrote:
Le 16/07/2024 à 14:37, David C. Rankin a écrit :
All,
When viewing a man page, pg-up/pg-dn scroll 1/2 screen while 'f' and 'b' scroll an entire screen. How do I remap the pg-up/pg-dn keys for man so they behave like 'f' and 'b'?
for "man"? space bar also scrolls an entire page
Yes, thank you, But what I was wondering is - where/how is the key remapping done for man? The reason I want to remap pg-up/pg-dn is depending on where my hands are on the keyboard, I sometimes just hit pg-up/pg-dn instead of 'f' or 'b'. And when I do, I want pg-up/pg-dn to behave life 'f' or 'b'. I'll dig further. Seems the binding are controlled by lesskey - which I'll have to digest. -- David C. Rankin, J.D.,P.E.
On 7/16/24 14:37, David C. Rankin wrote:
All,
When viewing a man page, pg-up/pg-dn scroll 1/2 screen while 'f' and 'b' scroll an entire screen. How do I remap the pg-up/pg-dn keys for man so they behave like 'f' and 'b'?
`man man` shows: -P pager, --pager=pager Specify which output pager to use. By default, man uses less, falling back to cat if less is not found or is not executable. This option overrides the $MANPAGER environment variable, which in turn overrides the $PAGER environment variable. So `man less` is your next step. Have a nice day, Berny
On 7/16/24 1:19 PM, Bernhard Voelker wrote:
`man man` shows:
-P pager, --pager=pager Specify which output pager to use. By default, man uses less, falling back to cat if less is not found or is not executable. This option overrides the $MANPAGER environment variable, which in turn overrides the $PAGER environment variable.
So `man less` is your next step.
Yep, found it, thank you. It was a matter of which RTFM to R. Should have caught the text in the "-P pager" paragraph identifying the M. -- David C. Rankin, J.D.,P.E.
participants (3)
-
Bernhard Voelker
-
David C. Rankin
-
jdd@dodin.org