mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-31 11:49:01 +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;
|
||||
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")
|
||||
})
|
||||
];
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user