Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Absolute ¶
type Absolute struct {
Offset int64
}
Absolute is the absolute position of the buffer.
type Event ¶
type Event struct { Type Type Range *Range Count int64 Rune rune CmdName string Bang bool Arg string Error error Mode mode.Mode Buffer *buffer.Buffer }
Event represents the event emitted by UI.
type Relative ¶
type Relative struct {
Offset int64
}
Relative is the relative position of the buffer.
type Type ¶
type Type int
Type ...
const ( Nop Type = iota Redraw CursorUp CursorDown CursorLeft CursorRight CursorPrev CursorNext CursorHead CursorEnd CursorGoto ScrollUp ScrollDown ScrollTop ScrollTopHead ScrollMiddle ScrollMiddleHead ScrollBottom ScrollBottomHead PageUp PageDown PageUpHalf PageDownHalf PageTop PageEnd WindowTop WindowMiddle WindowBottom JumpTo JumpBack DeleteByte DeletePrevByte Increment Decrement ShiftLeft ShiftRight SwitchFocus ShowBinary ShowDecimal StartInsert StartInsertHead StartAppend StartAppendEnd StartReplaceByte StartReplace ExitInsert Backspace Delete Rune Undo Redo StartVisual SwitchVisualEnd ExitVisual Copy Cut Copied Paste PastePrev Pasted StartCmdlineCommand StartCmdlineSearchForward StartCmdlineSearchBackward BackspaceCmdline DeleteCmdline DeleteWordCmdline ClearToHeadCmdline ClearCmdline ExitCmdline CompleteForwardCmdline CompleteBackCmdline ExecuteCmdline ExecuteSearch NextSearch PreviousSearch AbortSearch Edit Enew New Vnew Only Alternative Wincmd FocusWindowUp FocusWindowDown FocusWindowLeft FocusWindowRight FocusWindowTopLeft FocusWindowBottomRight FocusWindowPrevious MoveWindowTop MoveWindowBottom MoveWindowLeft MoveWindowRight Suspend Quit QuitAll QuitErr Write WriteQuit Info Error )
Event types
type VisualEnd ¶
type VisualEnd struct {
Offset int64
}
VisualEnd is the end position of visual selection.
type VisualStart ¶
type VisualStart struct {
Offset int64
}
VisualStart is the start position of visual selection.
Click to show internal directories.
Click to hide internal directories.