history

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Cmd     string
	When    int64
	Paths   []string
	CmdLine int
}

Entry represents a single command from Fish shell history

func (Entry) GeneratePreview

func (e Entry) GeneratePreview(all []Entry, idx, width, height int) string

GeneratePreview generates a preview of the history entry for the TUI preview window

type Parser

type Parser struct {
	Path string // history file path
}

Parser reads and parses Fish shell history

func NewParser

func NewParser() *Parser

NewParser returns a Parser with the default Fish history file path

func (*Parser) Parse

func (p *Parser) Parse() []Entry

Parse reads and parses the Fish shell history file

Jump to

Keyboard shortcuts

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