Yoann Quenach de Quivillic
d2d7c5b422
Use native levenshtein distance
2023-03-17 10:52:08 +10:00
Yoann Quenach de Quivillic
5040a3b263
Fix flake8
2023-03-17 10:52:08 +10:00
Yoann Quenach de Quivillic
8db1026ed2
Use pushWarning instead of pushMessage
2023-03-17 10:52:08 +10:00
Yoann Quenach de Quivillic
53c7b8011b
Fallback to difflib if levenshtein unavailable
2023-03-17 10:52:08 +10:00
Yoann Quenach de Quivillic
04a8436187
Conditional import
2023-03-17 10:52:08 +10:00
Yoann Quenach de Quivillic
311c1b14d2
Fix infinite loop
2023-03-17 10:52:08 +10:00
Yoann Quenach de Quivillic
364bb96850
Change wording format->reformat
2023-03-17 10:52:08 +10:00
Yoann Quenach de Quivillic
6523f0c58c
Keep cursor position after formatting
2023-03-17 10:52:08 +10:00
Yoann Quenach de Quivillic
0f84e095b7
Add isort (sort imports)
2023-03-17 10:52:08 +10:00
Yoann Quenach de Quivillic
63a48983d9
Add black formatter
2023-03-17 10:52:08 +10:00
Yoann Quenach de Quivillic
3c97906bbf
Add formatting options
2023-03-17 10:52:08 +10:00
Yoann Quenach de Quivillic
ef6de1ff2c
Add format code action in Python Console Editor
2023-03-17 10:52:08 +10:00
Yoann Quenach de Quivillic
1f25b41d79
Fix duplicated newline on save (windows)
2023-03-13 14:49:32 +10:00
Yoann Quenach de Quivillic
43c415d109
Fix focus switch on close tab
2023-03-03 12:17:01 +10:00
Yoann Quenach de Quivillic
fc3847def7
Fix bug introduced by #51913 - Proxy EditorTab attributes to Editor
2023-03-03 12:17:01 +10:00
Yoann Quenach de Quivillic
9c56921cca
Clean up code and fix shortcuts
2023-02-21 14:27:36 +10:00
Yoann Quenach de Quivillic
28146b538a
Fix Editor/EditorTab never deleted
2023-02-21 14:27:36 +10:00
Yoann Quenach de Quivillic
7f231099f4
sort imports and cleanup dead code
2023-02-21 14:27:36 +10:00
Yoann Quenach de Quivillic
e992797f8b
Restore autoCloseBracket settings and factorize autoInsertImport
2023-01-11 07:33:27 +10:00
Yoann Quenach de Quivillic
f98266b768
Get rid of the old autoCloseBracket setting
2023-01-11 07:33:27 +10:00
Yoann Quenach de Quivillic
1c79b4927d
[feature][console] Add toggle comment action in the python console ( #50341 )
...
Adds a toggle comment action in the Python Console and script editors
2023-01-07 09:27:08 +10:00
Nyall Dawson
ed54489a09
Move some useful python console methods to base class
2022-10-10 14:01:24 +10:00
nicogodet
c7207f58f1
Remove asterisk from file name when using Save
2022-04-11 08:22:33 +02:00
Nyall Dawson
d00356a0fa
[console] Use a more modern approach to running script files, to
...
avoid 'unclosed file' warnings dumped whenever script files
are run through the Python console
2022-01-18 15:23:08 +10:00
Nyall Dawson
174d5ee9e0
Ensure python script files saved in the Python console editor use
...
.py file extension
2021-07-01 15:40:20 +10:00
Salvatore Larosa
3c0fb94880
[pyqgis-console] use asterisk to track changes in script
2020-10-20 06:59:24 +10:00
Nyall Dawson
5c8013df61
[console] Fix exception when running scripts (followup cce7aa7)
...
and move responsibility for showing warning messages to QgsCodeEditor
base class, so that the same code can be used by other dialog script editors
2020-10-12 13:06:34 +10:00
Salvatore Larosa
cce7aa7315
[pyqgis-console] restore marker icon for syntax check
2020-10-12 09:49:45 +10:00
Nyall Dawson
ec2b21001e
Ensure autocomplete correctly works for all QgsCodeEditorPython instances
2020-10-06 03:57:50 +10:00
Nyall Dawson
8ec7f0e69c
Remove QgsPythonConsoleBase so that we have a single definitive Python editor class (QgsCodeEditorPython)
2020-10-06 03:57:50 +10:00
Nyall Dawson
bc55102eb8
Move icon references back out of QgsPythonConsoleBase
2020-10-05 18:37:46 +10:00
Nyall Dawson
e66a0a025b
Move more code out of QgsPythonConsoleBase
2020-10-05 18:37:46 +10:00
Nyall Dawson
d9782a12f5
Move more code to QgsCodeEditorPython base class
2020-10-05 13:24:46 +10:00
Nyall Dawson
ad946d45c8
Ensure colors in Python console match colors for Python editors
...
used elsewhere in the application
2020-10-04 05:02:57 +10:00
Salvatore Larosa
a2fb7f3eeb
[pyqgis-console] change message bar to Warning
2020-09-27 04:55:13 +10:00
Salvatore Larosa
1760e26a3a
[pyqgis-console] warn user to generate personal access token
2020-09-27 04:55:13 +10:00
Salvatore Larosa
eee29257bd
[pyqgis-console] use QgsBlockingNetworkRequest to create Gist
2020-09-27 04:55:13 +10:00
Salvatore Larosa
c92e873815
[pyqgis-console] using gist to share snippets instead of codepad
2020-09-27 04:55:13 +10:00
Richard Duivenvoorde
982e4f1262
Rename BaseClass to QgsPythonConsoleBase
2020-09-03 16:03:25 +02:00
Richard Duivenvoorde
09fc2e6aa9
Merged console and editor settings stuff
...
So the Editor and Console etc share one set of settings:
- Merged Editor and Console settings-tabs in one Settings tab in the settings dialog
- Removed the Editor ui from the settings dialog
- Changed all names of settings in Editor so it uses the normal/console settings
2020-08-27 22:53:21 +02:00
Richard Duivenvoorde
354b9598ec
Move font, margin and caret code to baseclass
2020-08-27 18:26:54 +02:00
Richard Duivenvoorde
ab83e57cc8
Context menu 'Search selected in PyQGIS docs' in Console panes
2020-07-08 21:47:08 +02:00
Richard Duivenvoorde
a1fda50f95
Move setLexers to base
2020-07-08 21:17:27 +02:00
Richard Duivenvoorde
6162f48d30
Get rid of all the ColorEditor stuff
2020-07-08 20:26:43 +02:00
Richard Duivenvoorde
180a630363
Move icons to base and add some to items
2020-07-05 11:48:27 +02:00
Richard Duivenvoorde
5889f7df78
Add simple BaseClass
2020-07-04 16:36:47 +02:00
Nyall Dawson
9d4b80e2f1
Refine multiline selection behaviour in editors
2019-01-11 10:15:51 +10:00
Nyall Dawson
dab069e1ea
Improve multiline cursor behavior in Python console and expression editor
...
Now supports multi-line inserts and pastes
2018-12-20 17:23:52 +10:00
Nyall Dawson
1f1bbbaeb6
[console] Fix saving scripts sometimes defaults to QGIS bin folder
2018-12-06 05:42:47 +10:00
nirvn
45aca2f942
fix unclosed strings not style in python console & script editor
2018-05-23 10:08:02 +07:00