feat: drag-and-drop reordering for editor file tabs#86
Merged
Conversation
Enable seamless reordering of all tabs (terminal and editor) via drag-and-drop in a single unified tab bar. Terminal and editor tabs can be freely mixed and reordered together. **Changes:** - Added tabBarOrderByWorktree + setTabBarOrder to terminal slice for unified visual tab ordering - Rewrote TabBar component to use single DndContext with all tab types in one SortableContext (instead of isolated groups) - TabBar reconciles stored order with current items (handles tab addition/deletion) - Keyboard shortcuts (Cmd+Shift+]/[) now respect custom tab order - Updated editor tab context menu: removed "Copy Path to Line" options, replaced "Close Others" with "Close Tabs To The Right" to match terminal menu - "Close Tabs To The Right" now closes both terminal and editor tabs to the right in unified tab order - Terminal tab sortOrder stays in sync with visual order for session persistence Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1e27c75 to
3af8557
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
@dnd-kit/sortablelibrary already used for terminal tabsChanges
useSortablehook with drag transform/opacity, replacedonClickwithonPointerDownfor proper dnd-kit integrationSortableContextto include both terminal and editor file IDs, updatedhandleDragEndto detect which group is being reorderedreorderFilesaction that reorders files in-place while preserving other-worktree file positionsreorderFilesstore action to TabBarTest plan
🤖 Generated with Claude Code