☰
Index
Modules:
undo
,
undo/history
.
API symbols
applyOps:
history: proc applyOps(doc: JsonNode; ops: seq[JsonOp]): JsonNode
beginGroup:
history: proc beginGroup(h: HistoryManager)
canRedo:
history: proc canRedo(h: HistoryManager): bool
canUndo:
history: proc canUndo(h: HistoryManager): bool
close:
history: proc close(h: HistoryManager)
compact:
history: proc compact(h: HistoryManager)
ekDiff:
history: EntryKind.ekDiff
ekJson:
history: EntryKind.ekJson
ekJsonPatch:
history: EntryKind.ekJsonPatch
ekSnapshot:
history: EntryKind.ekSnapshot
endGroup:
history: proc endGroup(h: HistoryManager)
EntryKind:
history: enum EntryKind
HistoryContent:
history: object HistoryContent
HistoryEntry:
history: object HistoryEntry
HistoryError:
history: object HistoryError
HistoryManager:
history: type HistoryManager
jpoAdd:
history: JsonPatchOpKind.jpoAdd
jpoRemove:
history: JsonPatchOpKind.jpoRemove
jpoReplace:
history: JsonPatchOpKind.jpoReplace
jsonDiff:
history: proc jsonDiff(prevState, newState: JsonNode): tuple[fwd, bwd: seq[JsonOp]]
JsonOp:
history: object JsonOp
JsonPatchOpKind:
history: enum JsonPatchOpKind
newHistoryManager:
history: proc newHistoryManager(path: string; historyId: string; maxVersions: int = 0; autoGroupMs: int = 0; autoGroupMax: int = 64; cacheCapacity: int = 1024): HistoryManager
newInMemoryHistoryManager:
history: proc newInMemoryHistoryManager(historyId: string; maxVersions: int = 0; autoGroupMs: int = 0; autoGroupMax: int = 64): HistoryManager
NowFn:
history: type NowFn
peekRedo:
history: proc peekRedo(h: HistoryManager): Option[HistoryContent]
peekUndo:
history: proc peekUndo(h: HistoryManager): Option[HistoryContent]
pushDiff:
history: proc pushDiff(h: HistoryManager; offset, deletedLen: int; inserted: string)
pushJson:
history: proc pushJson(h: HistoryManager; data: JsonNode)
pushJsonDiff:
history: proc pushJsonDiff(h: HistoryManager; prevState, newState: JsonNode)
pushJsonPatch:
history: proc pushJsonPatch(h: HistoryManager; ops, inverse: seq[JsonOp])
pushSnapshot:
history: proc pushSnapshot(h: HistoryManager; content: string)
redo:
history: proc redo(h: HistoryManager): Option[HistoryContent]
restoreTo:
history: proc restoreTo(h: HistoryManager; pos: int)
setClock:
history: proc setClock(h: HistoryManager; fn: NowFn)
undo:
history: proc undo(h: HistoryManager): Option[HistoryContent]
undoJson:
history: proc undoJson(h: HistoryManager): Option[JsonNode]
undoText:
history: proc undoText(h: HistoryManager): Option[string]