hjkl is a vim-like pager with keyboard-based text selection. You can use it as a "scrollback pager" to select text on your terminal's buffer without a mouse.
xclipif you're on X11 or
wl-clipboardif you're on Wayland.
$ sudo ./install.sh
See the manpage.
Using hjkl to select text on your terminal's buffer requires a terminal emulator that lets you pipe the buffer to an external command, or layering on top a terminal multiplexer with the ability.
You can use hjkl as your scrollback pager for the kitty terminal emulator with these lines in your kitty.conf:
scrollback_pager hjkl -o -e G map kitty_mod+k show_scrollback
hjkl is installed with an extension for the urxvt terminal emulator to use hjkl as a scrollback pager.
There's a script in this repo to use hjkl as a scrollback pager with st and the externalpipe patch.
I will tag release 0.1 after a little time has passed. Tabs are currently replaced with eight spaces, and I'd like support for manpage style markdown and maybe ansi colors before 1.0.
You can send questions, thoughts or patches by composing an email to ~firstname.lastname@example.org.
GPLv3 only, see LICENSE.
Copyright (c) 2022 John Gebbie