mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-24 10:27:10 +02:00
c63c6370b5
The goal is to make the command system more modular, so each command can be defined as a single object that includes a declaration (name, label, etc.) and a runtime (to execute the command, test if it should be enabled, etc.) Utility methods are provided to convert a command to a menu item or a toolbar button, thus reducing duplicated and boiler plate code across the codebase (often the menu item logic was duplicated in the toolbar button logic and vice versa). The goal is to make it easier to add new commands (and associated menu item and toolbar buttons) and to call them from anywhere. This is also useful for plugins, which can also easily define new commands. Could also allow creating a command palette.
163 lines
6.9 KiB
Plaintext
163 lines
6.9 KiB
Plaintext
*.min.js
|
|
.git/
|
|
.github/
|
|
_mydocs/
|
|
_releases/
|
|
Assets/
|
|
CliClient/build
|
|
CliClient/locales
|
|
CliClient/locales-build
|
|
CliClient/node_modules
|
|
CliClient/tests-build
|
|
CliClient/tests/enex_to_md
|
|
CliClient/tests/html_to_md
|
|
CliClient/tests/logs
|
|
CliClient/tests/support
|
|
CliClient/tests/sync
|
|
CliClient/tests/tmp
|
|
Clipper/content_scripts/JSDOMParser.js
|
|
Clipper/content_scripts/Readability-readerable.js
|
|
Clipper/content_scripts/Readability.js
|
|
Clipper/dist
|
|
Clipper/icons
|
|
Clipper/popup/build
|
|
Clipper/popup/config/webpack.config.js
|
|
Clipper/popup/config/webpack_config_at_eject_time.js
|
|
Clipper/popup/node_modules
|
|
Clipper/popup/scripts/build.js
|
|
docs/
|
|
ElectronClient/dist
|
|
ElectronClient/lib
|
|
ElectronClient/gui/NoteEditor/NoteBody/TinyMCE/plugins/lists.js
|
|
ElectronClient/lib/vendor/sjcl-rn.js
|
|
ElectronClient/lib/vendor/sjcl.js
|
|
ElectronClient/locales
|
|
ElectronClient/node_modules
|
|
ElectronClient/packageInfo.js
|
|
ElectronClient/gui/NoteEditor/NoteBody/TinyMCE/supportedLocales.js
|
|
highlight.pack.js
|
|
Modules/TinyMCE/JoplinLists/
|
|
node_modules/
|
|
ReactNativeClient/android
|
|
ReactNativeClient/ios
|
|
ReactNativeClient/lib/joplin-renderer/assets/
|
|
ReactNativeClient/lib/joplin-renderer/vendor/fountain.min.js
|
|
ReactNativeClient/lib/rnInjectedJs/
|
|
ReactNativeClient/lib/vendor/
|
|
ReactNativeClient/lib/welcomeAssets.js
|
|
ReactNativeClient/locales
|
|
ReactNativeClient/node_modules
|
|
ReactNativeClient/pluginAssets/
|
|
readme/
|
|
Server/.git/
|
|
Server/.github/
|
|
Server/bin/
|
|
Server/dist/
|
|
Server/docs/
|
|
Server/node_modules/
|
|
Tools/node_modules
|
|
Tools/PortableAppsLauncher
|
|
Modules/TinyMCE/IconPack/postinstall.js
|
|
Modules/TinyMCE/langs/
|
|
|
|
# AUTO-GENERATED - EXCLUDED TYPESCRIPT BUILD
|
|
ElectronClient/commands/focusElement.js
|
|
ElectronClient/commands/startExternalEditing.js
|
|
ElectronClient/commands/stopExternalEditing.js
|
|
ElectronClient/global.d.js
|
|
ElectronClient/gui/ErrorBoundary.js
|
|
ElectronClient/gui/Header/commands/focusSearch.js
|
|
ElectronClient/gui/MainScreen/commands/editAlarm.js
|
|
ElectronClient/gui/MainScreen/commands/exportPdf.js
|
|
ElectronClient/gui/MainScreen/commands/hideModalMessage.js
|
|
ElectronClient/gui/MainScreen/commands/moveToFolder.js
|
|
ElectronClient/gui/MainScreen/commands/newNote.js
|
|
ElectronClient/gui/MainScreen/commands/newNotebook.js
|
|
ElectronClient/gui/MainScreen/commands/newTodo.js
|
|
ElectronClient/gui/MainScreen/commands/print.js
|
|
ElectronClient/gui/MainScreen/commands/renameFolder.js
|
|
ElectronClient/gui/MainScreen/commands/renameTag.js
|
|
ElectronClient/gui/MainScreen/commands/search.js
|
|
ElectronClient/gui/MainScreen/commands/selectTemplate.js
|
|
ElectronClient/gui/MainScreen/commands/setTags.js
|
|
ElectronClient/gui/MainScreen/commands/showModalMessage.js
|
|
ElectronClient/gui/MainScreen/commands/showNoteContentProperties.js
|
|
ElectronClient/gui/MainScreen/commands/showNoteProperties.js
|
|
ElectronClient/gui/MainScreen/commands/showShareNoteDialog.js
|
|
ElectronClient/gui/MainScreen/commands/toggleNoteList.js
|
|
ElectronClient/gui/MainScreen/commands/toggleSidebar.js
|
|
ElectronClient/gui/MainScreen/commands/toggleVisiblePanes.js
|
|
ElectronClient/gui/MultiNoteActions.js
|
|
ElectronClient/gui/NoteContentPropertiesDialog.js
|
|
ElectronClient/gui/NoteEditor/commands/editorCommandDeclarations.js
|
|
ElectronClient/gui/NoteEditor/commands/focusElementNoteBody.js
|
|
ElectronClient/gui/NoteEditor/commands/focusElementNoteTitle.js
|
|
ElectronClient/gui/NoteEditor/commands/showLocalSearch.js
|
|
ElectronClient/gui/NoteEditor/commands/showRevisions.js
|
|
ElectronClient/gui/NoteEditor/NoteBody/AceEditor/AceEditor.js
|
|
ElectronClient/gui/NoteEditor/NoteBody/AceEditor/styles/index.js
|
|
ElectronClient/gui/NoteEditor/NoteBody/AceEditor/Toolbar.js
|
|
ElectronClient/gui/NoteEditor/NoteBody/AceEditor/utils/index.js
|
|
ElectronClient/gui/NoteEditor/NoteBody/AceEditor/utils/types.js
|
|
ElectronClient/gui/NoteEditor/NoteBody/AceEditor/utils/useListIdent.js
|
|
ElectronClient/gui/NoteEditor/NoteBody/CodeMirror/CodeMirror.js
|
|
ElectronClient/gui/NoteEditor/NoteBody/CodeMirror/Editor.js
|
|
ElectronClient/gui/NoteEditor/NoteBody/CodeMirror/styles/index.js
|
|
ElectronClient/gui/NoteEditor/NoteBody/CodeMirror/Toolbar.js
|
|
ElectronClient/gui/NoteEditor/NoteBody/CodeMirror/utils/index.js
|
|
ElectronClient/gui/NoteEditor/NoteBody/CodeMirror/utils/types.js
|
|
ElectronClient/gui/NoteEditor/NoteBody/CodeMirror/utils/useCursorUtils.js
|
|
ElectronClient/gui/NoteEditor/NoteBody/CodeMirror/utils/useLineSorting.js
|
|
ElectronClient/gui/NoteEditor/NoteBody/CodeMirror/utils/useListIdent.js
|
|
ElectronClient/gui/NoteEditor/NoteBody/CodeMirror/utils/useScrollUtils.js
|
|
ElectronClient/gui/NoteEditor/NoteBody/TinyMCE/TinyMCE.js
|
|
ElectronClient/gui/NoteEditor/NoteBody/TinyMCE/utils/useScroll.js
|
|
ElectronClient/gui/NoteEditor/NoteEditor.js
|
|
ElectronClient/gui/NoteEditor/styles/index.js
|
|
ElectronClient/gui/NoteEditor/utils/contextMenu.js
|
|
ElectronClient/gui/NoteEditor/utils/index.js
|
|
ElectronClient/gui/NoteEditor/utils/resourceHandling.js
|
|
ElectronClient/gui/NoteEditor/utils/types.js
|
|
ElectronClient/gui/NoteEditor/utils/useDropHandler.js
|
|
ElectronClient/gui/NoteEditor/utils/useFormNote.js
|
|
ElectronClient/gui/NoteEditor/utils/useMarkupToHtml.js
|
|
ElectronClient/gui/NoteEditor/utils/useMessageHandler.js
|
|
ElectronClient/gui/NoteEditor/utils/useNoteSearchBar.js
|
|
ElectronClient/gui/NoteEditor/utils/useSearchMarkers.js
|
|
ElectronClient/gui/NoteEditor/utils/useWindowCommandHandler.js
|
|
ElectronClient/gui/NoteList/commands/focusElementNoteList.js
|
|
ElectronClient/gui/NoteListItem.js
|
|
ElectronClient/gui/NoteToolbar/NoteToolbar.js
|
|
ElectronClient/gui/ResourceScreen.js
|
|
ElectronClient/gui/ShareNoteDialog.js
|
|
ElectronClient/gui/SideBar/commands/focusElementSideBar.js
|
|
ReactNativeClient/lib/AsyncActionQueue.js
|
|
ReactNativeClient/lib/checkPermissions.js
|
|
ReactNativeClient/lib/commands/historyBackward.js
|
|
ReactNativeClient/lib/commands/historyForward.js
|
|
ReactNativeClient/lib/commands/synchronize.js
|
|
ReactNativeClient/lib/hooks/useEffectDebugger.js
|
|
ReactNativeClient/lib/hooks/useImperativeHandlerDebugger.js
|
|
ReactNativeClient/lib/hooks/usePrevious.js
|
|
ReactNativeClient/lib/joplin-renderer/MdToHtml/rules/checkbox.js
|
|
ReactNativeClient/lib/joplin-renderer/MdToHtml/rules/fence.js
|
|
ReactNativeClient/lib/joplin-renderer/MdToHtml/rules/mermaid.js
|
|
ReactNativeClient/lib/joplin-renderer/MdToHtml/rules/sanitize_html.js
|
|
ReactNativeClient/lib/JoplinServerApi.js
|
|
ReactNativeClient/lib/services/CommandService.js
|
|
ReactNativeClient/lib/services/keychain/KeychainService.js
|
|
ReactNativeClient/lib/services/keychain/KeychainServiceDriver.dummy.js
|
|
ReactNativeClient/lib/services/keychain/KeychainServiceDriver.mobile.js
|
|
ReactNativeClient/lib/services/keychain/KeychainServiceDriver.node.js
|
|
ReactNativeClient/lib/services/keychain/KeychainServiceDriverBase.js
|
|
ReactNativeClient/lib/services/ResourceEditWatcher.js
|
|
ReactNativeClient/lib/services/rest/actionApi.desktop.js
|
|
ReactNativeClient/lib/services/rest/errors.js
|
|
ReactNativeClient/lib/services/SettingUtils.js
|
|
ReactNativeClient/lib/services/UndoRedoService.js
|
|
ReactNativeClient/lib/ShareExtension.js
|
|
ReactNativeClient/lib/shareHandler.js
|
|
ReactNativeClient/PluginAssetsLoader.js
|
|
ReactNativeClient/setUpQuickActions.js
|
|
# AUTO-GENERATED - EXCLUDED TYPESCRIPT BUILD
|