mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 18:12:29 +08:00
feat(slash): add a few aliases
This commit is contained in:
parent
32f4d7be39
commit
cce27900b8
@ -46,6 +46,7 @@ export default function buildExtraCommands(): SlashCommandDefinition[] {
|
|||||||
id: "internal-link",
|
id: "internal-link",
|
||||||
title: "Internal Trilium link",
|
title: "Internal Trilium link",
|
||||||
description: "Insert a link to another Trilium note",
|
description: "Insert a link to another Trilium note",
|
||||||
|
aliases: [ "internal link", "trilium link", "reference link" ],
|
||||||
icon: internalLinkIcon,
|
icon: internalLinkIcon,
|
||||||
commandName: INTERNAL_LINK_COMMAND
|
commandName: INTERNAL_LINK_COMMAND
|
||||||
},
|
},
|
||||||
@ -129,7 +130,8 @@ function buildAdmonitionExtraCommands(): SlashCommandDefinition[] {
|
|||||||
title: definition.title,
|
title: definition.title,
|
||||||
description: "Inserts a new admonition",
|
description: "Inserts a new admonition",
|
||||||
icon: admonitionIcons[keyword as AdmonitionType],
|
icon: admonitionIcons[keyword as AdmonitionType],
|
||||||
execute: (editor: Editor) => editor.execute("admonition", { forceValue: keyword as AdmonitionType })
|
execute: (editor: Editor) => editor.execute("admonition", { forceValue: keyword as AdmonitionType }),
|
||||||
|
aliases: [ "box" ]
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
return commands;
|
return commands;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user