Explorer Breadcrumb Middle-Click New Tab
Opens folders in a new tab by middle-clicking breadcrumb items and their dropdown menus (Linux style).
Author: osmanonurkoc
🐧 Motivation: The Linux Feel
For users coming from Linux environments (KDE Dolphin, GNOME Files, Thunar),
middle-clicking a parent folder in the address bar to open it in a new tab
is pure muscle memory. Windows 11 introduced Tabs, but missed this shortcut.
This mod bridges that gap. It allows you to middle-click any folder name
in the breadcrumb bar to instantly open that location in a new background tab.
⚙️ How it Works (Technical Deep Dive)
Windows 11 Explorer (specifically versions using XAML Islands) presents unique
challenges for automation. Version 1.2.0 completely abandons the Windows Clipboard
to ensure absolute stability and preserve the user's copied files.
- Threaded Hook: Installs a Low-Level Mouse Hook (WH_MOUSE_LL) on a
dedicated native thread to detect middle-clicks without freezing the UI.
- UIA Focus Probe: * Simulates
Alt+D to focus the address bar.
- Uses
UIAutomation to grab the currently focused element and extract its ValuePattern or Name.
- Simulates
Esc to safely exit edit mode.
- Sibling Counting (The Duplicate Fix): * Identifies the clicked item and counts how many folders are visually to its right to resolve duplicate folder names (e.g.,
...\Source\Source).
- Unicode Injection Navigation:
- Simulates
Ctrl+T (New Tab) -> Alt+D (Focus Address Bar).
- Converts the target path into an array of
KEYEVENTF_UNICODE input structures.
- "Types" the path directly into the address bar at machine speed, bypassing the clipboard entirely.
- Simulates
Enter.
✨ Key Features & Fixes
- Dropdown Menu Support (NEW in 1.2.0): Middle-clicking items inside the breadcrumb dropdown menus (the
> arrows) now opens them in a new tab!
- 100% Clipboard-Free: Will not interfere with your copied files, images, or formatting.
- Crash-Free: Removes legacy clipboard polling that caused Explorer instability.
- Duplicate Folder Support: Perfectly handles paths with repeating names.
- Zombie Tab Prevention: Strict "Breadcrumb Whitelisting" ensures middle-clicking other areas doesn't trigger false positives.
- Drive Letter Support: Detects
(C:) style items and opens the drive root instantly.
✅ Compatibility
- Works on Windows 11 (22H2, 23H2, 24H2, 25H2 and Insider builds).
- Compatible with all Explorer view modes (Compact, Touch, etc.).
⚠️ Limitations
- Virtual Folders: May not work on special locations like "Control Panel"
or "This PC" root if no valid filesystem path exists.
- Input Interference: Uses
SendInput. Avoid touching the mouse/keyboard
during the split-second navigation sequence (approx. 400ms).