Skip to content

feat(app): add Duplicate to the tab right-click menu - #43

Merged
arifintahu merged 1 commit into
mainfrom
feat/tab-duplicate
Nov 3, 2026
Merged

arifintahu merged 1 commit into
mainfrom
feat/tab-duplicate

Conversation

@arifintahu

Copy link
Copy Markdown
Member

What and why

Adds Duplicate to the tab right-click menu, so a second shell with the same profile and folder is one click instead of the profile menu plus cd. Closes #42.

  • The duplicate opens right after the source tab and becomes active.
  • Profile and folder come from the source's panes (kept current by OSC 7); a split tab is split the same way; a custom title is copied, an automatic one is not.
  • The per-tab part of restoreSession is now openSavedTab, shared with the duplicate, so both stay in step.
  • Known gap: if the second pane of a split fails to spawn, the toast shows and the duplicate stays unsplit (same as restore).

How you checked it

  • cargo fmt --check, cargo clippy --all-targets -- -D warnings: pass

  • cargo test: 95 passed

  • pnpm turbo check test build: pass, 155 Vitest tests (3 new for the insert position)

  • pnpm version:check: pass

  • Not tried by hand in the running app (keyboard and split cases).

  • cargo fmt --check, cargo clippy -- -D warnings and cargo test pass

  • pnpm turbo check test build and pnpm version:check pass

  • Bug fixes have a test that failed before the fix (n/a, feature)

  • No secrets, personal paths or machine names in the diff

  • Docs and CHANGELOG.md updated if behaviour changed

Opens a fresh shell next to the tab with the same profile and folder,
split the same way, keeping a custom title. Reuses the session-restore
path (openSavedTab) so both stay in step.
@arifintahu arifintahu self-assigned this Nov 3, 2026
@arifintahu
arifintahu merged commit 204d9e9 into main Nov 3, 2026
4 checks passed
@arifintahu
arifintahu deleted the feat/tab-duplicate branch November 3, 2026 01:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(app): add Duplicate to the tab right-click menu

1 participant