Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
feat(touch_bar): functional new note button
Elian Dorandd575787fe42
diff --git a/src/public/app/components/app_context.ts b/src/public/app/components/app_context.tsindex 8cbe6b5279..3e15353930 100644--- a/src/public/app/components/app_context.ts+++ b/src/public/app/components/app_context.ts@@ -162,6 +162,8 @@ export type CommandMappings = {moveNoteDownInHierarchy: ContextMenuCommandData;selectAllNotesInParent: ContextMenuCommandData;+ createNoteIntoInbox: CommandData;+addNoteLauncher: ContextMenuCommandData;addScriptLauncher: ContextMenuCommandData;addWidgetLauncher: ContextMenuCommandData;diff --git a/src/public/app/widgets/touch_bar.ts b/src/public/app/widgets/touch_bar.tsindex 5fcb3ee7d8..92b1ab060e 100644--- a/src/public/app/widgets/touch_bar.ts+++ b/src/public/app/widgets/touch_bar.ts@@ -42,10 +42,8 @@ export default class TouchBarWidget extends Component {const items = [new TouchBarButton({- icon: this.#buildIcon("NSTouchBarAddDetailTemplate"),- click: () => {- console.log("New note pressed.");- }+ icon: this.#buildIcon("NSTouchBarComposeTemplate"),+ click: () => this.triggerCommand("createNoteIntoInbox")})];