Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/codexu/note-gen
/ functions
Functions
2,812 in github.com/codexu/note-gen
⨍
Functions
2,812
◇
Types & classes
545
↓ 2 callers
Function
ensureCollectionPathExists
( config: WebDAVConfig, collectionPath: string, proxy?: Proxy )
src/lib/sync/webdav.ts:307
↓ 2 callers
Function
ensureDirectoryExists
(filePath: string)
src/lib/sync/auto-sync.ts:467
↓ 2 callers
Function
ensureExtension
(path: string, extension: string)
src/app/core/main/editor/markdown/markdown-export.ts:263
↓ 2 callers
Function
ensureFileTreeLoaded
()
src/app/core/layout.tsx:189
↓ 2 callers
Function
escapeHtml
(value: string)
src/app/core/main/editor/markdown/markdown-export.ts:267
↓ 2 callers
Function
expandWithSentenceWindow
* 扩展检索结果的句子窗口 * 为每个匹配的 chunk 获取同一文件中相邻的 chunk,提供更完整的上下文 * * @param results 原始检索结果 * @param windowSize 窗口大小(前后各取 N 个 chunk) * @returns 扩展后的检索结果
src/lib/rag.ts:353
↓ 2 callers
Function
exportMarkdownSource
( format: MarkdownExportFormat, source: MarkdownExportSource, options?: MarkdownExportOptions, )
src/app/core/main/editor/markdown/markdown-export.ts:694
↓ 2 callers
Function
extractFromContent
(content: string)
src/components/ui/agent-plan.tsx:610
↓ 2 callers
Function
extractSingleLineReplacement
(content: string)
src/lib/agent/runtime.ts:387
↓ 2 callers
Function
extractSkillIdFromPath
(path: string)
src/lib/skills/utils.ts:124
↓ 2 callers
Method
fail
(error: Error)
src/lib/ai/tauri-client.ts:74
↓ 2 callers
Function
fetchAi
( text: string, modelType?: string, messages?: OpenAI.Chat.ChatCompletionMessageParam[] )
src/lib/ai/chat.ts:10
↓ 2 callers
Function
filterItems
(items: SlashCommandItem[], query: string)
src/app/core/main/editor/markdown/slash-command/suggestion.tsx:350
↓ 2 callers
Function
filterSyncData
( data: T, options: SyncExclusionOptions = {} )
src/config/sync-exclusions.ts:130
↓ 2 callers
Function
findExactMatches
* 在文本中查找所有精确匹配项
src/lib/search-utils.ts:26
↓ 2 callers
Function
findFolderInTree
(path: string, tree: DirTree[])
src/stores/article.ts:101
↓ 2 callers
Function
findFuzzyMatches
* 在文本中查找模糊匹配项(分词匹配)
src/lib/search-utils.ts:54
↓ 2 callers
Function
formatConfirmationPreview
( toolName: string, params: Record<string, unknown> )
src/lib/agent/tool-confirmation-display.ts:147
↓ 2 callers
Function
formatDate
(timestamp: number | null)
src/app/core/main/editor/unsupported-file.tsx:86
↓ 2 callers
Function
formatTime
(time: number)
src/components/audio-player.tsx:90
↓ 2 callers
Function
formatTraceDetail
(value: unknown)
src/app/core/main/chat/agent-run-timeline.tsx:99
↓ 2 callers
Function
generateCopyFoldername
(parentPath: string, originalName: string)
src/lib/default-filename.ts:103
↓ 2 callers
Function
generateHighlight
* 生成高亮文本片段
src/lib/search-utils.ts:125
↓ 2 callers
Function
generateRFC3339Timestamp
* 生成 RFC3339 格式的时间戳 * 使用 UTC 时间,避免时区问题
src/lib/event-report.ts:71
↓ 2 callers
Function
getActiveFilePathForTab
(tab?: OpenTabInfo | null)
src/stores/article.ts:96
↓ 2 callers
Function
getActualRepoName
( type: 'sync' | 'image', platform: 'github' | 'gitee' | 'gitlab' | 'gitea' )
src/lib/sync/repo-utils.ts:10
↓ 2 callers
Function
getAllChats
()
src/db/chats.ts:206
↓ 2 callers
Function
getAutoDataSyncLastCompletedAt
(store: Store)
src/lib/sync/auto-data-sync-queue.ts:1930
↓ 2 callers
Function
getCachedAppDataDir
()
src/lib/utils.ts:25
↓ 2 callers
Function
getCachedProviderTemplates
()
src/lib/ai/provider-templates-runtime.ts:151
↓ 2 callers
Function
getChatsAfterLastClear
(chats: T[])
src/lib/ai/history-messages.ts:16
↓ 2 callers
Function
getChatsByConversation
(conversationId: number)
src/db/chats.ts:196
↓ 2 callers
Function
getCondensableChats
* 获取可压缩的 AI 消息(排除用户消息和已压缩的) * 规则: * - 用户消息永不压缩 * - 最新的 N 条 AI 消息不压缩 * - 已有摘要的消息不重复压缩
src/lib/ai/condense.ts:17
↓ 2 callers
Function
getContextForQuery
(keywords: Keyword[])
src/lib/rag.ts:794
↓ 2 callers
Function
getContextForQueryInFolder
( keywords: Keyword[], folderPath: string )
src/lib/rag.ts:1394
↓ 2 callers
Function
getCurrentProviderDisplay
()
src/components/title-bar-toolbars/sync-toggle.tsx:524
↓ 2 callers
Function
getCurrentTagId
* 获取当前选中的标签ID * 如果用户没有明确指定标签,使用当前选中的标签
src/lib/agent/tools/mark-tools.ts:9
↓ 2 callers
Function
getErrorDescription
(error: unknown)
src/app/core/setting/about/updater.tsx:103
↓ 2 callers
Function
getErrorMessage
(value: unknown)
src/components/console-filter.tsx:22
↓ 2 callers
Function
getExplicitTargetFilePath
(userInput: string)
src/lib/agent/runtime.ts:179
↓ 2 callers
Function
getExtension
(filePath: string)
src/lib/skills/runtime.ts:72
↓ 2 callers
Function
getExtension
(fileName: string)
src/app/core/main/chat/chat-input.tsx:71
↓ 2 callers
Function
getFileMtime
(filePath: string, baseDir?: BaseDirectory)
src/lib/skills/runtime.ts:120
↓ 2 callers
Function
getFilePath
* 根据DirTree项获取完整文件路径
src/lib/rag.ts:654
↓ 2 callers
Function
getFilePathFromFileUrl
(href: string)
src/app/core/main/editor/markdown/tiptap-editor.tsx:233
↓ 2 callers
Function
getFileSelectionEntries
(tree: DirTree[], paths: string[])
src/app/core/main/file/file-selection.ts:53
↓ 2 callers
Function
getFileUrlsFromDataTransfer
(dataTransfer: DataTransfer)
src/app/core/main/editor/markdown/tiptap-editor.tsx:405
↓ 2 callers
Function
getGiteaBranch
* 获取 Gitea 分支配置
src/lib/sync/auto-sync.ts:52
↓ 2 callers
Function
getGitlabApiBaseUrl
()
src/components/title-bar-toolbars/sync-toggle.tsx:70
↓ 2 callers
Function
getGitlabBranch
* 获取 GitLab 分支配置
src/lib/sync/auto-sync.ts:44
↓ 2 callers
Function
getHeadingIcon
(level: number)
src/app/core/main/editor/markdown/outline.tsx:66
↓ 2 callers
Function
getImageDimensionFromElement
(element: HTMLElement, name: 'width' | 'height')
src/app/core/main/editor/markdown/tiptap-editor.tsx:522
↓ 2 callers
Function
getImageExtension
(path: string, bytes: Uint8Array)
src/app/core/main/mark/control-image.tsx:128
↓ 2 callers
Function
getImageRecordDisplayText
( mark: Pick<Mark, 'type' | 'content' | 'desc'>, labels: ImageRecordStatusLabels, )
src/app/core/main/mark/image-record-status.ts:50
↓ 2 callers
Function
getImageRecordStatus
( mark: Pick<Mark, 'type' | 'content' | 'desc'>, labels: ImageRecordStatusLabels, )
src/app/core/main/mark/image-record-status.ts:20
↓ 2 callers
Function
getImageSrcString
(src: LocalImageProps['src'])
src/components/local-image.tsx:14
↓ 2 callers
Function
getInitialSyncChoiceKey
(platform: SyncPlatform)
src/app/core/setting/sync/page.tsx:153
↓ 2 callers
Function
getInitialSyncChoiceKey
(platform: SyncPlatform)
src/app/mobile/setting/pages/sync/page.tsx:122
↓ 2 callers
Function
getInspirationModelConfig
* 获取灵感模型配置 * @returns 灵感模型配置,如果未配置则返回 null
src/lib/ai/placeholder.ts:14
↓ 2 callers
Function
getInstalledOcrProviders
()
src/lib/ocr-packages.ts:22
↓ 2 callers
Function
getLineHeight
(textSize: string)
src/app/core/main/mark/mark-item.tsx:50
↓ 2 callers
Function
getLineHeightRem
(textSize: string)
src/app/core/main/mark/mark-item.tsx:61
↓ 2 callers
Function
getLocalRecordedSha
(filePath: string)
src/lib/sync/auto-sync.ts:60
↓ 2 callers
Method
getLocalSha
* 获取本地文件 SHA
src/lib/sync/sync-manager.ts:201
↓ 2 callers
Function
getMarkImageSrc
(mark: Mark)
src/app/mobile/record/mobile-record-stream.tsx:35
↓ 2 callers
Function
getMarkListItemContent
(mark: Mark)
src/app/core/main/mark/mark-list-item-content.tsx:59
↓ 2 callers
Function
getMarkPreview
(mark: Mark)
src/app/mobile/record/mobile-record-stream.tsx:28
↓ 2 callers
Function
getMarkTypeChipClasses
(type: Mark["type"], active: boolean)
src/app/core/main/mark/mark-type-meta.ts:50
↓ 2 callers
Function
getMarkdownDirSegments
(markdownPath: string)
src/lib/markdown-image-path.ts:32
↓ 2 callers
Function
getMarkdownExportBaseName
(filePath?: string)
src/app/core/main/editor/markdown/markdown-export.ts:255
↓ 2 callers
Function
getMarkdownFilesForFolder
(folderPath: string)
src/lib/agent/tools/folder-tools.ts:8
↓ 2 callers
Function
getNodeByPath
(tree: DirTree[], path: string)
src/app/mobile/writing/browser-utils.ts:16
↓ 2 callers
Function
getOnboardingSpotlightTarget
(step: 'create-record' | 'organize-note' | 'ai-polish')
src/app/core/main/editor/empty-state-actions.ts:44
↓ 2 callers
Function
getParentKey
(key: string)
src/lib/sync/webdav.ts:215
↓ 2 callers
Function
getPathAfterMove
(path: string, sourcePath: string, targetPath: string)
src/app/core/main/file/file-dnd.ts:115
↓ 2 callers
Function
getPathInsideRoot
(path: string, root: string)
src/app/core/main/editor/markdown/tiptap-editor.tsx:353
↓ 2 callers
Function
getPathInsideRoot
(path: string, root: string)
src/app/core/main/editor/markdown/slash-command/suggestion.tsx:174
↓ 2 callers
Function
getPathName
(path: string)
src/app/core/main/editor/markdown/slash-command/suggestion.tsx:83
↓ 2 callers
Function
getPathPriority
(path: string)
src/app/core/main/editor/empty-state-actions.ts:85
↓ 2 callers
Function
getPendingQuoteIdentity
(quote: PendingQuote | null)
src/stores/chat.ts:29
↓ 2 callers
Function
getPerfNow
()
src/lib/sync/sync-push-queue.ts:57
↓ 2 callers
Function
getPerfNow
()
src/app/core/main/editor/markdown/sync/sync-button.tsx:68
↓ 2 callers
Function
getRecordIdFromTabPath
(path: string)
src/app/core/main/mark/mark-record-tab.ts:23
↓ 2 callers
Function
getRemoteMetaDecision
( store: Store, remoteMeta: AutoDataSyncRemoteMeta, currentDeviceId?: string )
src/lib/sync/auto-data-sync-queue.ts:1936
↓ 2 callers
Function
getRepoName
()
src/app/core/setting/sync/github-sync.tsx:39
↓ 2 callers
Function
getRepoName
()
src/app/core/setting/sync/gitlab-sync.tsx:46
↓ 2 callers
Function
getRepoName
()
src/app/core/setting/sync/gitea-sync.tsx:47
↓ 2 callers
Function
getRepoName
()
src/app/core/setting/sync/gitee-sync.tsx:39
↓ 2 callers
Function
getRerankModelInfo
()
src/lib/ai/embedding.ts:65
↓ 2 callers
Function
getResultTone
(item: EnhancedSearchResult)
src/components/search-dialog.tsx:129
↓ 2 callers
Function
getS3Config
* 获取 S3 配置
src/lib/sync/sync-push-queue.ts:22
↓ 2 callers
Function
getScrollContainer
(editor: Editor)
src/app/core/main/editor/markdown/ai-suggestion-floating.tsx:26
↓ 2 callers
Function
getSelectedServerTools
()
src/lib/mcp/tools.ts:8
↓ 2 callers
Function
getSelectedText
(editor: Editor)
src/app/core/main/editor/markdown/bubble-menu.tsx:61
↓ 2 callers
Function
getShortcutConflict
(shortcuts: EditorShortcut[], id: EditorShortcutCommandId, value: string)
src/lib/editor-shortcut-utils.ts:194
↓ 2 callers
Function
getSimilarDocuments
( queryEmbedding: number[], limit: number = 5, threshold: number = 0.7 )
src/db/vector.ts:192
↓ 2 callers
Function
getStore
()
src/lib/ocr-packages.ts:18
↓ 2 callers
Function
getStoreBackedEditorContent
()
src/lib/agent/tools/editor-tools.ts:35
↓ 2 callers
Function
getStoredFileName
(path: string)
src/db/marks.ts:28
↓ 2 callers
Function
getStringArg
(args: Record<string, unknown>, key: string)
src/lib/agent/runtime.ts:228
← previous
next →
501–600 of 2,812, ranked by callers