Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func CloseBuffer ¶
func DeleteLine ¶
func ShowPalette ¶ added in v0.1.1
Types ¶
type BaseComponent ¶
type BaseComponent struct {
// contains filtered or unexported fields
}
func (*BaseComponent) HandleEvent ¶
func (b *BaseComponent) HandleEvent(evt strife.StrifeEvent)
func (*BaseComponent) HasFocus ¶ added in v0.1.1
func (b *BaseComponent) HasFocus() bool
func (*BaseComponent) Resize ¶
func (b *BaseComponent) Resize(w, h int)
func (*BaseComponent) SetFocus ¶ added in v0.1.1
func (b *BaseComponent) SetFocus(focus bool)
func (*BaseComponent) SetPosition ¶
func (b *BaseComponent) SetPosition(x, y int)
func (*BaseComponent) Translate ¶
func (b *BaseComponent) Translate(x, y int)
type Buffer ¶
type Buffer struct { BaseComponent // contains filtered or unexported fields }
func NewBuffer ¶
func NewBuffer(conf *cfg.TomlConfig, buffOpts BufferConfig, parent *View, index int) *Buffer
func (*Buffer) HandleEvent ¶
func (b *Buffer) HandleEvent(evt strife.StrifeEvent)
type BufferAction ¶
type BufferAction struct {
// contains filtered or unexported fields
}
func NewBufferAction ¶ added in v0.1.1
func NewBufferAction(name string, proc func(*View) bool) BufferAction
type BufferConfig ¶ added in v0.1.1
type BufferConfig struct {
// contains filtered or unexported fields
}
type CommandPalette ¶
type CommandPalette struct { BaseComponent // contains filtered or unexported fields }
func NewCommandPalette ¶
func NewCommandPalette(conf cfg.TomlConfig, view *View) *CommandPalette
func (*CommandPalette) OnRender ¶
func (b *CommandPalette) OnRender(ctx *strife.Renderer)
func (*CommandPalette) OnUpdate ¶
func (b *CommandPalette) OnUpdate() bool
type View ¶
type View struct { BaseComponent // contains filtered or unexported fields }
View is an array of buffers basically.
func (*View) ChangeFocus ¶
func (*View) UnfocusBuffers ¶ added in v0.1.1
func (n *View) UnfocusBuffers()
Click to show internal directories.
Click to hide internal directories.