okbob / pspg

Unix pager (with very rich functionality) designed for work with tables. Designed for PostgreSQL, but MySQL is supported too. Works well with pgcli too. Can be used as CSV or TSV viewer too. It supports searching, selecting rows, columns, or block and export selected area to clipboard.
BSD 2-Clause "Simplified" License
2.48k stars 86 forks source link

quicker horizontal scrolling #202

Closed ds2606 closed 2 years ago

ds2606 commented 2 years ago

Right now, my options for horizontal scrolling seem to be l/h or ^/$ for a character or line-end, respectively. (alt-mouse-scrolling does not seem to jive with iterm/tmux, plus hey keybindings > mouse?). On narrow-width windows or terminal panes, this can be slow to navigate to the middle of a long line.

With normal readline emacs-style bindings, alt-b/alt-f work to jump one word to the right/left as a fast way for lateral navigation. Maybe we could add similar keybindings to jump forward/back a word?

EDIT: this would super sensibly be jumping to next/previous column. If there are bindings for up/down a row, why none for forward/back a column? Seems like it could be super handy?

ds2606 commented 2 years ago

I think I was just viewing a non-formatted filetype and didn't realize left/right nav by column is already the norm