type Edit = object line: Cursor kind: EditKind text: string