Skip to content

✨ Save and Restore Editor State #2057

Open
@thecoolwinter

Description

@thecoolwinter

Description

CodeEdit should save and restore the state of editors when files are opened. Switching between tabs should not lose the user's selection, scroll position, selected indent mode, etc. This is a pretty large blocker right now for ease of use while using CodeEdit to work on a project.

This should be entirely transparent to the user. This restoration should happen fast, and without intervention.

Additional Context

There's two kinds of things we should restore: per-session state, and permanent state.

Permanent state to restore:

  • Cursor positions
  • Scroll position

Per-session state (kept around with tab information).

  • Undo/Redo stack
  • Find text

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

Status

🏃‍♂️ In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions