export default function() { return [ 'attachFile', 'copyDevCommand', 'exportPdf', 'focusElementNoteBody', 'focusElementNoteViewer', 'focusElementNoteList', 'focusElementNoteTitle', 'focusElementSideBar', 'focusElementToolbar', 'focusSearch', 'historyBackward', 'historyForward', 'insertDateTime', 'newFolder', 'newNote', 'openTodayNote', 'newSubFolder', 'newTodo', 'newWhiteboard', 'toggleWhiteboardEditor', 'addNoteToWhiteboard', 'openProfileDirectory', 'print', 'setTags', 'showLocalSearch', 'showNoteContentProperties', 'permanentlyDeleteNote', 'synchronize', 'textBold', 'textCode', 'textCopy', 'textCut', 'textItalic', 'textLink', 'textPaste', 'textSelectAll', 'textBulletedList', 'toggleExternalEditing', 'enableNoteEncryption', 'disableNoteEncryption', 'lockEncryptedNotes', 'openNoteInNewWindow', 'toggleLayoutMoveMode', 'resetLayout', 'toggleMenuBar', 'toggleNoteList', 'toggleNotesSortOrderField', 'toggleNotesSortOrderReverse', 'togglePerFolderSortOrder', 'toggleSideBar', 'toggleAiChat', 'toggleVisiblePanes', 'toggleEditorPlugin', 'toggleTabMovesFocus', 'editor.deleteLine', 'editor.duplicateLine', 'openSecondaryAppInstance', 'openPrimaryAppInstance', // We cannot put the editor.undo/editor.redo commands in the menu because they are // editor-specific commands. If we put them there it will break the undo/redo in // regular text fields (https://github.com/laurent22/joplin/issues/6214). // However, the native Electron undo/redo doesn't work well in TinyMCE/CodeMirror. // As a workaround, use these commands that switch between editor.undo and native Electron // undo/redo depending on the type of selected editor: 'globalUndo', 'globalRedo', 'editor.indentLess', 'editor.indentMore', 'editor.toggleComment', 'editor.sortSelectedLines', 'editor.swapLineUp', 'editor.swapLineDown', 'editor.tableAddRow', 'editor.tableAddColumn', 'editor.tableDeleteRow', 'editor.tableDeleteColumn', 'linkToNote', 'exportDeletionLog', 'toggleSafeMode', 'showShareNoteDialog', 'revealInNotebook', 'showShareFolderDialog', 'leaveSharedFolder', 'gotoAnything', 'commandPalette', 'openMasterPasswordDialog', 'addProfile', 'showProfileEditor', 'switchProfile1', 'switchProfile2', 'switchProfile3', 'pasteAsText', 'pasteAsMarkdown', 'showNoteProperties', 'convertNoteToMarkdown', 'toggleEditors', 'toggleMinimalMarkdownEditor', ]; }