Skip to content

Build your personal knowledge base with Trilium Notes

feat(touch_bar): jump to note

Elian Doran9c24b891806c
diff --git a/src/public/app/components/app_context.ts b/src/public/app/components/app_context.ts
index 3e15353930..e93994fd5d 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 7103c1988c..e9a7c3d4e0 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")
})
];