mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-09-01 20:32:19 +08:00
feat(touch_bar): functional new note button
This commit is contained in:
parent
f2f0f6178b
commit
dd575787fe
@ -162,6 +162,8 @@ export type CommandMappings = {
|
|||||||
moveNoteDownInHierarchy: ContextMenuCommandData;
|
moveNoteDownInHierarchy: ContextMenuCommandData;
|
||||||
selectAllNotesInParent: ContextMenuCommandData;
|
selectAllNotesInParent: ContextMenuCommandData;
|
||||||
|
|
||||||
|
createNoteIntoInbox: CommandData;
|
||||||
|
|
||||||
addNoteLauncher: ContextMenuCommandData;
|
addNoteLauncher: ContextMenuCommandData;
|
||||||
addScriptLauncher: ContextMenuCommandData;
|
addScriptLauncher: ContextMenuCommandData;
|
||||||
addWidgetLauncher: ContextMenuCommandData;
|
addWidgetLauncher: ContextMenuCommandData;
|
||||||
|
@ -42,10 +42,8 @@ export default class TouchBarWidget extends Component {
|
|||||||
|
|
||||||
const items = [
|
const items = [
|
||||||
new TouchBarButton({
|
new TouchBarButton({
|
||||||
icon: this.#buildIcon("NSTouchBarAddDetailTemplate"),
|
icon: this.#buildIcon("NSTouchBarComposeTemplate"),
|
||||||
click: () => {
|
click: () => this.triggerCommand("createNoteIntoInbox")
|
||||||
console.log("New note pressed.");
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user