Added mode line
Also rescanning will maintain the current query
This commit is contained in:
parent
54fab1b1c3
commit
809f9adfea
21 changed files with 197 additions and 72 deletions
|
|
@ -43,3 +43,8 @@ func Confirm(prompt string, onYes func() tea.Cmd) tea.Cmd {
|
|||
type MessageWithStatus interface {
|
||||
StatusMessage() string
|
||||
}
|
||||
|
||||
type MessageWithMode interface {
|
||||
MessageWithStatus
|
||||
ModeMessage() string
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,6 +10,9 @@ type ErrorMsg error
|
|||
// Message indicates that a message should be shown to the user
|
||||
type StatusMsg string
|
||||
|
||||
// ModeMessage indicates that the mode should be changed to the following
|
||||
type ModeMessage string
|
||||
|
||||
// PromptForInput indicates that the context is requesting a line of input
|
||||
type PromptForInputMsg struct {
|
||||
Prompt string
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue