Repository navigation
feat(tabs): transfer folders onto existing tabs - #2092
Conversation
Reuse the shared file-drop handler for folder transfers and hover activation. Restrict folder-open intents to plus and unused tab-bar targets, preserving sidebar opening and tab reordering. Extend existing QA scenarios with file/folder variants and move undo coverage. Track the separate X11 hover-cancellation issue in #2091. Refs #2090
Tab headers' sidebar-location offer filter could never decide anything: sidebar drags are in-process String drags that the shared offer check already rejects, and the strip overlay claims them first. Remove it with the now-unused FileDropState::filter_offers hook. The append check in intent() was likewise unreachable because connect_accept already refuses folder drags on non-appending targets. Refs #2090
Review and cleanupMerged Review against the description and #2090. Confirmed: folders dropped on an existing tab header now go through the shared file-drop pipeline (move, Ctrl-copy, conflicts, undo), folder drags hover-activate tabs, and + / unused tab-bar space still open folders as new tabs. Sidebar-location opening and tab reordering keep their overlay route (the overlay's capture target rejects only folder drags). No earlier reviews or comments to reconcile. The skipped CodeScene check now passes locally: Fixes pushed
Tests. No tests removed. The scenario changes extend existing coverage with file/folder variants and undo checks instead of adding new scenarios. The text checks are not redundant with Validation
Follow-ups outside this PR
CI: all checks green on |
Description
Make files and folders behave consistently when dragged between tabs. Existing tab headers reuse the shared transfer and hover handlers; + and unused tab-bar space still open folders in new tabs. Extend existing QA scenarios instead of duplicating file/folder implementations.
Known limitations: the shared X11 Escape-after-hover issue remains tracked in #2091. An exploratory List multi-folder Ctrl-drag copied only one selected folder; its source-grouping cause remains unisolated (details in #2090). Neither is claimed fixed by this routing change.
Owner-approved exception: skip the unavailable CodeScene check for this push/PR (no token). Code health remains unverified; required CI is not waived.
Visual evidence
cross-tab-drag-and-drop-2090-20261108T082709Z.mp4
How to test
Expected result: Existing tabs transfer files and folders using the same move/copy and undo behavior. Hover activates the destination without creating another tab. + and unused space open the folder in a new tab without transferring its contents.
Related issue
Closes #2090