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