Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrBadTextObject error = errors.New("bad text object")
Functions ¶
func NewInsertMode ¶
func NewNormalMode ¶
func NewVisualMode ¶
Types ¶
type CommandMode ¶
func NewCommandMode ¶
func NewCommandMode(editor *editor.Editor, mode editor.Mode) CommandMode
func (CommandMode) CursorPosition ¶
func (m CommandMode) CursorPosition() (int, int)
func (CommandMode) Draw ¶
func (m CommandMode) Draw()
func (CommandMode) Enter ¶
func (m CommandMode) Enter(e *editor.Editor)
func (CommandMode) Exit ¶
func (m CommandMode) Exit()
func (CommandMode) NeedsCursor ¶
func (m CommandMode) NeedsCursor() bool
func (CommandMode) OnKey ¶
func (m CommandMode) OnKey(ev *termbox.Event)
type SearchMode ¶
func NewSearchMode ¶
func NewSearchMode(editor *editor.Editor, mode editor.Mode) SearchMode
func (SearchMode) CursorPosition ¶
func (m SearchMode) CursorPosition() (int, int)
func (SearchMode) Draw ¶
func (m SearchMode) Draw()
func (SearchMode) Enter ¶
func (m SearchMode) Enter(e *editor.Editor)
func (SearchMode) Exit ¶
func (m SearchMode) Exit()
func (SearchMode) NeedsCursor ¶
func (m SearchMode) NeedsCursor() bool
func (SearchMode) OnKey ¶
func (m SearchMode) OnKey(ev *termbox.Event)
type TextObjectMode ¶
type TextObjectMode struct {
// contains filtered or unexported fields
}
func NewTextObjectMode ¶
func (*TextObjectMode) Enter ¶
func (m *TextObjectMode) Enter(e *editor.Editor)
func (*TextObjectMode) Exit ¶
func (m *TextObjectMode) Exit()
func (*TextObjectMode) OnKey ¶
func (m *TextObjectMode) OnKey(ev *termbox.Event)
type WindowMode ¶
type WindowMode struct {
// contains filtered or unexported fields
}
func NewWindowMode ¶
func NewWindowMode(editor *editor.Editor, count int) WindowMode
func (WindowMode) Enter ¶
func (m WindowMode) Enter(e *editor.Editor)
func (WindowMode) Exit ¶
func (m WindowMode) Exit()
func (WindowMode) OnKey ¶
func (m WindowMode) OnKey(ev *termbox.Event)
Click to show internal directories.
Click to hide internal directories.