MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / noteFolderSubpath

Function noteFolderSubpath

packages/app-core/src/lib/vault-layout.ts:804–811  ·  view source on GitHub ↗
(
  note: Pick<NoteMeta, 'folder' | 'path'>,
  settings: VaultSettings | null | undefined
)

Source from the content-addressed store, hash-verified

802}
803
804export function noteFolderSubpath(
805 note: Pick<NoteMeta, 'folder' | 'path'>,
806 settings: VaultSettings | null | undefined
807): string {
808 const within = notePathWithinFolder(note.path, note.folder, settings)
809 const parts = within.split('/').filter(Boolean)
810 return parts.length > 1 ? parts.slice(0, -1).join('/') : ''
811}
812
813export function noteBelongsToFolderView(
814 note: Pick<NoteMeta, 'folder' | 'path'>,

Callers 14

BreadcrumbFunction · 0.90
folderLabelFunction · 0.90
defaultNewNoteTargetFunction · 0.90
SidebarFunction · 0.90
findTargetFunction · 0.90
buildTreeFunction · 0.90
folderLabelForFunction · 0.90
noteBelongsToFolderViewFunction · 0.85
classifyDateNoteFunction · 0.85

Calls 1

notePathWithinFolderFunction · 0.85

Tested by

no test coverage detected