diff --git a/src/public/app/components/app_context.ts b/src/public/app/components/app_context.ts index 3e1535393..e93994fd5 100644 --- a/src/public/app/components/app_context.ts +++ b/src/public/app/components/app_context.ts @@ -241,6 +241,7 @@ export type CommandMappings = { scrollToEnd: CommandData; closeThisNoteSplit: CommandData; moveThisNoteSplit: CommandData & { isMovingLeft: boolean }; + jumpToNote: CommandData; // Geomap deleteFromMap: { noteId: string }; diff --git a/src/public/app/widgets/touch_bar.ts b/src/public/app/widgets/touch_bar.ts index 7103c1988..e9a7c3d4e 100644 --- a/src/public/app/widgets/touch_bar.ts +++ b/src/public/app/widgets/touch_bar.ts @@ -57,7 +57,7 @@ export default class TouchBarWidget extends Component { icon: this.#buildIcon("NSTouchBarComposeTemplate"), click: () => this.triggerCommand("createNoteIntoInbox") }), - new TouchBarSpacer({ }), + new TouchBarSpacer({ size: "flexible" }), new TouchBarGroup({ items: new TouchBar({ items: [ @@ -75,6 +75,11 @@ export default class TouchBarWidget extends Component { }) ] }) + }), + new TouchBarSpacer({ size: "flexible" }), + new TouchBarButton({ + icon: this.#buildIcon("NSTouchBarAddDetailTemplate"), + click: () => this.triggerCommand("jumpToNote") }) ];