Repository navigation
Issue 148: add horizontal tab context menu actions - #225
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Older manaflow preview screenshots (latest comment is below)Preview Videos and ScreenshotsOpen Workspace (1 hr expiry) · Open Dev Browser (1 hr expiry) · Open Diff Heatmap Failed to capture screenshots for commit
Generated by manaflow preview system |
31aceb3 to
d9b7511
Compare
Older manaflow preview screenshots (latest comment is below)Preview Videos and Screenshots⏳ Preview screenshots are being captured... Workspace and dev browser links will appear here once the preview environment is ready. Generated by manaflow preview system |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 31aceb3e36
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| let targetIndex = min(anchorIndex + 1, max(0, tabs.count - 1)) | ||
| _ = reorderWorkspace(tabId: tabId, toIndex: targetIndex) |
There was a problem hiding this comment.
Correct insertion index when placing workspace to anchor right
moveWorkspace(_:toRightOf:) derives targetIndex from the pre-move anchorIndex and feeds it directly to reorderWorkspace. When the new workspace currently sits before the anchor (which happens with the default afterCurrent placement if a different tab is selected), removing it shifts the anchor left, so inserting at anchorIndex + 1 lands one slot too far right. In that state, the new "to Right" actions place the tab after the wrong workspace.
Useful? React with 👍 / 👎.
|
|
||
| @discardableResult | ||
| func addWorkspace(toRightOf anchorTabId: UUID) -> Workspace { | ||
| let newWorkspace = addWorkspace() |
There was a problem hiding this comment.
Use anchor tab context for new workspace working directory
addWorkspace(toRightOf:) creates the workspace via plain addWorkspace(), which picks its working directory from selectedTabId. If a user right-clicks a non-selected workspace, the new tab is inserted next to the clicked workspace but inherits CWD from the active workspace instead, so "New Terminal to Right" (and browser creation via this path) can open in the wrong project directory.
Useful? React with 👍 / 👎.
Older manaflow preview screenshots (latest comment is below)Preview Videos and Screenshots⏳ Preview screenshots are being captured... Workspace and dev browser links will appear here once the preview environment is ready. Generated by manaflow preview system |
Older manaflow preview screenshots (latest comment is below)Preview Videos and ScreenshotsOpen Workspace (1 hr expiry) · Open Dev Browser (1 hr expiry) · Open Diff Heatmap Failed to capture screenshots for commit
Generated by manaflow preview system |
Older manaflow preview screenshots (latest comment is below)Preview Videos and ScreenshotsOpen Workspace (1 hr expiry) · Open Dev Browser (1 hr expiry) · Open Diff Heatmap Failed to capture screenshots for commit
Generated by manaflow preview system |
Older manaflow preview screenshots (latest comment is below)Preview Videos and ScreenshotsOpen Workspace (1 hr expiry) · Open Dev Browser (1 hr expiry) · Open Diff Heatmap Failed to capture screenshots for commit
Generated by manaflow preview system |
Older manaflow preview screenshots (latest comment is below)Preview Videos and ScreenshotsOpen Workspace (1 hr expiry) · Open Dev Browser (1 hr expiry) · Open Diff Heatmap Failed to capture screenshots for commit
Generated by manaflow preview system |
Older manaflow preview screenshots (latest comment is below)Preview Videos and ScreenshotsOpen Workspace (1 hr expiry) · Open Dev Browser (1 hr expiry) · Open Diff Heatmap Failed to capture screenshots for commit
Generated by manaflow preview system |
|
@codex review |
|
Codex Review: Didn't find any major issues. 🎉 ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
e776e02 to
279b8b9
Compare
Preview Videos and ScreenshotsOpen Workspace (1 hr expiry) · Open Dev Browser (1 hr expiry) · Open Diff Heatmap Failed to capture screenshots for commit
Generated by manaflow preview system |
…text-menu Issue 148: add horizontal tab context menu actions
Summary
kindandisPinned, adds tab context action delegate callback, and enforces pinned tabs at the front of each pane.Testing
cd vendor/bonsplit && swift test✅xcodebuild -project GhosttyTabs.xcodeproj -scheme cmux -configuration Debug -destination 'platform=macOS' build✅xcodebuild -project GhosttyTabs.xcodeproj -scheme cmux-unit -configuration Debug -destination 'platform=macOS' test❌ fails due to pre-existing missing symbolUpdateChannelSettingsincmuxTests/CmuxWebViewKeyEquivalentTests.swift(unrelated to this change).Notes
61b393cfrom branchissue-148-horizontal-tab-context-menuin https://github.com/manaflow-ai/bonsplit.