This module contains a class to access the pyQode settings (QSettings).
QSettings are used to cache some specific settings.
At the moment, we use it to store the lists of encoding that appears in the encoding menu (to not have a too big encoding menu, user can choose which encoding should be display, offering a small compact menu with all its favorite encodings). We also cache encoding used to save or load a file so that we can reuse it automatically next time the user want to open the same file.
We also use this to cache some editor states (such as the last cursor position for a specific file path)
We do not store editor styles and settings here. Those kind of settings are better handled at the application level.
Bases: builtins.object
Provides an easy acces to the cache by exposing some wrapper properties over QSettings.
Gets the cached cursor position for file_path
Parameters: | file_path – path of the file in the cache |
---|---|
Returns: | Cached cursor position or (0, 0) |
Gets an eventual cached encoding for file_path.
Raises a KeyError if no encoding were cached for the specified file path.
Parameters: | file_path – path of the file to look up |
---|---|
Returns: | The cached encoding. |
Cache encoding for the specified file path.
Parameters: |
|
---|
The core package contains the core components needed for writing a pyqode based application. It is the “de facto” requirement for any pyqode extension.
It contains the base classes for both the backend and the frontend and provides a series of modes and panels that might be useful for any kind of code editor widget, i.e. pyqode.core is a generic code editor widget.