simvx.ide.config

Persistent IDE settings stored in ~/.config/simvx/ide.json.

IDEConfig delegates field storage to the unified AppConfig system while preserving backward-compatible save/load using the legacy flat JSON format. All colours come from the AppTheme singleton.

Module Contents

Classes

IDEConfig

IDE preferences with JSON persistence.

Data

API

simvx.ide.config.CONFIG_DIR

None

simvx.ide.config.CONFIG_FILE

None

class simvx.ide.config.IDEConfig

IDE preferences with JSON persistence.

All fields delegate to AppConfig.general and AppConfig.ide sections. Colours are provided by the AppTheme singleton (see simvx.core.ui.theme).

Initialization

property font_size: int
property window_width: int
property window_height: int
property recent_files: list[str]
property recent_folders: list[str]
property theme_preset: str
property tab_size: int
property insert_spaces: bool
property word_wrap: bool
property show_line_numbers: bool
property show_minimap: bool
property show_code_folding: bool
property auto_save: bool
property format_on_save: bool
property sidebar_width: int
property bottom_panel_height: int
property sidebar_visible: bool
property bottom_panel_visible: bool
property lsp_enabled: bool
property lsp_command: str
property lsp_args: list[str]
property lint_enabled: bool
property lint_on_save: bool
property lint_command: str
property format_command: str
property python_path: str
property venv_path: str
property auto_detect_venv: bool
property debug_adapter: str
property keybindings: dict[str, str]
load() None
save() None
add_recent_file(path: str) None
add_recent_folder(path: str) None
static detect_venv(project_root: str) str | None

Detect a virtual environment in project_root.

Checks common venv directory names (.venv, venv, .env) for a Python interpreter. Returns the absolute path to the venv directory, or None.

get_python_command(project_root: str) str

Return the Python interpreter path to use for this project.

Priority: explicit python_path setting > auto-detected venv > system python.

get_env(project_root: str) dict[str, str]

Build a subprocess environment dict with the detected venv activated.

apply_theme(preset: str)

Apply a theme preset and update the global singleton.

get_theme()

Return an AppTheme matching the current preset and set the global singleton.