tui

package
v0.0.0-...-74056c7 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2025 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CURRENT_QUERY_FOR_HIGHLIGHTING string = ""
	SELECTED_COMMAND               string = ""
)
View Source
var (
	LAST_DISPATCHED_QUERY_ID        = 0
	LAST_DISPATCHED_QUERY_TIMESTAMP time.Time
	LAST_PROCESSED_QUERY_ID         = -1
)

Globally shared monotonically increasing IDs used to prevent race conditions in handling async queries. If the user types 'l' and then 's', two queries will be dispatched: One for 'l' and one for 'ls'. These counters are used to ensure that we don't process the query results for 'ls' and then promptly overwrite them with the results for 'l'.

Functions

func TuiQuery

func TuiQuery(ctx context.Context, shellName string, initialQueryArray []string) error

Types

type SelectStatus

type SelectStatus int64
const (
	NotSelected SelectStatus = iota
	Selected
	SelectedWithChangeDir
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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