Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EvtBufferSwitched ¶
type EvtBufferSwitched string
type Model ¶
type Model struct { Buffers buffer.LinkedList // Linked list containing all buffers as displayed in the bufferline CurBuf *buffer.Buffer // Currently active buffer Focused bool // If focused, we react to events Height, Width int // Size of the textarea Viewport viewport.Model // Scrollable viewport }
func (*Model) CurBufPath ¶
CurBufPath returns the path of the currently active buffer
func (*Model) OpenBuffer ¶
OpenBuffer opens a new buffer for editing. If the buffer is already opened in one of our tabs, we just switch to the tab.
func (*Model) SwitchBuffer ¶
SwitchBuffer tries to switch to the given buffer. Returns false if buffer doesn't exist
Click to show internal directories.
Click to hide internal directories.