文件
mynode/packages/app-desktop/gui/menuCommandNames.ts
chen 301194963b
一些检查失败了
automerge / automerge (push) Has been cancelled
react-native-android-build-apk / AssembleRelease (push) Has been cancelled
Build macOS M1 / Main (push) Has been cancelled
Joplin Continuous Integration / Main (macos-15-intel) (push) Has been cancelled
Joplin Continuous Integration / Main (ubuntu-22.04) (push) Has been cancelled
Joplin Continuous Integration / Main (ubuntu-22.04-arm) (push) Has been cancelled
Joplin Continuous Integration / Main (windows-11-vs2026-arm) (push) Has been cancelled
Joplin Continuous Integration / Main (windows-2025) (push) Has been cancelled
Joplin Continuous Integration / ServerDockerImage (ubuntu-22.04) (push) Has been cancelled
Joplin Continuous Integration / ServerDockerImage (ubuntu-22.04-arm) (push) Has been cancelled
Joplin UI tests / Main (ubuntu-22.04) (push) Has been cancelled
Joplin UI tests / Main (windows-2025) (push) Has been cancelled
Joplin UI tests / Mobile (push) Has been cancelled
Close stale issues / ProcessStaleIssues (push) Has been cancelled
feat: Initial clean release of CHM
2026-11-04 11:29:39 +08:00

104 行
2.5 KiB
TypeScript

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',
];
}