Skip to content
Myr

options.go

This file

Path

pager/options.go

23 lines · 1.5 KiB · Go

Last changed by

chore: prepare v2 (#1116)Drew Smirnoffbefore adoption02d6f06

History of this file

Take it

The walk stopped after 200 commits: lines older than 6837ed2 point at it.

feat(deps): bump github.com/charmbracelet/bubbletea from 0.27.0 to 1.0.0 (#661)dependabot[bot]before adoption6837ed2

lines 1–5why, one step back
1package pager
23import (4 "time"5

chore: prepare v2 (#1116)Drew Smirnoffbefore adoption02d6f06

line 6why, one step back
6 "charm.land/gum/v2/style"

feat(deps): bump github.com/charmbracelet/bubbletea from 0.27.0 to 1.0.0 (#661)dependabot[bot]before adoption6837ed2

lines 7–15why, one step back
7)
89// Options are the options for the pager.10type Options struct {11 //nolint:staticcheck12 Style style.Styles `embed:"" help:"Style the pager" set:"defaultBorder=rounded" set:"defaultPadding=0 1" set:"defaultBorderForeground=212" envprefix:"GUM_PAGER_"`13 Content string `arg:"" optional:"" help:"Display content to scroll"`14 ShowLineNumbers bool `help:"Show line numbers" default:"true"`15 LineNumberStyle style.Styles `embed:"" prefix:"line-number." help:"Style the line numbers" set:"defaultForeground=237" envprefix:"GUM_PAGER_LINE_NUMBER_"`

feat(pager): make --soft-wrap the defaultCarlos Alexandro Beckerbefore adoptionc25be3c

line 16why, one step back
16 SoftWrap bool `help:"Soft wrap lines" default:"true" negatable:""`

feat(deps): bump github.com/charmbracelet/bubbletea from 0.27.0 to 1.0.0 (#661)dependabot[bot]before adoption6837ed2

lines 17–18why, one step back
17 MatchStyle style.Styles `embed:"" prefix:"match." help:"Style the matched text" set:"defaultForeground=212" set:"defaultBold=true" envprefix:"GUM_PAGER_MATCH_"` //nolint:staticcheck
18 MatchHighlightStyle style.Styles `embed:"" prefix:"match-highlight." help:"Style the matched highlight text" set:"defaultForeground=235" set:"defaultBackground=225" set:"defaultBold=true" envprefix:"GUM_PAGER_MATCH_HIGH_"` //nolint:staticcheck

fix(choose,confirm,file,filter,input,pager,spin): timeout default unit (#724)Carlos Alexandro Beckerbefore adoption098d09a

line 19why, one step back
19 Timeout time.Duration `help:"Timeout until command exits" default:"0s" env:"GUM_PAGER_TIMEOUT"`

fix(pager): use help bubble (#748)Carlos Alexandro Beckerbefore adoption2e2b020

lines 20–22why, one step back
20
21 // Deprecated: this has no effect anymore.22 HelpStyle style.Styles `embed:"" prefix:"help." help:"Style the help text" set:"defaultForeground=241" envprefix:"GUM_PAGER_HELP_" hidden:""`

feat(deps): bump github.com/charmbracelet/bubbletea from 0.27.0 to 1.0.0 (#661)dependabot[bot]before adoption6837ed2

line 23why, one step back
23}