Documentation
¶
Index ¶
- func EditText(initialContent, title string) (string, bool, error)
- func EditWithExternalEditor(initialContent string) (string, error)
- func SimpleEditText(initialContent string) (string, bool, error)
- type Editor
- type Prompter
- func (p *Prompter) AskCategory() (models.Category, error)
- func (p *Prompter) AskProgramTitle() (string, error)
- func (p *Prompter) AskResearchTopic() (string, error)
- func (p *Prompter) AskSatisfaction() (int, error)
- func (p *Prompter) AskString() (string, error)
- func (p *Prompter) CheckForQuit(input string) bool
- func (p *Prompter) EditEntry(entry *models.Entry) error
- func (p *Prompter) ShowSealMessage(satisfaction int)
- type SimpleEditor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EditWithExternalEditor ¶
EditWithExternalEditor opens the given text in an external editor
Types ¶
type Editor ¶
type Editor struct {
// contains filtered or unexported fields
}
Editor provides a terminal-based text editor using tview
type Prompter ¶
type Prompter struct {
// contains filtered or unexported fields
}
Prompter handles interactive CLI prompts
func (*Prompter) AskCategory ¶
AskCategory prompts the user to select a category
func (*Prompter) AskProgramTitle ¶
AskProgramTitle prompts for what program was written
func (*Prompter) AskResearchTopic ¶
AskResearchTopic prompts for what was researched
func (*Prompter) AskSatisfaction ¶
AskSatisfaction prompts for satisfaction level (1-5)
func (*Prompter) CheckForQuit ¶
CheckForQuit checks if input indicates a desire to quit
func (*Prompter) EditEntry ¶
EditEntry prompts the user to edit the entry content interactively with a TUI editor
func (*Prompter) ShowSealMessage ¶
ShowSealMessage displays the seal's encouragement message
type SimpleEditor ¶
type SimpleEditor struct {
// contains filtered or unexported fields
}
SimpleEditor is a basic console-based text editor
func NewSimpleEditor ¶
func NewSimpleEditor(initialContent string) (*SimpleEditor, error)
NewSimpleEditor creates a new SimpleEditor with the initial content