zpager

package module
v0.0.0-...-2d30be5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 26, 2020 License: MIT Imports: 18 Imported by: 0

README

Zpager

Zpager is a feature rich pager.

install

go get -u github.com/noborus/zpager...

Usage

Zpager supports open file name or standard input.

Feature rich pager(such as more/less).
It supports various compressed files(gzip, bzip2, zstd, lz4, and xz).

Usage:
  zpager [flags]

Flags:
      --config string   config file (default is $HOME/.zpager.yaml)
  -H, --header int      number of header rows to fix
  -h, --help            help for zpager
  -X, --no-init         Output the current screen when exiting
  -x, --tab-width int   tab stop (default 8)
  -v, --version         display version information
  -w, --wrap            wrap mode (default true)

Documentation

Overview

Package zpager provides a pager for terminals.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(m *Model, args []string) error

Types

type Mode

type Mode int

type Model

type Model struct {
	TabWidth  int
	WrapMode  bool
	HeaderLen int
	PostWrite bool
	// contains filtered or unexported fields
}

func NewModel

func NewModel() *Model

func (*Model) ReadAll

func (m *Model) ReadAll(r io.Reader)

Directories

Path Synopsis
cmd
zpager command

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL