New tabs without a connection and .sql files from disk

Open
#311 1 comment 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@DokaDev is already working on this.

Since Nov 10, 2026.

Assessment

This issue has not been assessed yet.

Description

enhancement roadmap
Summary

Start writing SQL without picking a connection first, and work with .sql files anywhere on disk.

Scope

In:

  • A + button at the end of the tab bar that opens a new console tab, plus a key and a :new command for the same.
  • The new tab follows the connection of the current tab; with none, it opens without a connection. A tab without a connection says so in its title, and running a statement asks for the connection first (as today).
  • Open any .sql file from disk (for example :e ~/work/query.sql), save back to it, and show unsaved changes in the tab title.

Out (for now): projects or folders of files, file watching.

Design notes
  • No change to the safety model: nothing runs before a connection is chosen, and the usual checks apply when it runs.
  • Workspace restore keeps such tabs (with their file path), as it does for consoles today.
Status

Backlog.

Plan history
  • 2026-11-10: Issue opened.
Dominant language
Rust
Stars
166
Forks
8
Avg merge
4h 24m
Merged PRs (30d)
291

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from DokaDev/datarig

All issues in DokaDev/datarig

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.