MCPcopy
hub / github.com/callumalpass/tasknotes / getLeaf

Method getLeaf

tests/__mocks__/obsidian.ts:455–460  ·  view source on GitHub ↗
(newLeaf: boolean = true)

Source from the content-addressed store, hash-verified

453 });
454
455 getLeaf(newLeaf: boolean = true): any {
456 return {
457 open: jest.fn().mockResolvedValue(undefined),
458 openFile: jest.fn().mockResolvedValue(undefined)
459 };
460 }
461
462 // Event management
463 on(event: string, callback: (...args: any[]) => void): void {

Callers 15

navigateToDailyNoteMethod · 0.80
buildMenuMethod · 0.80
createTaskFromEventMethod · 0.80
createNoteFromEventMethod · 0.80
buildActionsListMethod · 0.80
openTaskNoteMethod · 0.80
safeOpenFileMethod · 0.80
openAttachmentMethod · 0.80
openNoteFunction · 0.80
handleEventClickMethod · 0.80
openCalendarEntryMethod · 0.80

Calls

no outgoing calls

Tested by 3

openViewFunction · 0.64
openFileByPathFunction · 0.64
openBaseFileFunction · 0.64