Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ZenNotes/zennotes
/ functions
Functions
3,508 in github.com/ZenNotes/zennotes
⨍
Functions
3,508
◇
Types & classes
376
↓ 4 callers
Function
serializeCsv
(rows: string[][])
packages/shared-domain/src/database-csv.ts:92
↓ 4 callers
Function
sessionStatusPayload
(authenticated bool, cfg config.Config)
apps/server/internal/httpserver/security.go:392
↓ 4 callers
Function
setPaneMode
(mode: 'edit' | 'split' | 'preview')
packages/app-core/src/components/Editor.tsx:794
↓ 4 callers
Function
setWindowZoom
( win: BrowserWindow | null | undefined, factor: number )
apps/desktop/src/main/index.ts:790
↓ 4 callers
Function
shouldDeferEditorHydration
( showEditor: boolean, mode: string, bodyLength: number, threshold: number )
packages/app-core/src/lib/editor-hydration.ts:6
↓ 4 callers
Function
shouldProgressivelyRenderEntries
(entries: TreeRenderEntry[])
packages/app-core/src/components/Sidebar.tsx:3458
↓ 4 callers
Function
slugifyTemplateName
(name: string)
packages/shared-domain/src/template-files.ts:59
↓ 4 callers
Function
sortByFileOrder
Order tasks by their note's line order — grouped by note (path), then by * task index within the note. The note's markdown is the single source of
packages/app-core/src/lib/tasks-filter.ts:68
↓ 4 callers
Function
splitFolderPath
(spec: string)
apps/desktop/src/cli/commands/folders.ts:24
↓ 4 callers
Function
splitRow
Split one `| a | b |` row into trimmed, unescaped cell strings. Honors * `\|` (escaped pipe) and `\\` so cells can contain literal pipes.
packages/app-core/src/lib/markdown-table.ts:73
↓ 4 callers
Function
statusChipClass
(tone: 'ok' | 'warn' | 'off')
packages/app-core/src/components/SettingsModal.tsx:5600
↓ 4 callers
Function
stepDiagramZoom
(current: number, direction: 1 | -1)
packages/app-core/src/lib/diagram-pan-zoom.ts:21
↓ 4 callers
Function
stepVisible
Move the cursor over the visible list, skipping separators and * disabled rows. Wraps at both ends.
packages/app-core/src/components/ContextMenu.tsx:263
↓ 4 callers
Function
stripCodeContent
stripCodeContent blanks fenced and inline code so the tag/link/excerpt scanners never read code as content. Fence detection is line-based and indentat
apps/server/internal/vault/parse.go:43
↓ 4 callers
Function
takeTaskLineAtIndex
( markdown: string, taskIndex: number )
packages/shared-domain/src/tasklists.ts:242
↓ 4 callers
Function
tasks
(body: string)
apps/desktop/src/main/tasks-domain.test.ts:17
↓ 4 callers
Function
tasksDueOn
(tasks: VaultTask[], iso: string)
packages/shared-domain/src/tasks.ts:361
↓ 4 callers
Function
toggleCodeBlockFold
(button: HTMLButtonElement)
packages/app-core/src/lib/code-block-copy.ts:62
↓ 4 callers
Function
tomlValue
Render a single TOML value (basic string / int / float / bool).
apps/desktop/src/main/app-config.ts:362
↓ 4 callers
Function
treeRenderEntryPath
(entry: TreeRenderEntry)
packages/app-core/src/components/Sidebar.tsx:3465
↓ 4 callers
Function
triggerSnippet
(state: EditorState, key: string)
packages/app-core/src/lib/cm-markdown-snippets.test.ts:34
↓ 4 callers
Function
truncate
(value: string, max: number)
apps/desktop/src/cli/format.ts:27
↓ 4 callers
Function
uniqueTitle
(dir: string, base: string)
apps/desktop/src/mcp/vault-ops.ts:578
↓ 4 callers
Function
updateState
(phase: AppUpdateState['phase'], overrides: Partial<AppUpdateState> = {})
packages/app-core/src/lib/app-update-state.test.ts:9
↓ 4 callers
Function
usePanelResize
( width: number, setWidth: (px: number) => void )
packages/app-core/src/lib/use-panel-resize.ts:9
↓ 4 callers
Function
vaultInfo
(root: string)
apps/desktop/src/main/vault.ts:1430
↓ 4 callers
Function
vimEnabled
True when the editor is in Vim mode — gates the table's modal (normal / * insert) keyboard navigation. With Vim off, cells stay plain contenteditabl
packages/app-core/src/lib/cm-table.ts:53
↓ 4 callers
Function
walk
( folder: NoteFolder, dirAbs: string, topAbs: string, isPrimaryRoot: boolean )
apps/desktop/src/mcp/vault-ops.ts:449
↓ 4 callers
Function
wheel
(viewport: HTMLElement, init: WheelEventInit)
packages/app-core/src/lib/inline-diagram-pan-zoom.test.ts:38
↓ 4 callers
Function
withGoEnv
(extraEnv = {})
tooling/scripts/go-env.mjs:5
↓ 4 callers
Function
wrapLink
(view: EditorView)
packages/app-core/src/lib/cm-format.ts:144
↓ 4 callers
Method
writeNoteComments
(relPath: string, comments: NoteCommentInput[])
packages/bridge-contract/src/bridge.ts:146
↓ 4 callers
Function
yamlScalar
(value: string)
packages/shared-domain/src/template-files.ts:129
↓ 3 callers
Method
CreateExcalidraw
CreateExcalidraw writes a new empty `.excalidraw` drawing under folder/subpath and returns its meta. Mirrors CreateNote but seeds an empty Excalidraw
apps/server/internal/vault/vault.go:1433
↓ 3 callers
Function
Disabled
Disabled returns a watcher that does no filesystem watching. It still supports Subscribe/Close so the rest of the server can treat it like a real watc
apps/server/internal/watcher/watcher.go:88
↓ 3 callers
Method
EnsureLayout
EnsureLayout creates the four top-level folders and seeds a welcome note if the vault is empty. Matches src/main/vault.ts ensureVaultLayout.
apps/server/internal/vault/vault.go:625
↓ 3 callers
Method
ListAssets
ListAssets walks the attachments directory.
apps/server/internal/vault/vault.go:972
↓ 3 callers
Method
ListFolders
ListFolders enumerates every non-root subdirectory under each top-level folder.
apps/server/internal/vault/vault.go:905
↓ 3 callers
Method
Router
()
apps/server/internal/httpserver/server.go:114
↓ 3 callers
Function
addPath
(path: string | null | undefined)
packages/app-core/src/lib/sidebar-progressive.ts:44
↓ 3 callers
Function
addRow
(doc: DatabaseDoc)
packages/app-core/src/lib/database-cells.ts:83
↓ 3 callers
Function
addTabToLeaf
(l: PaneLeaf, path: string)
packages/app-core/src/store.ts:2968
↓ 3 callers
Function
alertEditorError
* Report an ex-command error as a non-blocking, in-editor notification — the * same red bottom-of-editor message codemirror-vim uses for its own erro
packages/app-core/src/components/Editor.tsx:302
↓ 3 callers
Function
alignItem
( label: string, align: ColumnAlign, col: number, model: MarkdownTable, apply: TableMenuRequest['app
packages/app-core/src/lib/cm-table-menu.ts:231
↓ 3 callers
Function
apply
(next: string)
packages/app-core/src/components/SettingsModal.tsx:4106
↓ 3 callers
Function
applyHighlight
(view: EditorView, action: HighlightColorId | 'remove')
packages/app-core/src/lib/cm-highlight.ts:76
↓ 3 callers
Function
applyLightExportTheme
The clean default: a light theme on a white page, best for printing.
apps/desktop/src/renderer/export-window.tsx:111
↓ 3 callers
Function
applyManagedStyle
* Create/update/remove a managed `<style>` by id. Empty `css` removes it. * Returns the element (or null when removed / no DOM).
packages/app-core/src/lib/custom-themes.ts:32
↓ 3 callers
Function
applyTable
(doc: string)
packages/app-core/src/lib/cm-slash-commands.test.ts:108
↓ 3 callers
Function
assertTrustedIpcEvent
(event: IpcMainEvent | IpcMainInvokeEvent)
apps/desktop/src/main/index.ts:762
↓ 3 callers
Function
assetUrl
(vaultRoot: string | null, assetPath: string)
packages/app-core/src/components/NoteList.tsx:1050
↓ 3 callers
Function
baseDoc
()
packages/app-core/src/store-database-sync.test.ts:12
↓ 3 callers
Function
boundedIndexCount
(renderedCount: number, totalCount?: number | null)
packages/app-core/src/lib/index-navigation.ts:1
↓ 3 callers
Function
candidateDirs
* Candidate install directories in priority order. The "user-friendly" * dirs come first so we never reach for sudo when something nearby * already
apps/desktop/src/main/cli-install.ts:99
↓ 3 callers
Function
checkForAppUpdates
()
apps/desktop/src/main/updater.ts:249
↓ 3 callers
Function
clamp
(value: number, min: number, max: number)
packages/app-core/src/components/HintOverlay.tsx:61
↓ 3 callers
Function
clamp
(value: number, min: number, max: number)
apps/desktop/src/main/index.ts:768
↓ 3 callers
Function
clampChannel
(n: number)
packages/shared-domain/src/custom-themes.ts:88
↓ 3 callers
Function
classifyImportedAsset
(filename: string)
apps/desktop/src/main/vault.ts:2843
↓ 3 callers
Function
clearEditorPendingVimStatus
(view: EditorView | null)
packages/app-core/src/lib/vim-nav.ts:118
↓ 3 callers
Function
clearSelection
()
packages/app-core/src/components/Sidebar.tsx:1468
↓ 3 callers
Method
cliGetStatus
()
packages/bridge-contract/src/bridge.ts:240
↓ 3 callers
Function
clickCommentAction
(el: HTMLElement | undefined, action: string)
packages/app-core/src/components/VimNav.tsx:1834
↓ 3 callers
Function
clientConfigPath
(descriptor: McpClientDescriptor)
apps/desktop/src/main/mcp-integrations.ts:94
↓ 3 callers
Function
cmdVaultList
(_vault: string, args: ParsedArgs)
apps/desktop/src/cli/commands/vault.ts:48
↓ 3 callers
Function
columnOrderKey
(groupBy: KanbanGroupBy, columnId: string)
packages/app-core/src/components/TasksKanban.tsx:234
↓ 3 callers
Function
commitTable
* Re-serialize `table` and write it over whichever Table node currently sits * under the widget's DOM. Resolving the range live (via posAtDOM) keeps
packages/app-core/src/lib/cm-table.ts:104
↓ 3 callers
Function
complete
(doc: string, source: Source = templateSlashCommandSource)
packages/app-core/src/lib/cm-slash-commands.test.ts:20
↓ 3 callers
Function
composePageBody
(doc: DatabaseDoc, row: DbRow, body: string)
packages/app-core/src/lib/database-cells.ts:62
↓ 3 callers
Function
configFilePath
()
apps/server/internal/config/config.go:57
↓ 3 callers
Function
copyCodeBlockToClipboard
(button: HTMLButtonElement)
packages/app-core/src/lib/code-block-copy.ts:53
↓ 3 callers
Function
copyToClipboard
(text: string)
packages/app-core/src/components/SettingsModal.tsx:4960
↓ 3 callers
Function
createCustomTheme
(input: { name?: string })
apps/desktop/src/main/custom-themes.ts:321
↓ 3 callers
Function
createFolder
( root: string, topFolder: NoteFolder, subpath: string )
apps/desktop/src/main/vault.ts:3358
↓ 3 callers
Function
createNote
( root: string, folder: NoteFolder, title?: string, subpath = '' )
apps/desktop/src/main/vault.ts:2997
↓ 3 callers
Function
currentIndex
()
packages/app-core/src/components/EditorSelectionToolbar.tsx:119
↓ 3 callers
Function
cursorState
The data-sidebar-idx of the currently vim-highlighted sidebar row (or null).
tooling/scripts/sidebar-vim-smoke.mjs:158
↓ 3 callers
Function
custom
(name: string, category: NoteTemplate['category'])
packages/app-core/src/lib/template-files.test.ts:97
↓ 3 callers
Function
databaseTitleFromTab
(path: string | null | undefined)
packages/shared-domain/src/databases.ts:251
↓ 3 callers
Function
dbPersistSidecar
(csvPath: string, sidecar: DatabaseSidecar)
apps/web/src/bridge/http-bridge.ts:741
↓ 3 callers
Function
decodeLocalAssetRequestPath
(url: string)
apps/desktop/src/main/index.ts:595
↓ 3 callers
Function
defaultTitle
()
apps/server/internal/vault/vault.go:2184
↓ 3 callers
Function
deleteColumn
(table: MarkdownTable, index: number)
packages/app-core/src/lib/markdown-table.ts:332
↓ 3 callers
Function
deleteRow
(doc: DatabaseDoc, rowId: string)
packages/app-core/src/lib/database-cells.ts:92
↓ 3 callers
Method
detachLocalWindow
(windowId: number, root: string)
apps/desktop/src/main/window-vaults.ts:150
↓ 3 callers
Function
diagramTabPath
(kind: DiagramTabKind, source: string)
packages/app-core/src/lib/diagram-tabs.ts:29
↓ 3 callers
Function
diagramTitleFromTabPath
(path: string | null | undefined)
packages/app-core/src/lib/diagram-tabs.ts:50
↓ 3 callers
Function
diagramZoomLabel
(zoom: number)
packages/app-core/src/lib/diagram-pan-zoom.ts:66
↓ 3 callers
Function
dispatchKeyboardContextMenu
(el: HTMLElement)
packages/app-core/src/lib/keyboard-context-menu.ts:8
↓ 3 callers
Function
dispatchOpenNoteRequest
(win: BrowserWindow, relPath: string)
apps/desktop/src/main/index.ts:309
↓ 3 callers
Function
drag
(view: EditorView, from: number, to: number)
packages/app-core/src/lib/cm-table.test.ts:323
↓ 3 callers
Method
duplicateAsset
(relPath: string)
packages/bridge-contract/src/bridge.ts:183
↓ 3 callers
Method
effectiveBrowseRoots
()
apps/server/internal/httpserver/browse_roots.go:45
↓ 3 callers
Method
effectiveScheme
effectiveScheme returns "https" if the request is genuinely on TLS or arrived through a trusted proxy that declares X-Forwarded-Proto: https. Untruste
apps/server/internal/httpserver/security.go:244
↓ 3 callers
Function
emptyExcalidrawDocument
()
packages/shared-domain/src/excalidraw.ts:32
↓ 3 callers
Function
endRow
()
packages/shared-domain/src/database-csv.ts:39
↓ 3 callers
Function
enhanceLocalAssetNodes
( root: HTMLElement, options: { vaultRoot: string | null | undefined notePath: string | null | und
packages/app-core/src/lib/local-assets.ts:353
↓ 3 callers
Function
ensureFolder
(subpath: string)
packages/app-core/src/components/Sidebar.tsx:3796
↓ 3 callers
Function
ensureLayerOrder
Keep the managed layers in cascade order at the end of <head>: active theme → * overrides → tweaks. Re-appending in this order (regardless of when e
packages/app-core/src/lib/custom-themes.ts:52
↓ 3 callers
Function
escapeCell
(text: string)
packages/app-core/src/lib/markdown-table.ts:113
← previous
next →
801–900 of 3,508, ranked by callers