Middle Click New Tab
Middle-click the empty tab strip area of File Explorer, Notepad or Terminal to open a new tab
Author: venasataa
The mod opens a new tab when you release the middle mouse button over the empty space of a tab strip.
Three apps are supported:
- File Explorer: the new tab is opened by invoking the native AddButton (fallback: Ctrl+T).
- Notepad: the new tab is opened by invoking the native AddButton (fallback: Ctrl+N).
- Terminal: the new tab is opened by invoking the native AddButton (fallback: Ctrl+Shift+T). Note: This does not work if Terminal is running as administrator due to privilege isolation.
You can enable or disable each app individually in the mod's settings tab.
How it works:
- The mod runs as a standalone Windhawk Tool, ensuring it executes in a single
instance and doesn't inject multiple hooks into different Explorer processes.
- A dedicated low-level mouse hook thread records middle-button press/release events.
It never performs slow UI Automation work and never blocks global input.
- If the press looks like it happened in a tab strip area, an isolated UI Automation
worker thread verifies whether the point is on an actual tab, a button, or empty
tab strip space.
- If the mouse button is released before the check finishes, the mod temporarily
holds the release event and re-sends it synthetically after the check. This avoids
the race condition where the native app closes the tab before the mod can inspect it.
- Middle clicking an actual tab or the add button is left untouched, so the native
behaviors keep working perfectly.
