components

package
v0.0.0-...-3851b6f Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitChatHistory

func InitChatHistory(workingSession *types.WorkingSession) *tview.TextView

func RenderChatHistory

func RenderChatHistory(chatHistory *tview.TextView, messages []types.Message)

Types

type ContextBar

type ContextBar struct {
	*tview.TextView
}

func NewContextBar

func NewContextBar(workingFiles *[]types.WorkingFile) (contextBar *ContextBar)

func (ContextBar) Render

func (contextBar ContextBar) Render(wf []types.WorkingFile)

type InputArea

type InputArea struct {
	*tview.TextArea
}

func NewInputArea

func NewInputArea() *InputArea

func (*InputArea) SetInputText

func (input *InputArea) SetInputText(inputText string)

func (*InputArea) SetSubmitFunc

func (input *InputArea) SetSubmitFunc(submitFunc func(text string))

Ctrl+S to submit

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳