tui

package
v0.0.0-...-998d507 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const PADDED_NUM_ENTRIES = TABLE_HEIGHT * 5
View Source
const TABLE_HEIGHT = 20

Variables

View Source
var CURRENT_QUERY_FOR_HIGHLIGHTING string = ""
View Source
var LAST_DISPATCHED_QUERY_ID = 0

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'.

View Source
var LAST_DISPATCHED_QUERY_TIMESTAMP time.Time
View Source
var LAST_PROCESSED_QUERY_ID = -1
View Source
var SELECTED_COMMAND string = ""

Functions

func TuiQuery

func TuiQuery(ctx context.Context, shellName, initialQuery 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