Skip to content

Initial implementation of per project settings#1700

Draft
jeremypw wants to merge 3 commits intomasterfrom
jeremypw/project/persist-info
Draft

Initial implementation of per project settings#1700
jeremypw wants to merge 3 commits intomasterfrom
jeremypw/project/persist-info

Conversation

@jeremypw
Copy link
Collaborator

@jeremypw jeremypw commented Feb 26, 2026

In order to more fully restore the working state, certain states need to be saved on a per project basis.
For example

  • restoring a projects open documents after it has been closed
  • restoring cursor positions in open documents
  • maintaining a list of recently used branches
  • specifying the build directory per project (if not default)

This is an initial PR for doing this, restoring only one boolean setting - whether the project is expanded in the sidebar.

Rather than create our own backend, a relocatable GSettings schema is used. The only drawback is the possible accumulation of unused schemas for abandoned projects. It is not clear how this can be managed through the UI.

At the moment all folders opened as "projects" in the sidebar generate a corresponding setting schema - to be decided whether to limit this to e.g. git repositories.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant