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

Function selectionKeyForItem

packages/app-core/src/components/Sidebar.tsx:281–285  ·  view source on GitHub ↗
(item: SidebarSelectionItem)

Source from the content-addressed store, hash-verified

279}
280
281function selectionKeyForItem(item: SidebarSelectionItem): string {
282 return item.kind === "note"
283 ? noteSelectionKey(item.path)
284 : folderSelectionKey(item.folder, item.subpath);
285}
286
287function parseSelectionKey(key: string): SidebarSelectionItem | null {
288 if (key.startsWith("note:")) {

Callers 1

SidebarFunction · 0.85

Calls 2

noteSelectionKeyFunction · 0.85
folderSelectionKeyFunction · 0.85

Tested by

no test coverage detected