Documentation ¶
Overview ¶
Package prompt implements prompt-related functionalities of the editor.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PromptInit ¶
PromptInit returns an initial value for $edit:prompt.
func RpromptInit ¶
RpromptInit returns an initial value for $edit:rprompt.
Types ¶
type Config ¶
type Config struct { Prompt eval.Callable Rprompt eval.Callable RpromptPersistent bool PromptsMaxWait float64 }
func (*Config) MakeMaxWaitChan ¶
MakeMaxWait makes a channel that sends the current time after $edit:-prompts-max-wait seconds if the time fits in a time.Duration value, or nil otherwise.
type Updater ¶
Updater manages the update of a prompt.
func NewUpdater ¶
NewUpdater creates a new Updater.
Click to show internal directories.
Click to hide internal directories.