Documentation
¶
Overview ¶
Package pager provides a pager (similar to less) for the terminal.
$ cat file.txt | gum pager
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LipglossPadding ¶
LipglossPadding calculates how much padding a string is given by a style.
Types ¶
type Options ¶
type Options struct {
//nolint:staticcheck
Style style.Styles `` /* 151-byte string literal not displayed */
Content string `hidden:"" arg:"" optional:"" help:"Display content to scroll"`
ShowLineNumbers bool `hidden:"" help:"Show line numbers" default:"true"`
LineNumberStyle style.Styles `` /* 133-byte string literal not displayed */
SoftWrap bool `hidden:"" help:"Soft wrap lines" default:"true" negatable:""`
MatchStyle style.Styles `` //nolint:staticcheck
/* 144-byte string literal not displayed */
MatchHighlightStyle style.Styles `` //nolint:staticcheck
/* 197-byte string literal not displayed */
Timeout time.Duration `hidden:"" help:"Timeout until command exits" default:"0s" env:"GUM_PAGER_TIMEOUT"`
Scroll bool `help:"Scroll content" short:"s" default:"false"`
File string `help:"File to scroll"`
// Deprecated: this has no effect anymore.
HelpStyle style.Styles `` /* 126-byte string literal not displayed */
}
Options are the options for the pager.
func (*Options) Run ¶
Run provides a shell script interface for the viewport bubble. https://github.com/charmbracelet/bubbles/viewport
func (*Options) ScrollPage ¶
Click to show internal directories.
Click to hide internal directories.