File Pilot as a reference for a small, fast native executable
File Pilot is a closed-source Windows file manager by Vjekoslav Krajačić (Voidstar). Its v0.8.5 executable is 2,585,680 bytes, it targets 64-bit Windows 7 and later, and it draws its whole UI with its own GPU renderer. Those constraints match Voyager7's closely, so this document records how File Pilot gets there and what we should copy.
Sources: static inspection of FPilot.exe v0.8.5 (Ghidra through REA, PE parsing, disassembly)
and the developer's published notes, checked 2026-11-05. The original investigation did not run the executable. The Tabs section below
adds a separate runtime study; startup, idle CPU, RAM and GPU remain unmeasured.
The original sections use these labels:
- Observed: seen in the binary.
- Published: stated by the developer.
- Inference: our engineering reading of the above.
Summary
The small size comes from native code plus a purpose-built UI that leans on DLLs Windows already ships. It does not come from compression or an asset bundle. The speed has specific causes: sleeping when idle, batching draw calls, bulk directory queries, background work, change notifications, caching, and arena-style allocation. "Written in C" is not the explanation on its own; the explanation is how much work it avoids.
Architecture
Published. The program is C with an in-house platform layer, UI framework, containers, memory
primitives, UTF-8 strings, and math. It has two renderers, D3D11 and OpenGL, and D3D11 has been
the Windows default since v0.7.1. The UI is immediate-mode: each update describes the interface
from current state, with no retained widget tree. The only external library it names is
stb_sprintf.h.
(architecture,
IMGUI reply,
v0.7.1)
Observed. The binary names Program.c, WinMain.c, Voidstar.h, and
WinFontRasterizer.cpp. That points to mostly C, with C++ only where Windows text APIs need it.
Windows events ──▶ application state ──▶ renderer (D3D11 / OpenGL) ──▶ display
▲
file APIs, directory jobs, change notifications, cached icons/thumbnails/previews
Where the bytes go
Observed. Raw file ranges, including section padding:
| Part | Bytes | Share |
|---|---|---|
.text (machine code) | 2,191,872 | 84.8% |
.rdata (constants, strings, imports) | 186,880 | 7.2% |
.rsrc (5 icons, manifest, version, 1 data blob) | 147,968 | 5.7% |
.pdata (unwind metadata) | 37,376 | 1.4% |
| Certificate table | 12,368 | 0.5% |
.data | 8,192 | 0.3% |
| PE headers | 1,024 | <0.1% |
| Total | 2,585,680 | 100% |
- There are 269 static imports across 16 DLLs (windowing, filesystem, shell, fonts, graphics) and no delay-import table. Some APIs are also resolved at runtime.
- There is no image atlas for widgets. The embedded shaders draw rectangles with corner radii, borders, gradients, dashed outlines, and texture sampling, so a rounded button costs a few floats per instance instead of a bitmap per size and state.
- Inference. Almost all of the file is the application's own code. The rest of the work is done by system DLLs that every process shares. The download size tells you nothing about the working set.
Why it is responsive
1. Sleep when idle
Observed (0x140203790, diagnostic name Win_WaitForMessages): calls
MsgWaitForMultipleObjectsEx with zero handles and INFINITE timeout on one path. The UI thread
blocks until input or a posted message arrives. Immediate mode does not imply redrawing at 60 Hz.
2. Many shapes per draw call
Observed (0x140079800, OpenGL path): uploads count × 72 bytes of per-shape records, then
calls glDrawArraysInstanced(…, 4, count). The vertex shader derives quad corners from
gl_VertexID, so there is no vertex buffer for geometry, only instance data. Whether the D3D11
backend does the same was not checked, though it is likely.
3. Bulk directory queries
Observed (0x1401e81c0): recursive enumeration uses FindFirstFileExW with
FindExInfoBasic (skips 8.3 short names) and FIND_FIRST_EX_LARGE_FETCH (bigger kernel buffer),
then FindNextFileW. Discovered subdirectories go to a job queue in batches of 16.
Published. Indexing uses ordinary Windows APIs. Direct NTFS MFT reading is still listed as future work on the roadmap, so the speed is not an Everything-style MFT scan.
4. Keep slow work off the interaction path
Observed (0x14020a4b0): creates a Windows thread pool and queues callbacks into internal job
queues. Published (v0.8.1): metadata runs
as background tasks. Fixes in that release stopped thumbnails from delaying view changes. This
reduces latency; it does not make disks faster.
5. React to changes, reuse expensive results
Observed (0x1401ec6c0, Win_DirWatcherProc): overlapped ReadDirectoryChangesW with a
32 KiB buffer, waits on events, and posts a message to wake the UI thread. The UI updates
incrementally instead of rescanning.
Published (v0.7.1): icons, thumbnails,
and previews go into a configurable cache, and previews are decoded at window size rather than
full resolution.
6. Control allocation in hot code
Observed (0x140112280): the job queue reuses freed records. Otherwise it allocates by
bumping an aligned offset in a region and calls VirtualAlloc to commit more when needed.
Inference: this is an arena or free-list pattern that avoids general-heap bookkeeping for
small, short-lived records.
Lessons for Voyager7
These map the observations onto the architecture. They are design guidance, not decisions.
| File Pilot does | Voyager7 equivalent |
|---|---|
UI thread blocks in MsgWaitForMultipleObjectsEx(INFINITE) | Block on window messages plus the PTY/scraper pipe handles. Draw only when VT state is dirty or input arrives. A blinking cursor is a timer, not a render loop. |
| One instanced draw per batch, geometry derived from vertex ID | One instanced D3D11 draw per frame for cells: a per-cell record (glyph atlas index, fg, bg, flags) and the corners from SV_VertexID. Backgrounds, cursor, and selection go in the same pass. |
| Shapes drawn by shader, not bitmaps | Use shader geometry for backgrounds, selections, cursors, and decorations. Preserve the selected font's glyphs, including borders and Powerline symbols; see terminal rendering gotchas. |
| Cached, display-sized assets | Glyph atlas filled on demand at the current font size and DPI and kept between frames. Rasterize each glyph once. |
| Background jobs for slow work | Child I/O, scraping, and VT parsing never run on the UI thread. The renderer takes a snapshot under a short lock. |
| Change notifications instead of polling | The hook DLL pushes bytes. The scraper falls back to polling only when it has to, and backs off when the console is idle. |
| Arena and free-list allocation | Per-frame scratch arena for draw records. Reserve large regions and commit on demand, which is already relevant to the Win7 commit/OOM work in tests/win7/. |
| Few static deps, all in-box DLLs | Only Win7 in-box DLLs (d3d11, dxgi, dwrite, user32, kernel32). Use GetProcAddress for anything newer (ConPTY). No CRT-heavy or framework dependencies. |
| Small resources section | One icon, a manifest (DPI awareness, Win7 supportedOS GUID), and a version block. Shaders compiled ahead of time into .rdata, with no runtime d3dcompiler dependency. |
Checklist when evaluating a change:
- Does the idle path still block? Idle CPU should be about 0%.
- Is the frame still one draw call (or a small constant number) regardless of grid size?
- Did a new static import appear? Is it in-box on Win7 SP1?
- Did
.textor.rsrcgrow by more than the feature justifies? Check with a section dump. - Does any slow operation (I/O, font fallback, scraping) now run on the UI thread?
Limits of this evidence
- No benchmark was run. Speed claims here are mechanisms, not measurements.
- On-disk size is not RAM. Heaps, stacks, GPU textures, and loaded DLLs all add to it. The developer also documents fixing COM-library and directory-watcher memory leaks (v0.8.4).
- Decompiled logic is approximate. Indirect calls and recovered types are incomplete, and only one traversal path and the OpenGL draw path were verified at the instruction level.
- Custom UI has costs: input handling, accessibility, text shaping, and IME all have to be written by hand. For a terminal, text and IME are the expensive parts.
- File Pilot is closed source (FAQ). Nothing here comes from its source, and nothing should be copied from its binary. Use it as prior art only, in the same way as winpty and ConEmu.
Further reading
- File Pilot: Inside the Engine, BSC 2025 (not yet reviewed)
- Why File Pilot compiles in 3 seconds, Wookash Podcast (architecture and memory from 23:08)
- Hanselminutes #1030: File Pilot and a return to fast UIs
Inspected binary SHA-256: ab5e7bbfa50872225f24856697ef7341a58e51a5e521435ba0dfeeb8ab3b2676.
The full HTML explanation and the raw research notes are kept locally in .scratch/ (gitignored).
Tabs
Partial study on 2026-11-08, using the same v0.8.5 SHA-256 above. Copies in
C:\v7\tabs-w45 were launched on the interactive Win7 and Win10 desktops.
Screenshots and the exploratory probe are in build/tabs-w45/. This is an
initial observation ledger, not a completed behavioral specification.
- Observed-runtime: On both guests the tabs occupy a custom caption row. On Win7 File Pilot replaces the Aero caption appearance. Voyager7 must not adopt that Win7 treatment: the owner requires the native caption untouched.
- Observed-runtime: In the first clean launch the tab strip remained visible with one tab; the plus button immediately followed the tab. That first capture was overwritten by the repeat study and is not retained as a golden.
- Observed-runtime: The retained 1000-pixel-wide window captures have a caption row ending at approximately y=32. Visible repeated tab boundaries are approximately 125 physical pixels apart; the hovered shape starts at y=5. These are screenshot measurements, not logical-DPI constants or proven min/max width rules. DPI was not independently recorded.
- Observed-runtime: A hovered tab shows a close cross at its right edge and
a contrasting filled background. Other visible inactive tabs have separators
and no close cross. See
win7-fp-hover.pngandwin10-fp-hover.png. - Observed-runtime: Middle-clicking the hovered tab removed it in the recorded
sequence and the remaining visible tabs shifted left. The plus button became
visible after the remaining tabs. See
*-fp-middle-close.png. - Observed-runtime: The tab tooltip reports Ctrl+W, Ctrl+F4 and MouseMiddle for closing, and Ctrl+Shift+Down / MouseRight for the tab menu.
- Observed-runtime: Crowded-strip captures show left/right chevrons before the tabs and a clipped rightmost tab before the caption's reserved area.
- Inference: The chevrons appear to be overflow navigation controls. Their
actual scroll behavior and whether the plus button scrolls with tab content
still need interaction testing. (Second pass: the binary names them
ScrollLeft/ScrollRightand the plus button is laid out inside the same scrolled row after the last tab. See "Tab strip specification" below.) - Observed-binary: Ghidra string inventory contains separate new, duplicate,
shift-left/right, close-other/left/right, reopen, next/previous, numbered-tab,
last-tab and search-tab command descriptions. It also contains tab drop-marker
names. Evidence
ev_58af37a285d1e7b649e5baab762f64623c6e8e39277b32778fc2cd8c8a03a767. These strings establish vocabulary, not implementation or bindings. - Observed-binary: An animations setting description mentions popups, view
scrolling and text cursors, without establishing tab animation timing.
Evidence
ev_ac8fbfbc235d024fb0735908a9a5a417d04d66ec040ca4746255552cc2182c66.
Measurement limitations: File Pilot restores prior session state. The exploratory
probe named captures 1-tab, 5-tabs and 15-tabs from the number of shortcuts
it attempted, without verifying restored tab counts. Those filenames are not
count assertions. The attempted empty-strip double-click hit an existing tab
and opened a folder Properties dialog; it does not establish empty-strip behavior.
Exact min/max widths, shrinking thresholds, overflow scrolling, drag hit-testing,
drag animation, open/close animation curves/durations and keyboard wrap behavior
remain unknown. No decompiled code was copied into Voyager7.
The follow-up function-analysis request produced no usable function evidence;
the Ghidra session was closed. The exported string ledger remains in
build/tabs-w45/filepilot-evidence.json. (Superseded by the second static
pass below, which recovered the tab, strip, caption and animation functions.)
Tab strip specification (second static pass, 2026-11-08)
The same v0.8.5 binary (SHA-256 ab5e7bbf…2676, 2,585,680 bytes; copies in
~/Downloads/FPilot.exe and build/tabs-w45/FPilot.exe are identical) was
decompiled with REA 6.8.0 / Ghidra 12.1.4, plus objdump for a few call
sites. File Pilot was not run for this pass. Pixel measurements come from the
existing build/tabs-w45/*-hover.png captures. Labels:
- Observed-binary: read from decompiled or disassembled code. The address is the durable reference.
- Observed-runtime: measured from the existing screenshots.
- Inference: our reading.
REA Evidence IDs are listed for traceability. The session was closed without a snapshot, so re-derive from the address and SHA-256. The functions have no symbols; the names below are ours.
| Our name | Address | Evidence ID |
|---|---|---|
window procedure (Win_WindowProc in its own diagnostic string) | 0x14020c570 | ev_0db75afc…7801 |
| strip row: width rule, scroll buttons, reveal-active | 0x140148410 | ev_46cbe647…0707 |
| per-tab widget, plus button, drag/drop targets | 0x14014acc0 | ev_3166b707…6865 |
| drop placeholder | 0x140147fc0 | ev_2ca1935b…c17b (batch) |
| caption buttons (min / max / close) | 0x14018b490 | same batch |
| drag tooltip ("Move/Copy tab") | 0x14017b3a0 | same batch |
| per-frame layout metrics and caption height | 0x1401a1210 | ev_63a275ce…309d |
| "this rect is not caption" registration | 0x14018ad80 | ev_3514e8da…bc7a |
| animation step | 0x1401cb360 | ev_3324b96d…ecef |
| animation rate setup | 0x1401cb970 | objdump |
| caption height and top band copied into the window | 0x140203aab | objdump |
Units and DPI
- Observed-binary (
0x1401a1210): every tab-strip size is a multiple of one UI unit u, rounded half away from zero to whole pixels. The unit comes from the UI font size scaled by DPI:pt × (dpi / 96) × 4/3.WM_DPICHANGEDstores the new DPI and applies the suggested rectangle. Frame metrics useGetSystemMetricsForDpiwhen it is available andGetSystemMetricsotherwise. - Observed-runtime + Inference: the caption buttons measure 41 px apart at the captured scale, and 41 = round(3.4 × 12). So u = 12 px, which is a 9 pt UI font at 96 DPI. Pixel values below are for u = 12.
- A few metrics are rounded to an even number (
0x1401a1210, lines ~1026–1097 of the pseudocode) so that icons stay centred on whole pixels.
Geometry (Observed-binary unless marked; px at u = 12)
| Element | Rule | px |
|---|---|---|
| Caption/strip row height | round(2.7u) (window field +0xa20 → +0x898) | 32 |
| Top resize band inside the client area | round(0.3u) (+0xa24 → +0x89c) | 4 |
| Strip padding when restored | round(0.2u) left and round(0.3u) top (field order inferred); 0 when maximized | 2 / 4 |
| Tab height | strip height + 1 px (+0x1898, the border width = round(0.1u)) so the active tab covers the divider line | 27 + 1 (runtime: y=5…31, active also covers y=32) |
| Tab width | clamp(floor((avail − n·(1 + 2·round(0.2u) + round(0.3u)) − round(2.4u)) / n), round(10u), round(16u)) | min 120, max 192 |
| Observed tab pitch | Observed-runtime | 125 (120 + ≈5 spacing) |
| Hover highlight width | Observed-runtime | 118 |
| Tab top corner radius | (round(0.9u) + round(0.6u)) / 2, bottom corners square | 9 |
| Active-tab bottom flare (concave "ears") | radius round(0.6u), ear width round(0.6u) − round(0.2u); only when the rounded-style flag (+0x187c) is on | 7 / 5 |
| Content order inside a tab | icon box 1.8u × 1.8u → gap 0.2u → title (text size, may shrink to 10 %) → flexible spacer → gap 0.5u → close button → trailing gap 0.2u | 22 / 2 / … / 6 / 29 / 2 |
| Close button | width round(2.4u), height 0.9 × tab height, corner radius max(0, 9 − round(0.2u)) | 29 × 24, r 7 |
| Close glyph | icon-font codepoint U+E038; Observed-runtime 8 × 8 px, vertically centred | 8 |
| Inactive separator | Observed-runtime 1 px, y 11…27 (17 px, centred), hidden next to the hovered or active tab | 1 × 17 |
| New-tab "+" button | U+E02B, width = its content plus round(0.2u) padding (round(0.1u) in one maximized case; side not decoded), height = tab height, all four corners radius round(0.6u). It is the last child of the scrolled row, so it scrolls with the tabs | ≈ 29 |
| Scroll buttons ‹ › | ScrollLeft/ScrollRight, width round(1.8u), full height, gap round(0.1u) (made even), then round(0.5u) (made even) before the tabs | 22, gap 2, then 6 |
| Caption buttons | width round(3.4u), height = row height; glyphs U+E034 minimize, U+E035/U+E036 maximize/restore, U+E037 close | 41 × 32 |
| Leading reserve (left-most panel) | spacer max(0, round(3u)·2 + round(0.2u) − sidebar width) keeps room for ☰ and the sidebar toggle | ≤ 74 |
| Tooltip | delay 750 ms (0x2ee), maximum width 10u | 750 ms / 120 |
Width, overflow and keeping the active tab visible
- Observed-binary (
0x140148410): all tabs get equal widths, recomputed every frame from the tab count and the row width. Titles are not measured. The share is clamped to [10u, 16u]. While a tab drag hovers over this strip, the count is n + 1 so that a slot opens for the drop. - Observed-binary: tabs never go narrower than 10u. Past that point the row scrolls horizontally. The ‹ and › buttons step the scroll offset, and each is disabled at its end (offset 0 / offset max). The step size comes from an input-state field whose meaning we did not resolve. Observed-runtime: with many tabs the left chevron is dimmed at offset 0, and the last visible tab is clipped at the row's right edge.
- Observed-binary (end of
0x140148410): when a tab index is flagged for reveal (selection change), the target offset is clamped so that the tab becomes fully visible. The clamp bounds use the previous tab's left edge and the next tab's right edge, so the minimal scroll also tends to show the neighbours. Inference: the scroll target goes through the framework's scroll API, so it eases with the animation below. - Observed-binary, bounded negative: the width rule has no Chrome-style freeze that keeps widths fixed while the pointer stays on the strip after a close. Widths are recomputed every frame.
Interaction
- Hover / active (Observed-runtime): the hovered tab gets a filled
rounded highlight (light theme: accent-tinted
#99DEF8). The active tab uses the content background, merges with the content through the bottom flares, and covers the 1 px divider. Inactive tabs are bare and separated by 1 px lines. - Close button visibility (Observed-binary,
0x14014acc0≈ lines 1478–1516): the × glyph is always emitted. The hovered tab and the active tab (the focused panel's current tab) colour it visibly. Other tabs use a different colour id, and the runtime capture shows nothing there. Inference: that colour is transparent. Result: × on hover plus × on the active tab. Tabs with an unidentified per-tab state (+0x500) show × only while the button itself is hot. - Mouse, Observed-binary (widget event byte: 0 left, 1 right, 2 middle):
- Left press: select the tab (command
0x22). - Left double-click on a tab: command
0x60. The runtime study saw this open the folder Properties dialog. - Right button: select, then open the tab menu (
0x61) anchored at the tab's left edge and round(0.2u) below its bottom edge. - Middle click: close (
0x55). A left or middle click on × also closes. - Left or middle click on "+": new tab after the current one, honouring the New Tab Show setting.
- A setting at
+0x840switches some actions between press and release. We did not identify that setting by name.
- Left press: select the tab (command
- Empty strip (Observed-binary,
0x140148410end →0x14018ad80): only the rectangle actually covered by tabs is registered as "client" inside the caption row. Space to the right of the last tab is left asHTCAPTION, so dragging there moves the window and a double-click maximizes throughDefWindowProc. Inference: this is the stock Windows behaviour, not File Pilot code. - Drag to reorder (Observed-binary,
0x14014acc0≈ lines 1744–1767):- Start: a held left press on a tab starts a tab drag (
0x56) once |x − press x| > round(u) (12 px). The check is horizontal only. - Drop position: tabs are scanned left to right, and the drop slot goes
before the first tab whose midpoint is right of the pointer
(
x < left + width/2). Otherwise it goes at the end. Hovering over the dragged tab's own span shows no slot. - Placeholder (
0x140147fc0): a full tab-sized rounded slot (colour id0x3c) with round(0.2u) spacers on each side. The strip lays out n + 1 slots, so the neighbours part to make room. - Feedback: a tooltip says Move tab or Copy tab. Copy is chosen by a modifier bit in the input state. Inference: Ctrl.
- Other panels' strips are also drop targets.
- Inference: the dragged tab stays drawn in place (its box gets an alternate style flag) rather than following the pointer.
- Start: a held left press on a tab starts a tab drag (
- Keyboard:
- Observed-runtime (tooltips): close = Ctrl+W, Ctrl+F4, MouseMiddle; tab menu = Ctrl+Shift+Down, MouseRight.
- Observed-binary, mapping inferred from string order next to the command list: Ctrl+T new; Ctrl+N (likely duplicate); Ctrl+Shift+PageUp/PageDown shift tab; Ctrl+Shift+W; Ctrl+Shift+T reopen; Ctrl+Tab and Ctrl+PageDown next; Ctrl+Shift+Tab and Ctrl+PageUp previous; Ctrl+1…8 and Ctrl+keypad1… select N. The hover tooltip lists the Select-N binding for the first eight tabs.
Animation
- Observed-binary (
0x1401cb360,0x1401cb970): UI animation is an exponential approach evaluated once per frame:x += (target − x) · (1 − 2^(k·dt)), withdt = max(0.001 s, frame time). There are four speed classes:k = −50(default),−70,−30and−20s⁻¹. The default has a 20 ms half-life and gets within 1 % in about 133 ms. Normalized values snap to the target at |Δ| < 0.01; animated rectangles snap at 0.25 px. While anything is still moving, the step requests another frame. When nothing moves the loop goes back to sleeping. - Tab open (Observed-binary): the tab's width is
W · t, wheretis the box's appear value animating 0 → 1. A new tab grows in from zero width. The panel's only tab, and tabs stamped with the current frame, snap tot = 1. Inference: the stamp is for restore and programmatic opens. - Tab close: no close animation was found. The tab leaves the list
immediately and the equal-share widths are recomputed. Inference: box
rectangles have their own animated copy (
+0x280…, 0.25 px snap), so the neighbours probably slide into place, but whether tab boxes enable that flag is not established. - Hover/active fades (Observed-binary,
0x1401d51d0…): each box's hot, active and focus values animate at the default speed. - Tab icon fade-in (Observed-binary): the icon fades in linearly over 1/6 s from a per-tab timestamp.
- Reduce motion (Observed-binary): when File Pilot's own Animations
setting is off, every animation step returns the target value immediately.
The binary queries
SystemParametersInfoWonly for actions0x66(SPI_GETMOUSEHOVERTIME) and0x68(SPI_GETWHEELSCROLLLINES). It never asks forSPI_GETCLIENTAREAANIMATION, so the Windows reduce-motion setting is ignored. - Font-size changes go through the same animator, so UI zoom eases too.
Title bar per OS (Observed-binary, 0x14020c570)
-
WM_NCCALCSIZE: File Pilot shrinks the client rectangle on the left and right bySM_CXPADDEDBORDER + SM_CXFRAME, and at the bottom bySM_CXPADDEDBORDER + SM_CYFRAME, using the DPI-aware variants. The top is not shrunk, so the client area starts at the top of the window. When maximized, the top is inset by the same frame amount. When maximized with an auto-hide taskbar on the bottom edge, one extra pixel is left free. -
No DWM frame extension: the binary does not use
DwmExtendFrameIntoClientArea. Its only static dwmapi import isDwmSetWindowAttribute. Two platform hooks set attribute 2 (DWMWA_NCRENDERING_POLICY) to 1 (disabled) and back to 0 (use window style). When they run is not established. -
WM_NCHITTEST: inside the caption row (y < 2.7u) the default isHTCAPTION. Rectangles registered by the strip and caption buttons returnHTCLIENT. When not maximized:HTLEFT/HTRIGHTare returned within the frame width of the sides.HTTOP,HTTOPLEFTandHTTOPRIGHTare returned fory < round(0.3u).- In a borderless mode,
HTBOTTOM*is returned along the bottom edge.
The caption buttons are therefore client-drawn
HTCLIENTwidgets. File Pilot never returnsHTMAXBUTTON, so the Windows 11 Snap Layouts flyout cannot appear over its maximize button. -
Win7: there is no OS-specific branch, so the same code runs. The top native caption is removed and File Pilot paints its own caption row there. Observed-runtime (
win7-fp-hover.png): the left, right and bottom edges keep a solid 1 px black / 6 px#BAD2EA/ 1 px white system frame (a Basic-style frame in that VM), and there is no Aero caption. Voyager7 will not copy this on Win7. -
Win10 (Observed-runtime): the side frames are invisible resize borders with a 1 px DWM edge. Row y = 0 is a 1 px line (
#D8D8D9), and the caption row fills y = 0…31.
Rendering
- Observed-binary: the strip, tabs, chevrons, "+" and caption buttons are
ordinary boxes in the same immediate-mode UI as the rest of the app, built
from style stacks (width, height, colour id, corner radii, padding) and
drawn by the instanced D3D11/OpenGL shape renderer described above.
- Glyphs come from an icon font in the private-use area (U+E010…U+E038).
- Text goes through DirectWrite (
WinFontRasterizer.cpp) into the glyph atlas.
- Title overflow: the title box may shrink to 10 % of its natural width. No U+2026 or "…" use connected to tab titles was found (bounded byte and xref search), so ellipsis, clipping or a fade-out is not established.
Recommended Voyager7 values
These are our choices, derived from the findings above, not File Pilot's
code. Voyager7 should express them in DIPs from one UI unit
u = 12 DIP × (dpi / 96) (9 pt Segoe UI), rounded half away from zero.
| Item | Voyager7 value | Note |
|---|---|---|
| Strip row height | 2.7u = 32 DIP | Win10+ is also the caption row. On Win7 it is a client row under the untouched native caption. |
| Tab inset when restored | 4 DIP top, 0 when maximized | Fitts's law at the screen edge when maximized |
| Tab height | row − top inset; active tab +1 px over the divider | |
| Tab width | equal share, clamp [10u, 16u] = [120, 192] DIP | Titles are not measured |
| Gap between tabs | 4 DIP + 1 px separator | Matches the 125 px pitch |
| Overflow | horizontal scroll with ‹ › buttons (22 DIP, disabled at the ends) left of the tabs; mouse wheel scrolls too | Never shrink below the minimum |
| Reveal on activate | minimal scroll that makes the active tab fully visible, preferring neighbour edges | |
| Corner radii | tab top 9 DIP; active flare 7 DIP; close button 7 DIP | |
| Close button | 29 × 0.9·tab height DIP, 8 DIP glyph; shown on hover and on the active tab | Middle-click also closes |
| "+" button | 29 DIP wide, directly after the last tab, scrolls with the tabs | |
| Drag start | |dx| > 12 DIP or |dy| > 12 DIP; the tab tears off into its own window once the pointer is 12 DIP beyond the row or outside the window (Windows Terminal / Ghostty GTK; File Pilot has none) | |
| Drop slot | midpoint rule; tab-sized placeholder; neighbours slide | |
| Animation | 1 − 2^(−50·dt) per frame; snap at 0.01 (normalized) or 0.25 px; tab open grows width from 0 | ≈ 130 ms settle |
| Reduce motion | honour SPI_GETCLIENTAREAANIMATION and a config switch; when off, every animation snaps | File Pilot only has its own switch |
| Tooltip | 750 ms delay, max width 10u | |
| Caption buttons (Win10+) | 41 × 32 DIP; maximize returns HTMAXBUTTON on Win11 for Snap Layouts | Deliberate deviation from File Pilot |
| Empty strip area | HTCAPTION (drag moves, double-click maximizes) | |
| Top resize band (Win10+) | 4 DIP inside the client area | |
| Keyboard | Ghostty defaults, since config is a Ghostty superset: Ctrl+Shift+T new, Ctrl+Tab / Ctrl+Shift+Tab and Ctrl+PageDown/PageUp next/previous, Ctrl+Shift+PageUp/PageDown move, Alt+1…8 go to tab, Alt+9 last | Not File Pilot's Ctrl+T / Ctrl+W |
Reconciliation notes:
- The earlier runtime figure of "≈125 px boundaries" is the 120 px minimum width plus about 5 px of spacing.
- The earlier "chevrons before the tabs" are the scroll buttons.
- In the vendored
Config.zig, Ghostty registers ctrl+shift+w twice (close_surface, thenclose_tab:this). Which binding wins depends onBinding.Set.putreplacement semantics. Check that before relying on the W45 note.
Unknowns
- How title overflow is drawn: ellipsis, hard clip or fade.
- Whether tab boxes animate position (neighbours sliding after a close or reorder) or jump. The framework supports rectangle animation, but the flag on tab boxes was not decoded.
- The scroll step per ‹ › activation, and whether the chevrons are hidden when nothing overflows.
- Mouse-wheel behaviour over the strip.
- What the drag source does outside every strip, and whether a tear-off to a new window exists. Only the Duplicate Tab To New Window command was found.
- Whether the dragged tab is drawn dimmed in place.
- The meaning of the per-tab state at
+0x500, which changes × visibility and width. - The press/release setting at
+0x840. - When the
DWMWA_NCRENDERING_POLICYhooks run, and how the Win7 frame looks under Aero glass. The VM capture shows a Basic-style frame. - Exact colour ids → theme colours, and the hover highlight inset (118 of 125 px).
- Which of the inferred default shortcut mappings are actually correct.
No decompiled code was copied into Voyager7. The temporary pseudocode stayed in the session scratchpad.