Documentation
¶
Index ¶
- func Highlight(source, filename, themeName string) (string, string)
- type Model
- func (m Model) CopyFile() error
- func (m Model) CopyVisible() error
- func (m Model) FilePath() string
- func (m Model) GotoBottom() Model
- func (m Model) GotoTop() Model
- func (m Model) Init() tea.Cmd
- func (m Model) Language() string
- func (m Model) LineCount() int
- func (m Model) LoadFile(path string) Model
- func (m Model) SetSize(w, h int) Model
- func (m Model) SetTheme(theme string) Model
- func (m Model) ShowingLines() bool
- func (m Model) ToggleLineNumbers() Model
- func (m Model) ToggleWordWrap() Model
- func (m Model) Update(msg tea.Msg) (Model, tea.Cmd)
- func (m Model) View() string
- func (m Model) WordWrapEnabled() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
func (Model) CopyVisible ¶ added in v0.2.0
func (Model) GotoBottom ¶
func (Model) ShowingLines ¶
func (Model) ToggleLineNumbers ¶
func (Model) ToggleWordWrap ¶ added in v0.1.2
func (Model) WordWrapEnabled ¶ added in v0.1.2
Click to show internal directories.
Click to hide internal directories.