* Open Quick Actions for the currently active TaskNote
()
| 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, |
no test coverage detected