Documentation
¶
Index ¶
- Variables
- func ApplyFocusedStyle(p tview.Primitive)
- func ApplySystemNavConfig(app *tview.Application)
- func ApplyTheme(pane tview.Primitive) tview.Primitive
- func ApplyUnfocusedStyle(p tview.Primitive)
- func CreateCredentialModal(app *tview.Application, onSubmit func(password string)) tview.Primitive
- func CreateGroup1(group2, group3 *tview.Flex) *tview.Flex
- func CreateGroup2(historyPane *tview.List, modelsPane *tview.List) *tview.Flex
- func CreateGroup3(group4 *tview.Flex, outputPane *tview.TextView) *tview.Flex
- func CreateGroup4(inputPane *tview.TextView, promptPane *tview.TextArea) *tview.Flex
- func CreateMainFlex(group1 *tview.Flex, keybindingsPane *tview.TextView) *tview.Flex
- func HandlePromptChange(query *internal.Query, clipboard *clipboard.Clipboard, app *tview.Application)
- func InitHistoryPane()
- func MarkdownToTview(md string, helpCommand *bool) string
- func SelectModel(model string)
- func SetupGlobalKeybindings(app *tview.Application)
- func SetupMainUILayout(app *tview.Application)
- func StartClipboardMonitoring(app *tview.Application)
- func UpdateInputPane()
- func UpdateOutputPane()
- func UpdatePromptPane()
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 ( 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 ApplySystemNavConfig ¶
func ApplySystemNavConfig(app *tview.Application)
func ApplyTheme ¶
applied when used in setting panes:
func ApplyUnfocusedStyle ¶
func CreateCredentialModal ¶
func CreateCredentialModal( app *tview.Application, onSubmit func(password string), ) tview.Primitive
func CreateGroup4 ¶
func CreateMainFlex ¶
func HandlePromptChange ¶
func InitHistoryPane ¶
func InitHistoryPane()
func MarkdownToTview ¶
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.
Click to show internal directories.
Click to hide internal directories.