Home

Awesome

ov - feature rich terminal pager

PkgGoDev Actions Status Go Report Card

ov is a terminal pager.

ov-image.png

<!-- vscode-markdown-toc --> <!-- vscode-markdown-toc-config numbering=true autoSave=true /vscode-markdown-toc-config --> <!-- /vscode-markdown-toc -->

1. <a name='feature'></a>Feature

1.1. <a name='not-supported'></a>Not supported

2. <a name='install'></a>Install

2.1. <a name='deb-package'></a>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

2.2. <a name='rpm-package'></a>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

2.3. <a name='macports-(macos)'></a>MacPorts (macOS)

sudo port install ov

2.4. <a name='homebrew(macos-or-linux)'></a>Homebrew(macOS or Linux)

brew install noborus/tap/ov

2.5. <a name='winget(windows)'></a>winget(windows)

winget install -e --id noborus.ov

2.6. <a name='pkg-(freebsd)'></a>pkg (FreeBSD)

pkg install ov

2.7. <a name='arch-linux'></a>Arch Linux

You can install ov using an AUR helper.

Choose an AUR package:

2.8. <a name='nix-(nixos,-linux,-or-macos)'></a>nix (nixOS, Linux, or macOS)

ov is available as a nix package. You can install it with

nix profile install nixpkgs#ov

if you use flakes, or using nix-env otherwise:

nix-env -iA nixpkgs.ov

2.9. <a name='binary'></a>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

2.10. <a name='go-install'></a>go install

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

go install github.com/noborus/ov@latest

Or to install the latest commit from master:

go install github.com/noborus/ov@master

2.11. <a name='build-from-source'></a>Build from source

First of all, clone this repo with either git clone or gh repo clone, then cd to the directory, for example:

git clone https://github.com/noborus/ov.git
cd 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

2.12. <a name='completion'></a>Completion

You can generate completion scripts for bash, zsh, fish, and powershell.

2.12.1. <a name='bash'></a>bash

ov --completion bash > /etc/bash_completion.d/ov

2.12.2. <a name='zsh'></a>zsh

ov --completion zsh > /usr/share/zsh/site-functions/_ov

For zinit users.

zinit load 'https://github.com/noborus/ov/blob/master/ov.plugin.zsh'

2.12.3. <a name='fish'></a>fish

ov --completion fish > ~/.config/fish/completions/ov.fish

2.12.4. <a name='powershell'></a>powershell

ov --completion powershell completion powershell | Out-String | Invoke-Expression

3. <a name='usage'></a>Usage

(default key key) indicates the key that can be specified even after starting the same function as the command line option.

3.1. <a name='basic-usage'></a>Basic usage

ov supports open file name or standard input.

ov filename
cat filename|ov

Used by other commands by setting the environment variable PAGER.

export PAGER=ov

See the ov site for more use cases.

3.1.1. <a name='redirect-output'></a>Redirect Output

Starting from v0.37.0, when redirecting the output of ov, the screen will not be displayed. To force the screen to display, use the --force-screen option.

ov --force-screen filename > output.txt

Added in v0.37.0

3.2. <a name='config'></a>Config

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

ov will look for a configuration file in the following paths in descending order:

$XDG_CONFIG_HOME/ov/config.yaml
$HOME/.config/ov/config.yaml
$HOME/.ov.yaml

On Windows:

%USERPROFILE%/.config/ov/config.yaml
%USERPROFILE%/.ov.yaml

Create a config.yaml file in one of the above directories. If the file is in the user home directory, it should be named .ov.yaml.

Please refer to the sample ov.yaml configuration file.

[!NOTE] If you like less key bindings, copy ov-less.yaml and use it.

3.3. <a name='header'></a>Header

The --header (-H) (default key H) option fixedly displays the specified number of lines.

ov --header 1 README.md

Related styling: StyleHeader.

3.3.1. <a name='skip'></a>Skip

When used with the --skip-lines (default key ctrl+s) option, it hides the number of lines specified by skip and then displays the header.

ov --skip-lines 1 --header 1 README.md

3.4. <a name='column-mode'></a>Column mode

Specify the delimiter with --column-delimiter(default key is d) and set it to --column-mode(default key is c) to highlight the column.

ov --column-delimiter "," --column-mode test.csv

Regular expressions can be used for the --column-delimiter. Enclose in '/' when using regular expressions.

ps aux | ov -H1 --column-delimiter "/\s+/" --column-rainbow --column-mode

Related styling: StyleColumnHighlight,StyleColumnRainbow.

3.5. <a name='column-rainbow-mode'></a>Column rainbow mode

You can also color each column individually in column mode. Specify --column-rainbow(default key is ctrl+r) in addition to the --column-mode option.

Color customization is possible. Please specify 7 or more colors in config.yaml.

StyleColumnRainbow:
  - Foreground: "white"
  - Foreground: "aqua"
  - Foreground: "lightsalmon"
  - Foreground: "lime"
  - Foreground: "blue"
  - Foreground: "yellowgreen"
  - Foreground: "red"

Style specifications other than Foreground can also be specified.

StyleColumnRainbow:
    - Foreground: "white"
      Background: "red"
    - Foreground: "aqua"
      Underline: true
    - Foreground: "#ff7f00"
      Background: "blue"
      Bold: true
    - Foreground: "lime"
      Italic: true
    - Foreground: "blue"
      Dim: true
    - Foreground: "yellowgreen"
    - Foreground: "red"

Related styling: StyleColumnRainbow.

3.6. <a name='column-width'></a>Column-width

For output like ps, using --column-width is a better way to separate columns than using spaces as delimiters.

You can specify the column width with --column-width (default key alt+o).

ps aux|ov -H1 --column-width --column-rainbow

ps-ov.png

This column-width feature is implemented using guesswidth.

3.7. <a name='wrap/nowrap'></a>Wrap/NoWrap

Supports switching between wrapping and not wrapping lines.

The option is --wrap, specify --wrap=false (default key w, W) if you do not want to wrap.

3.8. <a name='alternate-rows'></a>Alternate-Rows

Alternate row styles with the --alternate-rows(-C) (default key C) option The style can be set with Style customization.

ov --alternate-rows test.csv

Related styling: StyleAlternate.

3.9. <a name='section'></a>Section

You can specify a section delimiter using --section-delimiter (default key alt+d).

This allows you to move between sections (default keys space and ^).

The specified line will also be treated as a section header and will remain fixed at the specified position until the next section appears at the specified position.

The start of the section can be adjusted with --section-start(default key ctrl+F3, alt+s).

section.png

The --section-delimiter is written in a regular expression (for example: "^#"). (Line breaks are not included in matching lines).

For example, if you specify "^diff" for a diff that contains multiple files, you can move the diff for each file.

The number of lines in section-header can be changed. You can specify the number of lines using the --section-header-num option or key input(default key F7).

3.9.1. <a name='section-example'></a>section example

This is an example of using the git pager.

[pager]
	diff = "ov -F --section-delimiter '^diff'"
	log = "ov -F --section-delimiter '^commit' --section-header-num 3"

Related styling: StyleSectionLine.

3.9.2. <a name='hide-other-sections'></a>hide other sections

If you specify --hide-other-section(default key alt+-), only the current section is displayed.

ov --section-delimiter "^#" --hide-other-section README.md

This is just hidden, so it will be displayed when you move to the next section.

3.10. <a name='multiple-files'></a>Multiple files

ov can also open multiple files.

ov file1 file2

Multiple files are each opened as a document and can be navigated using the Next Document ] key (default), Previous Document [ key (default).

Related Styling: Customizing the bottom status line.

3.11. <a name='follow-mode'></a>Follow mode

--follow(-f)(default key ctrl+f) prints appended data and moves to the bottom line (like tail -f).

ov --follow-mode /var/log/syslog
(while :; do echo random-$RANDOM; sleep 0.1; done;)|./ov  --follow-mode

[!NOTE] Due to issueissue #643, follow-mode does not work for files in the /tmp folder on macOS.

3.12. <a name='follow-name'></a>Follow name

You can specify the file name to follow with --follow-name(like tail -F). Monitor file names instead of file descriptors.

ov --follow-name /var/log/nginx/access.log

3.13. <a name='follow-all-mode'></a>Follow all mode

--follow-all(-A)(default key ctrl+a) is the same as follow mode, it switches to the last updated file if there are multiple files.

ov --follow-all /var/log/nginx/access.log /var/log/nginx/error.log

3.14. <a name='follow-section-mode'></a>Follow section mode

Use the --follow-section(default key F2) option to follow by section. Follow mode is line-by-line, while follow section mode is section-by-section. Follow section mode displays the bottom section. The following example is displayed from the header (#) at the bottom.

ov --section-delimiter "^#" --follow-section README.md

[!NOTE] Watch mode is a mode in which --follow-section and --section-delimiter "^\f" are automatically set.

3.15. <a name='exec-mode'></a>Exec mode

Use the --exec (-e) option to run the command and display stdout/stderr separately. Arguments after (--) are interpreted as command arguments.

Shows the stderr screen as soon as an error occurs, when used with --follow-all.

ov --follow-all --exec -- make

In exec mode (other than Windows) the output is opened by opening a pty. Therefore, the command is likely to be printed in color.

ov --exec -- eza -l

3.16. <a name='search'></a>Search

Search by forward search / key(default) or the backward search ? key(default). Search can be toggled between incremental search, regular expression search, and case sensitivity. Displayed when the following are enabled in the search input prompt:

Functiondisplay(Default)keycommand optionconfig file
Incremental search(I)alt+i--incrementalIncsearch
Regular expression search(R)alt+r--regexp-searchRegexpSearch
Case-sensitive(Aa)alt+c-i, --case-sensitiveCaseSensitive
Smart case-sensitive(S)alt+s--smart-case-sensitiveSmartCaseSensitive

Specify true/false in config file.

CaseSensitive: false
RegexpSearch: false
Incsearch: true
SmartCaseSensitive: true

Related styling: StyleSearchHighlight

3.17. <a name='pattern'></a>Pattern

The pattern option allows you to specify a search at startup.

ov --pattern install README.md

3.18. <a name='filter'></a>Filter

Filter input is possible using the & key(default). The filter input creates a new document only for the lines that match the filter.

Move next document ] and previous document [ key(default) allow you to move between the filter document and the original document.

The K(shift+k) key (default) closes all documents created by the filter.

You can also specify a filter using the command line option --filter.

ov --filter "install" README.md

The filter is a regular expression.

ov --filter "^#" README.md

Also, specify the non-matching line instead of the non-matching line.

If you press ! on & while inputting a filter, non-matching lines will be targeted.

The command line option for this can be specified with --non-match-filter.

ov --non-match-filter info /var/log/syslog

If you specify both a filter option and the Quit if one screen option, the command will display the results of the filter and then quit if the results fit on one screen.

$ ps aux|ov -H1 --filter postgres --quit-if-one-screen
USER         PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
postgres    1589  0.0  0.0 221992 29952 ?        Ss   Jul24   0:02 /usr/lib/postgresql/14/bin/postgres -D /var/lib/postgresql/14/main -c config_file=/etc/postgresql/14/main/postgresql.conf
postgres    1624  0.0  0.0 222104  9544 ?        Ss   Jul24   0:00 postgres: 14/main: checkpointer 
postgres    1626  0.0  0.0 221992  8392 ?        Ss   Jul24   0:00 postgres: 14/main: background writer 
postgres    1627  0.0  0.0 221992 11464 ?        Ss   Jul24   0:00 postgres: 14/main: walwriter 
postgres    1628  0.0  0.0 222560  9928 ?        Ss   Jul24   0:01 postgres: 14/main: autovacuum launcher 
postgres    1629  0.0  0.0  76728  7112 ?        Ss   Jul24   0:01 postgres: 14/main: stats collector 
postgres    1631  0.0  0.0 222420  8904 ?        Ss   Jul24   0:00 postgres: 14/main: logical replication launcher 
noborus   193766  0.0  0.0 1603756 7552 pts/0    Rl+  10:37   0:00 ov -H1 -F --filter postgres

3.19. <a name='caption'></a>Caption

You can specify a caption instead of the file name in status line to display it.

ls -alF|ov --caption "ls -alF"

It can also be specified as an environment variable.

export OV_CAPTION="ls -alF"
ls -alF|ov

3.20. <a name='mark'></a>Mark

Mark the display position with the m key(default). The mark is decorated with StyleMarkLine and MarkStyleWidth.

Marks can be erased individually with the M key(default). It is also possible to delete all marks with the ctrl + delete key(default).

Use the >next and <previous (default) key to move to the marked position.

Related styling: StyleMarkLine.

3.21. <a name='watch'></a>Watch

ov has a watch mode that reads the file every N seconds and adds it to the end. When you reach EOF, add '\f' instead. Use the --watch(-T) option. Go further to the last section. The default is'section-delimiter', so the last loaded content is displayed.

for example.

ov --watch 1 /proc/meminfo

3.22. <a name='mouse-support'></a>Mouse support

The ov makes the mouse support its control. This can be disabled with the option --disable-mouse(default key ctrl+F3, ctrl+alt+r).

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).

Also, if mouse support is enabled, horizontal scrolling is possible with shift+wheel.

3.23. <a name='multi-color-highlight'></a>Multi color highlight

This feature styles multiple words individually. .key(default) enters multi-word input mode. Enter multiple words (regular expressions) separated by spaces.

For example, error info warn debug will color errors red, info cyan, warn yellow, and debug magenta.

It can also be specified with the command line option --multi-color(-M)(default key .). For command line options, pass them separated by ,(comma).

For example:

ov --multi-color "ERROR,WARN,INFO,DEBUG,not,^.{24}" access.log

multi-color.png

Color customization is possible. Please specify 7 or more colors in config.yaml.

StyleMultiColorHighlight:
  - Foreground: "red"
    Reverse: true
  - Foreground: "aqua"
    Underline: true
  - Foreground: "yellow"
    Background: "blue"
  - Foreground: "fuchsia"
  - Foreground: "lime"
  - Foreground: "blue"
  - Foreground: "#c0c0c0"

Related styling: StyleMultiColorHighlight.

3.24. <a name='plain'></a>Plain

Supports disable decoration ANSI escape sequences. The option is --plain (or -p) (default key ctrl+e).

3.25. <a name='converter'></a>Converter

Converter selects the engine to convert and display the text. Usually, the escape sequence is interpreted and displayed by es (default). raw displays as it is without interpreting the escape sequence.

You can specify the --converter option with [es|raw|align], and you can also specify the --raw, --align(Align) option as a shortcut option.

[!NOTE] raw also displays the character string of the escape sequence, but be aware that Plain hides the decoration after interpreting the escape sequence.

Added in v0.37.0

3.26. <a name='align'></a>Align

align displays the width when making Column is recognized.

Example:

c1,c2,c3
a,b,c
aaaaaaaaaaaaaaaaaaaa,bb,cc
aa,bbbbbbbbbbbbbb,cc
aa,bb,cccccccccccccccccccccc
ov --column-mode --align test.csv

ov-align

Align can also shrink column.

Added in v0.37.0

3.26.1. <a name='shrink'></a>Shrink

Align allows columns to be shrunk and stretched by toggling with the (default key s).

ov-column-shrink

To change the character displayed when columns are shrunk, set ShrinkChar in the configuration file:

ShrinkChar: '.'

Added in v0.37.0

3.27. <a name='jump-target'></a>Jump target

You can specify the lines to be displayed in the search results. This function is similar to --jump-target of less. Positive numbers are displayed downwards by the number of lines from the top(1). Negative numbers are displayed up by the number of lines from the bottom(-1). . (dot) can be used to specify a percentage. .5 is the middle of the screen(.5). You can also specify a percentage, such as (50%).

This option can be specified with --jump-target(or -j) (default key j).

If section is specified as the --jump-target, the display will start from the beginning of the section as much as possible and the jump-target will be changed.

ov --section-delimiter "^#" --jump-target section README.md

Related styling: StyleJumpTarget.

3.28. <a name='view-mode'></a>View mode

You can also use a combination of modes using the --view-mode(default key p) option. In that case, you can set it in advance and specify the combined mode at once.

For example, if you write the following settings in ov.yaml, the csv mode will be set with --view-mode csv.

ov --view-mode csv test.csv
Mode:
  p:
    Header: 2
    AlternateRows: true
    ColumnMode: true
    LineNumMode: false
    WrapMode: true
    ColumnDelimiter: "|"
    ColumnRainbow: true
  m:
    Header: 3
    AlternateRows: true
    ColumnMode: true
    LineNumMode: false
    WrapMode: true
    ColumnDelimiter: "|"
  csv:
    Header: 1
    AlternateRows: true
    ColumnMode: true
    LineNumMode: false
    WrapMode: true
    ColumnDelimiter: ","
    ColumnRainbow: true

3.29. <a name='output-on-exit'></a>Output on exit

--exit-write, -X(default key Q) option prints the current screen on exit. This looks like the display remains on the console after the ov is over.

By default, it outputs the amount of the displayed screen and exits.

ov -X README.md

You can change how much is written using --exit-write-before and --exit-write-after(default key ctrl+q). --exit-write-before

--exit-write-before specifies the number of lines before the current position(top of screen). --exit-write-before 3 will output from 3 lines before.

--exit-write-after specifies the number of lines after the current position (top of screen).

--exit-write-before 3 --exit-write-after 3 outputs 6 lines.

3.30. <a name='quit-if-one-screen'></a>Quit if one screen

The --quit-if-one-screen, -F option allows the program to exit immediately if the content fits within one screen. This can be useful when you only want to view small files or when you want to quickly check the content without scrolling.

If you want to enable this option by default, set QuitSmall to true in the configuration file.

QuitSmall: true

3.31. <a name='suspend'></a>Suspend

You can suspend ov with ctrl+z(default key). Normally, you can resume from suspend by typing fg.

suspended ov (use 'fg' to resume)

On Windows or if the environment variable OV_SUBSHELL is set, exit instead of fg. The process actually starts a subshell without suspending.

suspended ov (use 'exit' to resume)

Added in v0.37.0

[!NOTE] Until v0.36.0, it was a Subshell method.

3.32. <a name='save'></a>Save

If the file input is via a pipe, you can save it by pressing the save buffer (default S) key.

This will put you in input mode, so enter the file name. Only the buffer currently in memory is saved.

(Save)file:savefile.txt

If the file name already exists, select Overwrite, Append, or Cancel.

overwrite? (O)overwrite, (A)append, (N)cancel

4. <a name='how-to-reduce-memory-usage'></a>How to reduce memory usage

Since v0.30.0 it no longer loads everything into memory. The first chunk from the beginning to the 10,000th line is loaded into memory and never freed. Therefore, files with less than 10,000 lines do not change behavior.

The --memory-limit option can be used to limit the chunks loaded into memory. Memory limits vary by file type.

Also, go may use a lot of memory until the memory is freed by GC. Also consider setting the environment variable GOMEMLIMIT.

export GOMEMLIMIT=100MiB

4.1. <a name='regular-file-(seekable)'></a>Regular file (seekable)

regular file memory

Normally large (10,000+ lines) files are loaded in chunks when needed. It also frees chunks that are no longer needed. If --memory-limit is not specified, it will be limited to 100.

ov --memory-limit-file 3 /var/log/syslog

Specify MemoryLimit in the configuration file.

MemoryLimitFile: 3

You can also use the --memory-limit-file option and the MemoryLimitFile setting for those who think regular files are good memory saving.

4.2. <a name='other-files,-pipes(non-seekable)'></a>Other files, pipes(Non-seekable)

non-regular file memory

Non-seekable files and pipes cannot be read again, so they must exist in memory.

If you specify the upper limit of chunks with --memory-limit or MemoryLimit, it will read up to the upper limit first, but after that, when the displayed position advances, the old chunks will be released. Unlimited if --memory-limit is not specified.

cat /var/log/syslog | ov --memory-limit 10

It is recommended to put a limit in the config file as you may receive output larger than memory.

MemoryLimit: 1000

5. <a name='command-option'></a>Command option

ShortLongPurpose
-l,--alignalign the output columns for better readability
-C,--alternate-rowsalternately change the line color
--caption stringcustom caption
-i,--case-sensitivecase-sensitive in search
-d,--column-delimiter charactercolumn delimiter character (default ",")
-c,--column-modecolumn mode
--column-rainbowcolumn mode to rainbow
--column-widthcolumn mode for width
--completion stringgenerate completion script [bash|zsh|fish|powershell]
--config fileconfig file (default is $XDG_CONFIG_HOME/ov/config.yaml)
--converter stringconverter [es|raw|align] (default "es")
--debugdebug mode
--disable-column-cycledisable column cycling
--disable-mousedisable mouse support
-e,--execcommand execution result instead of file
-X,--exit-writeoutput the current screen when exiting
-a,--exit-write-after intnumber after the current lines when exiting
-b,--exit-write-before intnumber before the current lines when exiting
--filter stringfilter search pattern
-A,--follow-allfollow multiple files and show the most recently updated one
-f,--follow-modemonitor file and display new content as it is written
--follow-namefollow mode to monitor by file name
--follow-sectionsection-by-section follow mode
--force-screendisplay screen even when redirecting output
-H,--header intnumber of header lines to be displayed constantly
-h,--helphelp for ov
--help-keydisplay key bind information
--hide-other-sectionhide other section
--hscroll-width [int|int%|.int]width to scroll horizontally [int|int%|.int] (default "10%")
--incsearch[=true|false]incremental search (default true)
-j,--jump-target [int|int%|.int|'section']jump target [int|int%|.int|'section']
-n,--line-numberline number mode
--memory-limit intnumber of chunks to limit in memory (default -1)
--memory-limit-file intnumber of chunks to limit in memory for the file (default 100)
-M,--multi-color stringscomma separated words(regexp) to color .e.g. "ERROR,WARNING"
--non-match-filter stringfilter non match search pattern
--pattern stringsearch pattern
-p,--plaindisable original decoration
-F,--quit-if-one-screenquit if the output fits on one screen
-r,--rawraw escape sequences without processing
--regexp-searchregular expression search
--section-delimiter regexpregexp for section delimiter .e.g. "^#"
--section-headerenable section-delimiter line as Header
--section-header-num intnumber of section header lines (default 1)
--section-start intsection start position
--skip-extractskip extracting compressed files
--skip-lines intskip the number of lines
--smart-case-sensitivesmart case-sensitive in search
-x,--tab-width inttab stop width (default 8)
-v,--versiondisplay version information
--view-mode stringapply predefined settings for a specific mode
-T,--watch secondswatch mode interval(seconds)
-w,--wrap[=true|false]wrap mode (default true)

It can also be changed after startup.

6. <a name='key-bindings'></a>Key bindings

KeyAction
[Escape], [q]* quit
[ctrl+c]* cancel
[Q]* output screen and quit
[ctrl+q]* set output screen and quit
[ctrl+z]* suspend
[h], [ctrl+alt+c], [ctrl+f1]* display help screen
[ctrl+f2], [ctrl+alt+e]* display log screen
[ctrl+l]* screen sync
[ctrl+f]* follow mode toggle
[ctrl+a]* follow all mode toggle
[ctrl+f3], [ctrl+alt+r]* enable/disable mouse
[S]* save buffer to file
Moving
[Enter], [Down], [ctrl+N]* forward by one line
[Up], [ctrl+p]* backward by one line
[Home]* go to top of document
[End]* go to end of document
[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
[ctrl+shift+left]* scroll left specified width
[ctrl+shift+right]* scroll right specified width
[shift+Home]* go to beginning of line
[shift+End]* go to end of line
[g]* go to line(input number or .n or n% allowed)
Move document
[]]* next document
[[]* previous document
[ctrl+k]* close current document
[K]* close all filtered documents
Mark position
[m]* mark current position
[M]* remove mark current position
[ctrl+delete]* remove all mark
[>]* 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
[&]* filter search mode
Change display
[w], [W]* wrap/nowrap toggle
[c]* column mode toggle
[alt+o]* column width toggle
[ctrl+r]* column rainbow toggle
[s]* shrink column toggle
[C]* alternate rows of style toggle
[G]* line number toggle
[ctrl+e]* original decoration toggle(plain)
[alt+F]* align columns
[alt+R]* raw output
Change Display with Input
[p], [P]* view mode selection
[d]* column delimiter string
[H]* number of header lines
[ctrl+s]* number of skip lines
[t]* TAB width
[.]* multi color highlight
[j]* jump target(.n or n% or section allowed)
[alt+t]* convert type selection
Section
[alt+d]* section delimiter regular expression
[ctrl+F3], [alt+s]* section start position
[space]* next section
[^]* previous section
[9]* last section
[F2]* follow section mode toggle
[F7]* number of section header lines
[alt+-]* hide "other" section toggle
Close and reload
[ctrl+F9], [ctrl+alt+s]* close file
[ctrl+alt+l], [F5]* reload file
[ctrl+alt+w], [F4]* watch mode
[ctrl+w]* set watch interval
Key binding when typing
[alt+c]* case-sensitive toggle
[alt+s]* smart case-sensitive toggle
[alt+r]* regular expression search toggle
[alt+i]* incremental search toggle
[!]* non-match toggle
[Up]* previous candidate
[Down]* next candidate
[ctrl+c]* copy to clipboard.
[ctrl+v]* paste from clipboard

7. <a name='customize'></a>Customize

7.1. <a name='style-customization'></a>Style customization

You can customize the following items.

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

[Example]

StyleAlternate:
  Background: "gray"
  Bold: true
  Underline: true
item namevalueexample
Foreground"color name" or "rgb""red"
Background"color name" or "rgb""#2a2a2a"
Reversetrue/falsetrue
Boldtrue/falsetrue
Blinktrue/falsetrue
Dimtrue/falsefalse
Italictrue/falsefalse
Underlinetrue/falsefalse

Specify StyleMultiColorHighlight and StyleColumnRainbow in an array.

StyleMultiColorHighlight
  - Foreground: "red"
    Reverse: true
  - Foreground: "aqua"
    Underline: true
StyleColumnRainbow:
  - Foreground: "white"
    Background: "black"
  - Foreground: "aqua"
    Background: "black"
    Underline: true
  - Background: "lightsalmon"

7.2. <a name='customizing-the-bottom-status-line'></a>Customizing the bottom status line

You can customize the bottom status line.

[Example]

Prompt
  Normal:
    ShowFilename: false
    InvertColor: false
    ProcessOfCount: false
item namedescriptiondefault
ShowFilenameDisplay file nametrue
InvertColorDisplay file name inverted and changed colortrue
ProcessOfCountUpdate the progress while counting the number of linestrue

7.3. <a name='key-binding-customization'></a>Key binding customization

You can customize key bindings.

[Example]

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

See ov.yaml for more information.

8. <a name='vs'></a>VS

The following software can be used instead. If you are not satisfied with ov, you should try it.

9. <a name='work-together'></a>Work together

The following are not actually pagers and do not conflict. can work together.

Please look at the documentation portal to configure them.

10. <a name='contributing'></a>Contributing

We welcome contributions to this project! Here are some ways you can contribute:

  1. Submit bugs and feature requests in the issue tracker.
  2. Review and test open pull requests.
  3. Improve or translate the documentation.
  4. Write code to fix bugs or add new features.

Before contributing, please read our Code of Conduct. We expect all contributors to follow these guidelines to ensure a welcoming and friendly environment for everyone.

To start contributing:

  1. Fork the repository.
  2. Create a new branch for your changes.
  3. Make your changes in your branch.
  4. Submit a pull request with your changes.

We will review your pull request as soon as possible. Thank you for your contribution!