history

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GeneratePreview

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

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

func GetPath

func GetPath() string

GetPath returns the path to the Fish shell history file

Types

type Entry

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

Entry represents a single command from Fish shell history

func Parse

func 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