Skip to content

Build your personal knowledge base with Trilium Notes

fix(command_palette): some note context-aware commands not working

Elian Doran5b074c2e221e
diff --git a/apps/client/src/services/command_registry.ts b/apps/client/src/services/command_registry.ts
index e3ffb36a4f..f0bb2eef59 100644
--- a/apps/client/src/services/command_registry.ts
+++ b/apps/client/src/services/command_registry.ts
@@ -247,14 +247,18 @@ class CommandRegistry {
} else if (command.keyboardAction.scope === "text-detail") {
this.executeWithTextDetail(command.commandName);
} else {
- appContext.triggerCommand(command.commandName);
+ appContext.triggerCommand(command.commandName, {
+ ntxId: appContext.tabManager.activeNtxId
+ });
}
return;
}
// Fallback for commands without keyboard action reference
if (command.commandName) {
- appContext.triggerCommand(command.commandName);
+ appContext.triggerCommand(command.commandName, {
+ ntxId: appContext.tabManager.activeNtxId
+ });
return;
}