simvx.editor.project_registry

ProjectRegistry — recent project tracking with persistence via AppConfig.

Module Contents

Classes

RecentProject

ProjectRegistry

Tracks recently opened projects, persisted via AppConfig.general.recent_projects.

Data

log

API

simvx.editor.project_registry.log[source]

‘getLogger(…)’

class simvx.editor.project_registry.RecentProject[source]
path: str

None

name: str

None

template_type: str

None

last_opened: str

None

class simvx.editor.project_registry.ProjectRegistry(config: simvx.core.config.AppConfig | None = None)[source]

Tracks recently opened projects, persisted via AppConfig.general.recent_projects.

Initialization

MAX_RECENT

20

add(project_dir: str) None[source]

Add or bump a project to the top of the recent list.

remove(project_dir: str) None[source]

Remove a project from the recent list (does not delete files).

scan(project_dir: str) simvx.editor.project_registry.RecentProject | None[source]

Read project.simvx metadata from a directory. Returns None if invalid.

refresh() None[source]

Re-scan all entries, pruning missing directories.

load() None[source]

Load from AppConfig.general.recent_projects.

save() None[source]

Persist to AppConfig.general.recent_projects.

static has_project_file(directory: str | pathlib.Path) bool[source]

Check if a directory contains a project.simvx or legacy project.json.