Documentation ¶
Index ¶
- func Bindables(_ command.Commander, _ gxui.Driver, theme *basic.Theme) []bind.Bindable
- type Applier
- type History
- func (h *History) Apply(text.Editor) error
- func (h *History) Branches() uint
- func (h *History) FastForward(branch uint) text.Edit
- func (h *History) FileChanged(oldPath, newPath string)
- func (h *History) Init(text.Editor, []rune)
- func (h *History) Name() string
- func (h *History) OpNames() []string
- func (h *History) Rewind() text.Edit
- func (h *History) TextChanged(_ text.Editor, e text.Edit)
- type OnOpen
- type Redo
- type Undo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type History ¶
type History struct {
// contains filtered or unexported fields
}
History keeps track of change history for a file.
func (*History) Branches ¶
Branches returns the number of branches available to fast forward to at the current branch.
func (*History) FastForward ¶
FastForward moves h's state forward in the history, based on branch. To fast forward the most recent undo, run h.FastForward(h.Branches() - 1).
func (*History) FileChanged ¶
FileChanged updates the current history when the focused file is changed.
Click to show internal directories.
Click to hide internal directories.