ITADN

Feature request: Session persistence / remember last table

#292Openalfredomtx 创建于 2026-03-25
A
alfredomtxcommented
## Feature Request When reopening lazysql, it would be great if it could remember the last state — specifically the last selected database/table — so the user doesn't have to navigate back to it every time. ### Use Case I work with multiple database instances (via Docker worktrees) and frequently close/reopen lazysql. Each time I have to search for the table I was working on and press Enter to load it. This adds friction, especially when iterating on a specific table. ### Proposed Behavior - On exit, save the current database + table selection to a state file (e.g., alongside `config.toml`) - On next launch with the same connection, restore the last selected table automatically - Could be opt-in via a config flag like `remember-last-table = true` This would be similar to how tools like `lazygit` remember their last state.
3 条评论