[Feat]: Reopen the last closed tab (Ctrl/Cmd+Shift+T)
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 73/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- react, typescript
Research direction
Start with src/contexts/EditorProvider.tsx and src/utils/editor.ts to trace tab closing, then read src/utils/tabCleaner.ts for state cleanup. Check shortcut handling in src/pages/Editor.tsx, src/config/shortcuts.json, the tab context menu, and existing stack-related tests. Done when closing and reopening tabs meets the acceptance criteria, shortcut rebinding works, and unit tests pass.
Written by the indexing model from the issue text.
Description
🚀 Feature Proposal
Add Reopen closed tab (Ctrl/Cmd+Shift+T): restores the most recently closed editor tab with its SQL, title, database/schema and query parameters. Pressing it again walks further back.
Motivation
Closing a tab by mistake currently loses the query unless it was saved.
Where to start
src/contexts/EditorProvider.tsx:closeTab(andcloseTabWithStateinsrc/utils/editor.ts) discard the tab. Keep a bounded stack (about 20 entries) of closed tabs per connection and exposereopenClosedTab(). Strip heavy state (results) before pushing, seesrc/utils/tabCleaner.ts.src/config/shortcuts.json: add areopen_closed_tabentry; handle it insrc/pages/Editor.tsxnext toclose_tab.- Add a "Reopen closed tab" item to the tab context menu.
Acceptance criteria
- After closing a tab, the shortcut restores it at its previous position and activates it.
- Repeated presses restore tabs in LIFO order; the stack is per connection.
- SQL, title and parameters are restored; results are not (the user re-runs the query).
- Closing several tabs at once ("close others", "close all") pushes each of them.
- The shortcut is listed and rebindable in Settings → Keyboard Shortcuts.
- Unit tests for the stack logic.
Contributor notes
- Dominant language
- TypeScript
- Stars
- 5.1k
- Forks
- 335
- Avg merge
- 2d 5h
- Merged PRs (30d)
- 60
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from TabularisDB/tabularis
-
feature request good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
TabularisDB/tabularis#853 ·
Maintainers usually reply within 1 day
-
[Bug]: Stable AppImage ships AppRun.wrapped as 0770, fails under firejail / AppImage catalog testOpenbug
Difficulty 3/5 1-2 days Newbie friendliness 58/100
TabularisDB/tabularis#879 ·
Maintainers usually reply within 1 day
-
[Feat]: Drag & drop connections into groups & sidebar group organizationPossibly taken @benedettoraviotta claimed this today. Openfeature request
TabularisDB/tabularis#876 · 2 comments · 1 assignee ·
Maintainers usually reply within 1 day
-
Update the logo across the app: icons, dock, installers and in-app brandingPossibly taken @wajrock claimed this 1 day ago. Openenhancement
TabularisDB/tabularis#873 · 1 assignee ·
Maintainers usually reply within 1 day
-
feature request help wanted
Difficulty 4/5 3-5 days Newbie friendliness 68/100
TabularisDB/tabularis#871 ·
Maintainers usually reply within 1 day
All issues in TabularisDB/tabularis
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
rajbos/ai-engineering-fluency#2340 · 1 comment ·
Maintainers usually reply within 1 day
-
community documentation first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficulty 1/5 Under an hour Newbie friendliness 70/100
lingdojo/kana-dojo#31864 · 1 comment · 5 reactions ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
zenstackhq/zenstack#2873 ·
Maintainers usually reply within 1 day
-
CLI: TUI shows onboarding when the provider's API key is only in the environment (e.g. OPENROUTER_API_KEY)Possibly taken A pull request linked to this issue is open or already merged. OpenCLI
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
cline/cline#14923 · 2 comments ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
paperclipai/paperclip#15490 ·
Maintainers usually reply within 1 day