statusandprompt

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PasteboardProvider added in v0.4.0

type PasteboardProvider interface {
	ReadText() (string, bool)
}

type StatusAndPrompt

type StatusAndPrompt struct {
	// contains filtered or unexported fields
}

StatusAndPrompt is a resizing model which displays a submodel and a status bar. When the start prompt event is received, focus will be torn away and the user will be given a prompt the enter text.

func New

func New(model layout.ResizingModel, pasteboardProvider PasteboardProvider, initialMsg string, style Style) *StatusAndPrompt

func (*StatusAndPrompt) InPrompt

func (s *StatusAndPrompt) InPrompt() bool

func (*StatusAndPrompt) Init

func (s *StatusAndPrompt) Init() tea.Cmd

func (*StatusAndPrompt) Resize

func (s *StatusAndPrompt) Resize(w, h int) layout.ResizingModel

func (*StatusAndPrompt) Update

func (s *StatusAndPrompt) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*StatusAndPrompt) View

func (s *StatusAndPrompt) View() string

type Style

type Style struct {
	ModeLine lipgloss.Style
}

Jump to

Keyboard shortcuts

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