spacr.qt.prefs¶
Small QSettings wrapper for per-user persistence of “recent” paths.
The organization/application name is set by launch() in
spacr.qt.app, so this module works with the platform-appropriate
settings backend (macOS plist, Windows registry, Linux INI file).
Attributes¶
Functions¶
|
Return the last folder used for a given app, or '' if unknown. |
|
Return the recent-source list (most-recent first). |
|
Insert |
|
Remember |
Module Contents¶
- spacr.qt.prefs.get_last_source(app_key: str) str[source]¶
Return the last folder used for a given app, or ‘’ if unknown.
- spacr.qt.prefs.get_recent_sources(app_key: str, limit: int = 8) List[str][source]¶
Return the recent-source list (most-recent first).
- spacr.qt.prefs.push_recent_source(app_key: str, path: str, limit: int = 8) None[source]¶
Insert
pathat the head of the recent list and de-duplicate.