All Projects → noborus → Ov

noborus / Ov

Licence: mit
Feature rich terminal pager

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to Ov

Tty Pager
Terminal output paging - cross-platform, major ruby interpreters
Stars: ✭ 37 (-37.29%)
Mutual labels:  terminal, pager
Csview
📠 A high performance csv viewer with cjk/emoji support.
Stars: ✭ 208 (+252.54%)
Mutual labels:  terminal, pager
Alectro
A terminal IRC client in Rust.
Stars: ✭ 47 (-20.34%)
Mutual labels:  terminal
Nord Konsole
An arctic, north-bluish clean and elegant Konsole color scheme.
Stars: ✭ 56 (-5.08%)
Mutual labels:  terminal
Crossline
A small, self-contained, zero-config, MIT licensed, cross-platform, readline and libedit replacement.
Stars: ✭ 53 (-10.17%)
Mutual labels:  terminal
Colorette
Easily set the color and style of text in the terminal.
Stars: ✭ 1,047 (+1674.58%)
Mutual labels:  terminal
Crex
Explore, test, and check regular expressions in the terminal.
Stars: ✭ 54 (-8.47%)
Mutual labels:  terminal
Hyper Hide Title
Hide the Hyper window title when there is only one tab
Stars: ✭ 46 (-22.03%)
Mutual labels:  terminal
Http Prompt
An interactive command-line HTTP and API testing client built on top of HTTPie featuring autocomplete, syntax highlighting, and more. https://twitter.com/httpie
Stars: ✭ 8,329 (+14016.95%)
Mutual labels:  terminal
Awesome Bash Commands
A curated list of awesome Bash useful commands. Inspired by awesome-shell and bash-handbook.
Stars: ✭ 52 (-11.86%)
Mutual labels:  terminal
Nyancat.cs
Nyancat 😻 in your terminal, rendered through ANSI escape sequences. A port of the original terminal application to make this cat run on dotnet core. 🐱‍🏍
Stars: ✭ 56 (-5.08%)
Mutual labels:  terminal
Cmd Command Cheat Sheet
CMD - Command Cheat Sheat ✅
Stars: ✭ 50 (-15.25%)
Mutual labels:  terminal
Terminus
Terminus, a terminal for Atom! - Looking for collaborators hop in, at your next bus stop :-)
Stars: ✭ 49 (-16.95%)
Mutual labels:  terminal
Rang
A Minimal, Header only Modern c++ library for terminal goodies 💄✨
Stars: ✭ 1,080 (+1730.51%)
Mutual labels:  terminal
Mdcat
cat for markdown
Stars: ✭ 1,043 (+1667.8%)
Mutual labels:  terminal
Termly.js
Simple, Extensible, Hackable and Lightweight Javascript Browser Terminal Simulator!
Stars: ✭ 56 (-5.08%)
Mutual labels:  terminal
Dotfiles
My dotfiles 🚀. Includes configs for neovim, tmux, zsh, alacritty and more.
Stars: ✭ 47 (-20.34%)
Mutual labels:  terminal
Picofeed
A minimal terminal rss reader
Stars: ✭ 50 (-15.25%)
Mutual labels:  terminal
Brick
A declarative Unix terminal UI programming library written in Haskell
Stars: ✭ 1,070 (+1713.56%)
Mutual labels:  terminal
Bad Robo
🐙 Get Daily 400-500 Real Followers 👽 [BadRobo] is Best Instagram Bot Available Now with All Features!. Our BOT did not violate any of Instagram's rules, so you don't have to worry about getting ACTION BLOCK!
Stars: ✭ 59 (+0%)
Mutual labels:  terminal

ov - Oviewer

PkgGoDev Actions Status Go Report Card

ov is a feature rich terminal pager. It has an effective function for tabular text.

(The old repository name was oviewer.)

ov.gif

feature

  • Better support for Unicode and East Asian 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.
  • Shortcut keys are customizable.
  • The style of the effect is customizable.

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 get -d github.com/noborus/ov
cd $GOPATH/src/github.com/noborus/ov

Next, to install to $GOPATH/bin, run the make install command.

make install

Or, install it in a PATH location for other users to use (For example, in /usr/local/bin).

make
sudo install ov /usr/local/bin

Usage

ov supports open file name or standard input.

ov filename
cat filename|ov
$ ov --help
ov is a feature rich pager(such as more/less).
It supports various compressed files(gzip, bzip2, zstd, lz4, and xz).

Usage:
  ov [flags]

Flags:
  -C, --alternate-rows            alternately change the line color
  -i, --case-sensitive            case-sensitive in search
  -d, --column-delimiter string   column delimiter (default ",")
  -c, --column-mode               column mode
      --completion                generate completion script [bash|zsh|fish|powershell]
      --config string             config file (default is $HOME/.ov.yaml)
      --debug                     debug mode
      --disable-mouse             disable mouse support
  -X, --exit-write                output the current screen when exiting
  -H, --header int                number of header rows to fix
  -h, --help                      help for ov
      --help-key                  display key bind information
  -n, --line-number               line number mode
  -F, --quit-if-one-screen        quit if the output fits on one screen
  -x, --tab-width int             tab stop width (default 8)
  -v, --version                   display version information
  -w, --wrap                      wrap mode (default true)

It can also be changed after startup. Refer to the motion image.

config

You can set style and key bindings in the setting file.

Please refer to the sample ov.yaml configuration file.

psql

Set environment variable PSQL_PAGER(PostgreSQL 11 or later).

export PSQL_PAGER='ov -w=f -H2 -F -C -d "|"'

You can also write in ~/.psqlrc in previous versions.

\setenv PAGER 'ov -w=f -H2 -F -C -d "|"'

mysql

Use the --pager option with the mysql client.

mysql --pager='ov -w=f -H3 -F -C -d "|"'

You can also write in ~/.my.cnf.

[client]
pager=ov -w=f -H3 -F -C -d "|"

Mouse support

The ov makes the mouse support its control. This can be disabled with the option --disable-mouse.

If mouse support is enabled, tabs and line breaks will be interpreted correctly when copying.

Copying to the clipboard uses atotto/clipboard. For this reason, the 'xclip' or 'xsel' command is required in Linux/Unix environments.

Selecting the range with the mouse and then left-clicking will copy it to the clipboard.

Pasting in ov is done with the middle button. In other applications, it is pasted from the clipboard (often by pressing the right-click).

Key bindings

  [Escape], [q]              * quit
  [ctrl+c]                   * cancel
  [Q]                        * output screen and quit
  [h]                        * display help screen
  [ctrl+alt+e]               * display log screen
  [ctrl+l]                   * screen sync
  [ctrl+alt+r]               * enable/disable mouse
  [ctrl+k]                   * close current document

	Moving

  [Enter], [Down], [ctrl+N]  * forward by one line
  [Up], [ctrl+p]             * backward by one line
  [Home]                     * go to begin of line
  [End]                      * go to end of line
  [PageDown], [ctrl+v]       * forward by page
  [PageUp], [ctrl+b]         * backward by page
  [ctrl+d]                   * forward a half page
  [ctrl+u]                   * backward a half page
  [left]                     * scroll to left
  [right]                    * scroll to right
  [ctrl+left]                * scroll left half screen
  [ctrl+right]               * scroll right half screen
  [g]                        * number of go to line
  []]                        * next document
  [[]                        * previous document

	Mark position

  [m]                        * mark current position
  [>]                        * move to next marked position
  [<]                        * move to previous marked position

	Search

  [/]                        * forward search mode
  [?]                        * backward search mode
  [n]                        * repeat forward search
  [N]                        * repeat backward search

	Change display

  [w], [W]                   * wrap/nowrap toggle
  [c]                        * column mode toggle
  [C]                        * color to alternate rows toggle
  [G]                        * line number toggle

	Change Display with Input

  [d]                        * delimiter string
  [H]                        * number of header lines
  [t]                        * TAB width

Customize

Style customization

You can customize the following items.

  • StyleAlternate
  • StyleHeader
  • StyleOverStrike
  • StyleOverLine
  • StyleLineNumber

Specifies the color name for the foreground and background colors. Specify bool values for Bold, Blink, Shaded, Italic, and Underline.

[Example]

StyleAlternate:
  Background: "gray"
  Bold: true
  Underline: true

Key binding customization

You can customize key bindings.

[Example]

    down:
        - "Enter"
        - "Down"
        - "ctrl+N"
    up:
        - "Up"
        - "ctrl+p"

See ov.yaml for more information..

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].