markbt / streampager

A pager for command output or large files
MIT License
45 stars 11 forks source link

Add "d" and "u" less bindings for down and up #29

Closed krallin closed 4 years ago

krallin commented 4 years ago

In less: http://man7.org/linux/man-pages/man1/less.1.html

d or ^D
      Scroll forward N lines, default one half of the screen size.
      If N is specified, it becomes the new default for subsequent d
      and u commands.

u or ^U
      Scroll backward N lines, default one half of the screen size.
      If N is specified, it becomes the new default for subsequent d
      and u commands.

It looks like we have the CTRL variants, but not the plainer ones. This adds them.

Shall we add those here too? :)

quark-zju commented 4 years ago

Maybe also add f and Ctrl+L (refresh)?

xavierd commented 4 years ago

Hey Thomas, I'd imagine you will want to also modify the help.txt, so pressing 'h' would shows these new keybindings :)

markbt commented 4 years ago

Current work-in-progress is customizable key maps. Once that's in place we can make the default map close to the less one.  null

markbt commented 4 years ago

I've merged #31 which adds these keybindings as part of the new default keymap.