tui

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(history, snippets []store.Entry, histStore, snippetStore *store.Store) (string, error)

Run はTUIを起動し、選択されたコンテンツを返す

func RunInput

func RunInput() (string, error)

RunInput はテキスト入力TUIを起動し、入力されたテキストを返す

Types

type Item

type Item struct {
	Entry  store.Entry
	Source Source
}

Item はTUI表示用エントリ(種別付き)

type Source

type Source int

Source はエントリの種別を表す

const (
	SourceHistory Source = iota
	SourceSnippet
)

Jump to

Keyboard shortcuts

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