compstore

package
v0.0.0-...-e19543c Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CacheCandidates

func CacheCandidates(candidates []compromise.Candidate) (e error)

func LoadCandidates

func LoadCandidates() (result []compromise.Candidate, e error)

Types

type Store

type Store struct {
	LastCommandLine           []string
	LastCursorIndex           int
	LastCompletionTime        time.Time
	CurrentCompletionTime     time.Time
	LastPwd                   string
	NumConsecutiveInvocations int
	IsDoublePress             bool
}

func Load

func Load() *Store

func UpdateForInvocation

func UpdateForInvocation(commandLine []string, cursorIndex int) *Store

func (*Store) LastCompletionAge

func (s *Store) LastCompletionAge() time.Duration

Jump to

Keyboard shortcuts

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