feat(touch_bar): jump to note

This commit is contained in:
Elian Doran 2025-03-08 13:13:21 +02:00
parent d9a689bd9a
commit 9c24b89180
No known key found for this signature in database
2 changed files with 7 additions and 1 deletions

View File

@ -241,6 +241,7 @@ export type CommandMappings = {
scrollToEnd: CommandData; scrollToEnd: CommandData;
closeThisNoteSplit: CommandData; closeThisNoteSplit: CommandData;
moveThisNoteSplit: CommandData & { isMovingLeft: boolean }; moveThisNoteSplit: CommandData & { isMovingLeft: boolean };
jumpToNote: CommandData;
// Geomap // Geomap
deleteFromMap: { noteId: string }; deleteFromMap: { noteId: string };

View File

@ -57,7 +57,7 @@ export default class TouchBarWidget extends Component {
icon: this.#buildIcon("NSTouchBarComposeTemplate"), icon: this.#buildIcon("NSTouchBarComposeTemplate"),
click: () => this.triggerCommand("createNoteIntoInbox") click: () => this.triggerCommand("createNoteIntoInbox")
}), }),
new TouchBarSpacer({ }), new TouchBarSpacer({ size: "flexible" }),
new TouchBarGroup({ new TouchBarGroup({
items: new TouchBar({ items: new TouchBar({
items: [ 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")
}) })
]; ];