mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 03:46:37 +01:00
feat(command_palette): add icons to all actions
This commit is contained in:
@@ -51,11 +51,11 @@ class CommandRegistry {
|
||||
|
||||
// Special commands with custom handlers
|
||||
this.register({
|
||||
id: "create-sql-console",
|
||||
name: "Create SQL Console",
|
||||
description: "Create a new SQL console note",
|
||||
id: "show-sql-console",
|
||||
name: "Show SQL Console",
|
||||
description: "Open SQL console page",
|
||||
icon: "bx bx-data",
|
||||
handler: () => appContext.triggerCommand("showSQLConsole")
|
||||
commandName: "showSQLConsole"
|
||||
});
|
||||
|
||||
this.register({
|
||||
@@ -174,7 +174,7 @@ class CommandRegistry {
|
||||
id: action.actionName,
|
||||
name: action.friendlyName,
|
||||
description: action.description,
|
||||
icon: this.getIconForAction(action.actionName),
|
||||
icon: action.iconClass || this.getIconForAction(action.actionName),
|
||||
shortcut: primaryShortcut ? this.formatShortcut(primaryShortcut) : undefined,
|
||||
commandName: action.actionName as CommandNames,
|
||||
source: "keyboard-action"
|
||||
|
||||
Reference in New Issue
Block a user