pyqt-code-editor 0.0.41__tar.gz → 0.0.43__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/PKG-INFO +1 -1
- {pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/__init__.py +1 -1
- {pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/_settings.py +1 -1
- {pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/code_editors/code_editors.py +9 -5
- pyqt_code_editor-0.0.43/pyqt_code_editor/code_editors/languages/javascript.py +5 -0
- {pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/COPYING +0 -0
- {pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyproject.toml +0 -0
- {pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/app.py +0 -0
- {pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/code_editors/__init__.py +0 -0
- {pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/code_editors/languages/__init__.py +0 -0
- {pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/code_editors/languages/generic.py +0 -0
- {pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/code_editors/languages/markdown.py +0 -0
- {pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/code_editors/languages/python.py +0 -0
- {pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/code_editors/languages/text.py +0 -0
- {pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/components/__init__.py +0 -0
- {pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/components/editor_panel.py +0 -0
- {pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/components/find_in_files.py +0 -0
- {pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/components/jupyter_console.py +0 -0
- {pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/components/project_explorer.py +0 -0
- {pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/components/settings_panel.py +0 -0
- {pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/components/sigmund.py +0 -0
- {pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/components/workspace_explorer.py +0 -0
- {pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/environment_manager.py +0 -0
- {pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/mixins/__init__.py +0 -0
- {pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/mixins/auto_indent.py +0 -0
- {pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/mixins/auto_pair.py +0 -0
- {pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/mixins/base.py +0 -0
- {pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/mixins/check.py +0 -0
- {pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/mixins/comment.py +0 -0
- {pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/mixins/complete.py +0 -0
- {pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/mixins/execute.py +0 -0
- {pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/mixins/file_link.py +0 -0
- {pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/mixins/line_number.py +0 -0
- {pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/mixins/python_auto_indent.py +0 -0
- {pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/mixins/search_replace.py +0 -0
- {pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/mixins/shortcuts.py +0 -0
- {pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/mixins/smart_backspace_delete.py +0 -0
- {pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/mixins/symbols.py +0 -0
- {pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/mixins/theme.py +0 -0
- {pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/mixins/widgets/__init__.py +0 -0
- {pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/mixins/zoom.py +0 -0
- {pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/sigmund-analyst.png +0 -0
- {pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/signal_router.py +0 -0
- {pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/syntax_highlighters/__init__.py +0 -0
- {pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/syntax_highlighters/languages/__init__.py +0 -0
- {pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/syntax_highlighters/languages/generic.py +0 -0
- {pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/syntax_highlighters/languages/python.py +0 -0
- {pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/syntax_highlighters/syntax_highlighter.py +0 -0
- {pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/themes.py +0 -0
- {pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/utils/__init__.py +0 -0
- {pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/utils/languages/__init__.py +0 -0
- {pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/utils/languages/python/__init__.py +0 -0
- {pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/utils/languages/python/_auto_indent.py +0 -0
- {pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/utils/languages/python/_extract_cells.py +0 -0
- {pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/utils/languages/python/_mask_str_in_code.py +0 -0
- {pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/watchdog.py +0 -0
- {pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/widgets/__init__.py +0 -0
- {pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/widgets/calltip_widget.py +0 -0
- {pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/widgets/completion_popup.py +0 -0
- {pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/widgets/dock.py +0 -0
- {pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/widgets/quick_open_dialog.py +0 -0
- {pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/widgets/quick_open_file_dialog.py +0 -0
- {pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/widgets/quick_symbol_dialog.py +0 -0
- {pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/widgets/search_replace_frame.py +0 -0
- {pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/widgets/tab_splitter.py +0 -0
- {pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/widgets/tabbed_editor.py +0 -0
- {pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/worker/__init__.py +0 -0
- {pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/worker/languages/__init__.py +0 -0
- {pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/worker/languages/generic.py +0 -0
- {pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/worker/languages/python.py +0 -0
- {pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/worker/manager.py +0 -0
- {pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/worker/process.py +0 -0
- {pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/worker/providers/__init__.py +0 -0
- {pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/worker/providers/codestral.py +0 -0
- {pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/worker/providers/jedi.py +0 -0
- {pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/worker/providers/ruff.py +0 -0
- {pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/worker/providers/sigmund.py +0 -0
- {pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/worker/providers/symbol.py +0 -0
- {pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/worker/settings.py +0 -0
- {pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/readme.md +0 -0
|
@@ -93,7 +93,7 @@ class Settings(QObject):
|
|
|
93
93
|
shortcut_split_horizontally = SettingProperty('Ctrl+Shift+H', "Shortcuts")
|
|
94
94
|
shortcut_split_vertically = SettingProperty('Ctrl+Shift+V', "Shortcuts")
|
|
95
95
|
shortcut_quick_open_file = SettingProperty('Ctrl+P', "Shortcuts")
|
|
96
|
-
shortcut_symbols = SettingProperty('Ctrl+
|
|
96
|
+
shortcut_symbols = SettingProperty('Ctrl+L', "Shortcuts")
|
|
97
97
|
shortcut_previous_tab = SettingProperty('Ctrl+Shift+Tab', "Shortcuts")
|
|
98
98
|
shortcut_close_all_tabs = SettingProperty('Ctrl+Shift+W', "Shortcuts")
|
|
99
99
|
shortcut_close_other_tabs = SettingProperty('Ctrl+Alt+W', "Shortcuts")
|
{pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/code_editors/code_editors.py
RENAMED
|
@@ -18,18 +18,22 @@ def create_editor(path=None, language=None, *args, **kwargs):
|
|
|
18
18
|
else:
|
|
19
19
|
language = utils.guess_language_from_path(path)
|
|
20
20
|
language = LANGUAGE_MAP.get(language, language)
|
|
21
|
+
# The language is determined by the pygment lexer, and can be something like
|
|
22
|
+
# javascript+genshi. This is useful for the highlighter, but for the editor
|
|
23
|
+
# module we only use the main language.
|
|
24
|
+
module_name = language.lower().split('+')[0]
|
|
21
25
|
# Load the editor module depending on the language. We store the
|
|
22
26
|
# imported module in a cache for efficiency
|
|
23
|
-
if
|
|
27
|
+
if module_name not in editor_module_cache:
|
|
24
28
|
try:
|
|
25
29
|
editor_module = importlib.import_module(
|
|
26
|
-
f".languages.{
|
|
30
|
+
f".languages.{module_name}", package=__package__)
|
|
27
31
|
except ImportError:
|
|
28
32
|
from .languages import generic as editor_module
|
|
29
|
-
logger.info(f'failed to load editor module for {
|
|
33
|
+
logger.info(f'failed to load editor module for {module_name}, falling back to generic')
|
|
30
34
|
else:
|
|
31
|
-
logger.info(f'loaded editor module for {
|
|
32
|
-
editor_module_cache[
|
|
35
|
+
logger.info(f'loaded editor module for {module_name}')
|
|
36
|
+
editor_module_cache[module_name] = editor_module
|
|
33
37
|
else:
|
|
34
38
|
editor_module = editor_module_cache[language]
|
|
35
39
|
editor = editor_module.Editor(*args, language=language, **kwargs)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/code_editors/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/code_editors/languages/text.py
RENAMED
|
File without changes
|
|
File without changes
|
{pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/components/editor_panel.py
RENAMED
|
File without changes
|
{pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/components/find_in_files.py
RENAMED
|
File without changes
|
{pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/components/jupyter_console.py
RENAMED
|
File without changes
|
{pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/components/project_explorer.py
RENAMED
|
File without changes
|
{pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/components/settings_panel.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/mixins/python_auto_indent.py
RENAMED
|
File without changes
|
{pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/mixins/search_replace.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/mixins/widgets/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/syntax_highlighters/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/utils/languages/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/widgets/calltip_widget.py
RENAMED
|
File without changes
|
{pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/widgets/completion_popup.py
RENAMED
|
File without changes
|
|
File without changes
|
{pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/widgets/quick_open_dialog.py
RENAMED
|
File without changes
|
|
File without changes
|
{pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/widgets/quick_symbol_dialog.py
RENAMED
|
File without changes
|
{pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/widgets/search_replace_frame.py
RENAMED
|
File without changes
|
{pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/widgets/tab_splitter.py
RENAMED
|
File without changes
|
{pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/widgets/tabbed_editor.py
RENAMED
|
File without changes
|
|
File without changes
|
{pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/worker/languages/__init__.py
RENAMED
|
File without changes
|
{pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/worker/languages/generic.py
RENAMED
|
File without changes
|
{pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/worker/languages/python.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/worker/providers/__init__.py
RENAMED
|
File without changes
|
{pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/worker/providers/codestral.py
RENAMED
|
File without changes
|
{pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/worker/providers/jedi.py
RENAMED
|
File without changes
|
{pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/worker/providers/ruff.py
RENAMED
|
File without changes
|
{pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/worker/providers/sigmund.py
RENAMED
|
File without changes
|
{pyqt_code_editor-0.0.41 → pyqt_code_editor-0.0.43}/pyqt_code_editor/worker/providers/symbol.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|