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;
closeThisNoteSplit: CommandData;
moveThisNoteSplit: CommandData & { isMovingLeft: boolean };
jumpToNote: CommandData;
// Geomap
deleteFromMap: { noteId: string };

View File

@ -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")
})
];