panes

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	HistoryPane = tview.NewList()
	History     = &history.History{}
)
View Source
var (
	InputPane = tview.NewTextView()
	InputText *internal.Input
)
View Source
var (
	ModelList = tview.NewList()
	Selected  *internal.Model
)
View Source
var (
	OutputPane   *tview.TextView
	OutputText   = &internal.Output{}
	HelpCommands string
)
View Source
var (
	PromptPane = tview.NewTextArea()
	PromptText *internal.Prompt
)
View Source
var KeybindingsPane *tview.TextView
View Source
var Theme = internal.Theme{
	ActiveBorderCol:   tcell.ColorGreen,
	InactiveBorderCol: tcell.ColorWhite,
	SecondaryCol:      tcell.ColorBlue,
	TitleCol:          tcell.ColorYellow,
}

Functions

func ApplyFocusedStyle

func ApplyFocusedStyle(p tview.Primitive)

func ApplySystemNavConfig

func ApplySystemNavConfig(app *tview.Application)

func ApplyTheme

func ApplyTheme(pane tview.Primitive) tview.Primitive

applied when used in setting panes:

func ApplyUnfocusedStyle

func ApplyUnfocusedStyle(p tview.Primitive)

func CreateCredentialModal

func CreateCredentialModal(
	app *tview.Application,
	onSubmit func(password string),
) tview.Primitive

func CreateGroup1

func CreateGroup1(group2, group3 *tview.Flex) *tview.Flex

func CreateGroup2

func CreateGroup2(historyPane *tview.List, modelsPane *tview.List) *tview.Flex

func CreateGroup3

func CreateGroup3(group4 *tview.Flex, outputPane *tview.TextView) *tview.Flex

func CreateGroup4

func CreateGroup4(inputPane *tview.TextView, promptPane *tview.TextArea) *tview.Flex

func CreateMainFlex

func CreateMainFlex(group1 *tview.Flex, keybindingsPane *tview.TextView) *tview.Flex

func HandlePromptChange

func HandlePromptChange(
	query *internal.Query,
	clipboard *clipboard.Clipboard,
	app *tview.Application,
)

func InitHistoryPane

func InitHistoryPane()

func MarkdownToTview

func MarkdownToTview(md string, helpCommand *bool) string

func SelectModel

func SelectModel(model string)

func SetupGlobalKeybindings

func SetupGlobalKeybindings(app *tview.Application)

SetupGlobalKeybindings sets up global keybindings to focus on each pane.

func SetupMainUILayout

func SetupMainUILayout(app *tview.Application)

func StartClipboardMonitoring

func StartClipboardMonitoring(app *tview.Application)

func UpdateInputPane

func UpdateInputPane()

func UpdateOutputPane

func UpdateOutputPane()

func UpdatePromptPane

func UpdatePromptPane()

Types

This section is empty.

Jump to

Keyboard shortcuts

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