mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-09-23 04:35:02 +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;
|
scrollToEnd: CommandData;
|
||||||
closeThisNoteSplit: CommandData;
|
closeThisNoteSplit: CommandData;
|
||||||
moveThisNoteSplit: CommandData & { isMovingLeft: boolean };
|
moveThisNoteSplit: CommandData & { isMovingLeft: boolean };
|
||||||
|
jumpToNote: CommandData;
|
||||||
|
|
||||||
// Geomap
|
// Geomap
|
||||||
deleteFromMap: { noteId: string };
|
deleteFromMap: { noteId: string };
|
||||||
|
@ -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")
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user