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

Method openQuickActionsForCurrentTask

src/main.ts:1589–1607  ·  view source on GitHub ↗

* Open Quick Actions for the currently active TaskNote

()

Source from the content-addressed store, hash-verified

1587 * Open Quick Actions for the currently active TaskNote
1588 */
1589 async openQuickActionsForCurrentTask(): Promise<void> {
1590 try {
1591 // Get currently active file
1592 const activeFile = this.app.workspace.getActiveFile();
1593 if (!activeFile) {
1594 new Notice("No file is currently open");
1595 return;
1596 }
1597
1598 await this.openQuickActionsForTaskFile(activeFile, "Current file is not a tasknote");
1599 } catch (error) {
1600 tasknotesLogger.error("Error opening quick actions:", {
1601 category: "internal",
1602 operation: "opening-quick-actions",
1603 error: error,
1604 });
1605 new Notice("Failed to open quick actions");
1606 }
1607 }
1608
1609 async openQuickActionsForTaskUnderCursor(
1610 editor: Editor,

Callers 1

Calls 3

getActiveFileMethod · 0.80
errorMethod · 0.80

Tested by

no test coverage detected