mirror of
https://github.com/zadam/trilium.git
synced 2025-10-29 09:16:45 +01:00
feat(touch_bar): functional new note button
This commit is contained in:
@@ -162,6 +162,8 @@ export type CommandMappings = {
|
|||||||
moveNoteDownInHierarchy: ContextMenuCommandData;
|
moveNoteDownInHierarchy: ContextMenuCommandData;
|
||||||
selectAllNotesInParent: ContextMenuCommandData;
|
selectAllNotesInParent: ContextMenuCommandData;
|
||||||
|
|
||||||
|
createNoteIntoInbox: CommandData;
|
||||||
|
|
||||||
addNoteLauncher: ContextMenuCommandData;
|
addNoteLauncher: ContextMenuCommandData;
|
||||||
addScriptLauncher: ContextMenuCommandData;
|
addScriptLauncher: ContextMenuCommandData;
|
||||||
addWidgetLauncher: ContextMenuCommandData;
|
addWidgetLauncher: ContextMenuCommandData;
|
||||||
|
|||||||
@@ -42,10 +42,8 @@ export default class TouchBarWidget extends Component {
|
|||||||
|
|
||||||
const items = [
|
const items = [
|
||||||
new TouchBarButton({
|
new TouchBarButton({
|
||||||
icon: this.#buildIcon("NSTouchBarAddDetailTemplate"),
|
icon: this.#buildIcon("NSTouchBarComposeTemplate"),
|
||||||
click: () => {
|
click: () => this.triggerCommand("createNoteIntoInbox")
|
||||||
console.log("New note pressed.");
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user