Versions in this module Expand all Collapse all v1 v1.0.2 Apr 10, 2021 Changes in this version + var DeInit = true + func Page(reader *Reader) error + func SetManPageFormatFromEnv() + type Line struct + func NewLine(raw string) *Line + func (line *Line) Plain() string + func (line *Line) Tokens() []Token + type Lines struct + type MatchRanges struct + Matches [][2]int + func (mr *MatchRanges) InRange(index int) bool + type Pager struct + ShowLineNumbers bool + func NewPager(r *Reader) *Pager + func (p *Pager) Quit() + func (p *Pager) StartPaging(screen tcell.Screen) + type Reader struct + func NewReaderFromFilename(filename string) (*Reader, error) + func NewReaderFromStream(name string, reader io.Reader) *Reader + func NewReaderFromText(name string, text string) *Reader + func (r *Reader) GetLine(lineNumberOneBased int) *Line + func (r *Reader) GetLineCount() int + func (r *Reader) GetLines(firstLineOneBased int, wantedLineCount int) *Lines + type Token struct + Rune rune + Style tcell.Style v1.0.1 Apr 10, 2021 Changes in this version + var DefaultContent = content + var ErrCancel = errors.New("cancel") + var ErrFailedKeyBind = errors.New("failed to set keybind") + var ErrFatalCache = errors.New("fatal error in cache value") + var ErrInvalidNumber = errors.New("invalid number") + var ErrMissingFile = errors.New("missing filename") + var ErrNotFound = errors.New("not found") + var ErrOutOfRange = errors.New("out of range") + var ErrSignalCatch = errors.New("signal catch") + var OverLineStyle tcell.Style + var OverStrikeStyle tcell.Style + func GetKeyBinds(bind map[string][]string) map[string][]string + func KeyBindString(k KeyBind) string + func RangeStyle(lc lineContents, start int, end int, style ovStyle) + type Compressed int + const BZIP2 + const GZIP + const LZ4 + const UNCOMPRESSED + const XZ + const ZSTD + func (c Compressed) String() string + type Config struct + AfterWrite bool + CaseSensitive bool + ColorAlternate string + ColorHeader string + ColorOverLine string + ColorOverStrike string + Debug bool + DisableMouse bool + General general + Keybind map[string][]string + Mode map[string]general + QuitSmall bool + StyleAlternate ovStyle + StyleBody ovStyle + StyleColumnHighlight ovStyle + StyleHeader ovStyle + StyleLineNumber ovStyle + StyleOverLine ovStyle + StyleOverStrike ovStyle + StyleSearchHighlight ovStyle + func NewConfig() Config + type Document struct + CFormat Compressed + FileName string + func NewDocument() (*Document, error) + func NewHelp(k KeyBind) (*Document, error) + func NewLogDoc() (*Document, error) + func (m *Document) BufEOF() bool + func (m *Document) BufEndNum() int + func (m *Document) ClearCache() + func (m *Document) ContinueReadAll(r io.Reader) error + func (m *Document) GetLine(n int) string + func (m *Document) NewCache() error + func (m *Document) ReadAll(r io.Reader) error + func (m *Document) ReadFile(fileName string) error + func (m *Document) Write(p []byte) (int, error) + type EventInput interface + Confirm func(i string) tcell.Event + Down func(i string) string + Prompt func() string + Up func(i string) string + type Input struct + DelimiterCandidate *candidate + EventInput EventInput + GoCandidate *candidate + ModeCandidate *candidate + SearchCandidate *candidate + TabWidthCandidate *candidate + func NewInput() *Input + type InputMode int + const Backsearch + const Delimiter + const Goline + const Header + const Normal + const Search + const TabWidth + const ViewMode + type KeyBind map[string][]string + type Root struct + CurrentDoc int + Doc *Document + DocList []*Document + func ExecCommand(command *exec.Cmd) (*Root, error) + func NewOviewer(docs ...*Document) (*Root, error) + func NewRoot(read io.Reader) (*Root, error) + func Open(fileNames ...string) (*Root, error) + func (root *Root) AddDocument(m *Document) + func (root *Root) BackSearch(str string) + func (root *Root) Cancel() + func (root *Root) Close() + func (root *Root) CloseDocument(m *Document) + func (root *Root) CopySelect() + func (root *Root) DocumentLen() int + func (root *Root) Help() + func (root *Root) MoveBottom() + func (root *Root) MoveLine(num int) + func (root *Root) MoveTop() + func (root *Root) Paste() + func (root *Root) Quit() + func (root *Root) Run() error + func (root *Root) Search(str string) + func (root *Root) SetConfig(config Config) + func (root *Root) SetDocument(docNum int) + func (root *Root) SetWatcher(watcher *fsnotify.Watcher) + func (root *Root) TailSync() + func (root *Root) ViewSync() + func (root *Root) WriteLog() + func (root *Root) WriteOriginal() + func (root *Root) WriteQuit() + type ScreenMode int + const Docs + const Help + const LogDoc + type SearchType int