Index
Modules:
minorg
,
src/config_utils
,
src/file_utils
,
src/log_utils
,
src/pd2norg
,
src/str_utils
,
src/utils
.
API symbols
`$`:
file_utils: proc `$`(path: Path): auto
`+`:
pd2norg: proc `+`(self, o: Coord): auto
`==`:
pd2norg: proc `==`(self, o: Coord): auto
addUniq:
utils: proc addUniq[T](a: var seq[T]; b: seq[T])
utils: proc addUniq[T](a: var seq[T]; b: T)
argsWithDefault:
utils: proc argsWithDefault[T](args: seq[T]; index: int; default: T): T
attachAttr:
pd2norg: proc attachAttr(s: string; attr: PDAttr; global: bool = true): string
bfsFileTree:
file_utils: proc bfsFileTree(rootDir: Path; filename: string; suffix: Option[string] = none(string)): Option[Path]
bootstrapCell:
pd2norg: proc bootstrapCell(self: Cell): string
c:
pd2norg: proc c(row, col: int): Coord
calcTableCellName:
pd2norg: proc calcTableCellName(coord: Coord): string
calcTableColumnName:
pd2norg: proc calcTableColumnName(num: int): string
chainReplace:
pd2norg: proc chainReplace(s: string; replaces: openArray[ReplacePair]): auto
compileDefinition:
pd2norg: proc compileDefinition(item: (seq[PDInline], seq[seq[PDBlock]]); indent: int = 0): string
Config:
config_utils: type Config
deleteIf:
utils: proc deleteIf[T](a: var seq[T]; i: int)
detectObsidianLinks:
pd2norg: proc detectObsidianLinks(strBlock: var string): seq[string]
detectObsidianTags:
pd2norg: proc detectObsidianTags(strBlock: var string): seq[string]
escapeBar:
pd2norg: proc escapeBar(text: string): string
escapeSpaces:
pd2norg: proc escapeSpaces(s: string): auto
f:
file_utils: template f(path: Path): auto
fillTable:
pd2norg: proc fillTable(rows: seq[PDRow]; colCount: int; startRow: int = 0): seq[Cell]
filterJoin:
pd2norg: proc filterJoin(self: openArray[string]; sep: string = " "): auto
findIf:
utils: proc findIf[T](s: seq[T]; pred: (T {.noSideEffect.} -> bool)): Option[T]
findSubstr:
utils: proc findSubstr(s: string; t: string; strFroms: seq[int]): bool
getConfig:
config_utils: proc getConfig(): auto
getFileContent:
file_utils: proc getFileContent(file: File): auto
file_utils: proc getFileContent(path: Option[Path]): auto
file_utils: proc getFileContent(path: Path): auto
getFirstEmpty:
pd2norg: proc getFirstEmpty(self: CellManager; coord: Coord): auto
getSomePath:
file_utils: proc getSomePath(path: string): auto
getValue:
pd2norg: proc getValue(self: CellManager; coord: Coord): auto
isAbstract:
utils: template isAbstract(): untyped
isJson:
file_utils: proc isJson(path: Path): auto
iterEnum:
pd2norg: proc iterEnum[T](arr: openArray[T]): seq[(int, T)]
joinSepLn:
str_utils: proc joinSepLn(arr: openArray[string]; sep = " "): auto
joinWithNewline:
pd2norg: proc joinWithNewline(strs: varargs[string, `$`]): auto
linkMaybeMergeable:
pd2norg: proc linkMaybeMergeable(tag: string; target: string): (bool, string)
logDebug:
log_utils: template logDebug(args: varargs[string, `$`])
logError:
log_utils: template logError(args: varargs[string, `$`])
logInfo:
log_utils: template logInfo(args: varargs[string, `$`])
logWarn:
log_utils: template logWarn(args: varargs[string, `$`])
lstrip:
pd2norg: proc lstrip(s: string; chars: set[char] = Whitespace): auto
mainExamples:
utils: macro mainExamples(body: untyped): untyped
mergeObsidianTags:
pd2norg: proc mergeObsidianTags(strBlock: var string): seq[string]
occupyCells:
pd2norg: proc occupyCells(self: CellManager; start: Coord; useRows, useCols: int)
parseHTML:
pd2norg: proc parseHTML(s: string): string
parseObsidianLink:
pd2norg: proc parseObsidianLink(link: string; workRootDir: Path): ObsLinkItem
parseTableAlignment:
pd2norg: proc parseTableAlignment(alignment: PDAlignment; col: int = -1; global: bool = false): string
parseTableBody:
pd2norg: proc parseTableBody(self: PDTableBody; colCount: int; startRow: int): string
parseTableCell:
pd2norg: proc parseTableCell(self: PDCell; useCoord: Coord): (Cell, int, int)
prepareOutFile:
file_utils: proc prepareOutFile(path: Option[Path]; force: bool = false): auto
file_utils: proc prepareOutFile(path: Path; force: bool = false): auto
rawEmbed:
pd2norg: proc rawEmbed(s: string; lang: string): string
rstrip:
pd2norg: proc rstrip(s: string; chars: set[char] = Whitespace): auto
setConfig:
config_utils: proc setConfig(new: Config)
setLogger:
log_utils: proc setLogger(lvl: Level; file: File = stderr)
setValue:
pd2norg: proc setValue(self: CellManager; coord: Coord; value: bool)
shiftSlice:
pd2norg: proc shiftSlice[T](self: Slice[T]; shift: T): auto
todo:
utils: template todo(): untyped
toSeq:
utils: proc toSeq[T](s: Slice[T]): seq[T]
toStr:
pd2norg: proc toStr(self: PDBlock; indent: int = 0): string
pd2norg: proc toStr(self: PDBlockBlockQuote; indent: int = 0): string
pd2norg: proc toStr(self: PDBlockBulletList; indent: int = 0): string
pd2norg: proc toStr(self: PDBlockCodeBlock; indent: int = 0): string
pd2norg: proc toStr(self: PDBlockDefinitionList; indent: int = 0): string
pd2norg: proc toStr(self: PDBlockDiv; indent: int = 0): string
pd2norg: proc toStr(self: PDBlockFigure; indent: int = 0): string
pd2norg: proc toStr(self: PDBlockHeader; indent: int = 0): string
pd2norg: proc toStr(self: PDBlockHorizontalRule; indent: int = 0): string
pd2norg: proc toStr(self: PDBlockLineBlock; indent: int = 0): string
pd2norg: proc toStr(self: PDBlockOrderedList; indent: int = 0): string
pd2norg: proc toStr(self: PDBlockPlain; indent: int = 0): string
pd2norg: proc toStr(self: PDBlockRawBlock; indent: int = 0): string
pd2norg: proc toStr(self: PDBlockTable; indent: int = 0): string
pd2norg: proc toStr(self: PDCaption; indent: int = 0): string
pd2norg: proc toStr(self: PDCitation): string
pd2norg: proc toStr(self: PDInline): string
pd2norg: proc toStr(self: PDInlineCite): string
pd2norg: proc toStr(self: PDInlineCode): string
pd2norg: proc toStr(self: PDInlineEmph): string
pd2norg: proc toStr(self: PDInlineLink): string
pd2norg: proc toStr(self: PDInlineMath): string
pd2norg: proc toStr(self: PDInlineNote): string
pd2norg: proc toStr(self: PDInlineQuoted): string
pd2norg: proc toStr(self: PDInlineRawInline): string
pd2norg: proc toStr(self: PDInlineSpace): string
pd2norg: proc toStr(self: PDInlineSpan): string
pd2norg: proc toStr(self: PDInlineStr): string
pd2norg: proc toStr(self: PDTarget): string
pd2norg: proc toStr(self: seq[PDBlock]; indent: int = 0): seq[string]
pd2norg: proc toStr(self: seq[PDInline]): string
unreachable:
utils: template unreachable(s: string): untyped