Warn on window close with unsaved files, prompt to connect before querying #6
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/close-warning-and-connect-prompt"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Unsaved changes on window close
QryDuckApp::updatechecksviewport().close_requested()every frame. If any bufferis_dirty(), it sendsViewportCommand::CancelCloseand shows an Unsaved Changes modal listing the modified files:Save All & Quit,Quit Without Saving,Cancel.Save All & Quitstays open if any save fails or an untitled buffer's Save As dialog is cancelled.:qa/:quit/:quitallgo through the same check.:qa!/:quit!/:quitall!quit without asking (EditorAction::QuitApp { force }).Connect prompt before running a query
trigger_queryholds the query back when no database file is connected and shows a No Database Connected modal:collect_duckdb_files): click one to connect and runOpen Database File...: file picker, then connect and runCreate New Database...: the existing dialog, then the query runs on the new databaseRun in Memory: runs in:memory:and doesn't ask again this sessionCancelQuery Data Fileon.parquet/.csv/.json) go through the newsend_queryand skip the prompt, since they are meant to run in memory.AGENTS.md.Testing
cargo testpasses (23 tests), including new tests for the:qa/:qa!mapping andcollect_duckdb_files.🤖 Generated with Claude Code