DEV Community

Noboru Saito
Noboru Saito

Posted on

terminal pager ov

ov is a terminal pager, like less and more.
It's modern and feature-rich.

GitHub logo noborus / ov

Feature rich terminal pager

OV - Oviewer

Actions Status Go Report Card

ov is a feature rich terminal pager.

(The old repository name was oviewer.)

ov.png

feature

  • Better support for unicode and wide width.
  • Support for compressed files (gzip, bzip2, zstd, lz4, xz).
  • Supports column mode.
  • Header rows can be fixed.
  • Dynamic wrap / nowrap switchable.
  • Background color to alternate rows.
  • Columns can be selected with separators.

install

deb package

You can download the package from releases.

curl -L -O https://github.com/noborus/ov/releases/download/vx.x.x/ov_x.x.x-1_amd64.deb
sudo dpkg -i ov_x.x.x-1_amd64.deb

rpm package

You can download the package from releases.

sudo rpm -ivh https://github.com/noborus/ov/releases/download/vx.x.x/ov_x.x.x-1_amd64.rpm

homebrew(macOS or Linux)

brew install noborus/tap/ov

binary

You can download the binary from releases.

curl -L -O https://github.com/noborus/ov/releases/download/vx.x.x/ov_x.x.x_linux_amd64.zip
unzip ov_x.x.x_linux_amd64.zip
sudo install ov /usr/local/bin

go get(simplified version)

It will be installed in $GOPATH/bin by the following command.

go get -u github.com/noborus/ov

go get(details or developer version)

First of all, download only with the following command without installing it.

go

You can download it from github. Various packages are also available.

ov operates as a simple pager.
It has the following features.

  • Direct viewing of various compressed files
  • Supports UTF-8 emoji and combining characters.
  • Passes through an escape sequence of colors.

ov is already available in place of less in many cases (except for man pager).

And the following functions can be enabled by option or keystroke

  • Headers fixed
  • Switch between wrapping and not wrapping lines.
  • Alternate background colors for the lines.
  • Highlight the string between delimiters.

This is useful for displaying tabular data.
And with this feature, you can also conveniently use it as a pager called from psql or mysql.

column mode

Top comments (0)