[Feat]: Duplicate editor tab from the tab context menu
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 76/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- react, typescript
- Domain
- frontend
Research direction
Start in src/pages/Editor.tsx: inspect the tab context menu and how addTab handles tab ordering and state. Add the duplicate action and its translation key in every locale under src/i18n/locales/; run pnpm test, pnpm lint and pnpm typecheck. Done means console and table tabs duplicate as active tabs immediately after the source, without copying results or file links, and notebooks do not show the action.
Written by the indexing model from the issue text.
Description
🚀 Feature Proposal
Add Duplicate tab to the editor tab context menu. It opens a new tab right after the source one with the same SQL and query parameters.
Motivation
When tweaking a query it is handy to fork it and try a variation without losing the original.
Where to start
src/pages/Editor.tsx: the tab context menu. Add an item that calls the existingaddTabwith the source tab'stype,query,queryParams,activeTableand schema/database, and a title suffixed with " (copy)".- Do not copy results,
sourceFilePathor notebook ids. - New i18n key, e.g.
editor.duplicateTab.
Acceptance criteria
- The duplicate opens as the active tab, placed right after the source tab, with identical SQL and parameters.
- Results are not copied, and the copy is not linked to the source
.sqlfile. - Works for console and table tabs; hidden or disabled for notebooks.
Contributor notes
- Dominant language
- TypeScript
- Stars
- 5.1k
- Forks
- 335
- Avg merge
- 2d 8h
- Merged PRs (30d)
- 62
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
-
Update the logo across the app: icons, dock, installers and in-app brandingPossibly taken @wajrock claimed this today. 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
-
feature request good first issue
Difficulty 3/5 1-2 days Newbie friendliness 74/100
TabularisDB/tabularis#870 ·
Maintainers usually reply within 1 day
-
feature request help wanted
Difficulty 4/5 3-5 days Newbie friendliness 58/100
TabularisDB/tabularis#869 ·
Maintainers usually reply within 1 day
All issues in TabularisDB/tabularis
Similar issues
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Maintainers usually reply within 1 day
-
[Bug] remember() with special characters in namespace hangs until timeout instead of returning 400Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
MystenLabs/MemWal#1133 · 1 comment ·
Maintainers usually reply within 1 day
-
bug user-priority/P2
Difficulty 1/5 Under an hour Newbie friendliness 92/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 Under an hour Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Effect-TS/effect#8881 · 1 comment ·
Maintainers usually reply within 1 day