mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-09-22 12:11:41 +08:00
feat(touch_bar): jump to note
This commit is contained in:
parent
d9a689bd9a
commit
9c24b89180
@ -241,6 +241,7 @@ export type CommandMappings = {
|
||||
scrollToEnd: CommandData;
|
||||
closeThisNoteSplit: CommandData;
|
||||
moveThisNoteSplit: CommandData & { isMovingLeft: boolean };
|
||||
jumpToNote: CommandData;
|
||||
|
||||
// Geomap
|
||||
deleteFromMap: { noteId: string };
|
||||
|
@ -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")
|
||||
})
|
||||
];
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user