forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on fbc29d12fa2e194b105dd2344342fc50da4e90cdFiltered to crates/app/src/keymap.rsClear filter

2026-09-24

📝 docs(keys): the arrow comment stops claiming no card consults the keymapAhmet Kaan Gümüş · dd3fe34
📝 docs(keys): the arrow comment stops claiming no card consults the keymap

The sentence said a card answers the stroke and returns before the keymap is consulted at all, which stopped being true for the six document strokes this lane made reachable (verifier finding H4). It now says the card answers its own strokes first and names the exception.

2026-09-14

✨ feat(audio): create a waveform visualizer as a video clipAhmet Kaan Gümüş · 735b90e
✨ feat(audio): create a waveform visualizer as a video clip

Select an audio clip and press h (or the clip menu). The sound's envelope
is painted as a sliding mirrored waveform onto a video lane, so preview
and export both show it. Paste still never drops a song on V1.

2026-09-13

✨ feat(silence): keep-only invert — cut speech, leave the quietAhmet Kaan Gümüş · 5cd971b
✨ feat(silence): keep-only invert — cut speech, leave the quiet

Silences card gets a Keep only silence switch (k). Off is today's
jumpcut; on, cut/speed act on the complement of the scan so the
quiet stays. Empty quiet still refuses rather than cutting the
whole clip.

Also drop the second tooltip on the card maximize glyph — gpui
panics if .tooltip() is called twice, which crashed every param
card including this one.

2026-09-09

🎨 style(app): a label names the verb — every action in four wordsAhmet Kaan Gümüş · 488076a
🎨 style(app): a label names the verb — every action in four words

The registry's labels were sentences: parentheses explaining state, colons
listing choices, articles. They truncated in the KEYS list, in every 260px
menu plate and in hover plates. Four words each now, verb first; what a
parenthesis carried is the refusal the oracle and the engine already word.
The menu no longer trims a label at its first parenthesis — there is none.
✨ feat(app): the keys list is the dock's KEYS tab and the spine ends in one ?Ahmet Kaan Gümüş · c14d76f
✨ feat(app): the keys list is the dock's KEYS tab and the spine ends in one ?

The plate over the bench is gone with its scrim: the list rides the dock
beside SOURCES and CLIP, stable geography that occludes nothing, scrolls
like its neighbours and needs no heading prose or esc hint because the tab
strip is the way back. `?` swings the dock there and a second `?` or
`escape` swings it back — a toggle, not a hold, and not a card, so every
other stroke keeps meaning what the spine says it means.

The spine's `?` ghost drops the badge that only repeated its own glyph
("why two ? exists") and registers in the hitmap like every other ghost,
so a pointer can reach the list without the keyboard.

2026-08-26

✨ feat(app): keyboard trim-to-playhead (debt #42)Ahmet Kaan Gümüş · ba764f9
✨ feat(app): keyboard trim-to-playhead (debt #42)

Trim was pointer-only. Adds TrimInToPlayhead/TrimOutToPlayhead on
ctrl+{/ctrl+} (the bracket family's last free rung: bare [ ] nudge,
{ } walk selection, ctrl+[ ctrl+] jump sync points), wired through the
same PlaybackSession::trim_clip primitive the pointer drag commits
with, gated by the oracle on a subject cut with the playhead on it,
and given the same spine widget home as the nudge pair.
🔥 remove(ui): the legacy tree — darkroom is the only roomAhmet Kaan Gümüş · 5dcc6c2
🔥 remove(ui): the legacy tree — darkroom is the only room

Delete the whole legacy UI (timeline.rs, toolbar.rs, inspector.rs, legacy
render body, OLD_GUI gate — the env read is gone, not a switch) and every
helper only it reached: ~6,900 LOC out. Darkroom stance is the only room.

Real gaps the removal flushed out, fixed here:
- typed bitrate in the export card was completely dead — NumberEdit
  digits/backspace/enter/esc now wired in param_card_key
- ActionId::CancelExport was a no-op while the progress card promised the
  chord — now calls cancel_export (ctrl+esc, oracle-enabled during export)
- actions card had no pointer entry — "?" ghost is clickable, scrim
  click closes, inner list swallows
- snap toggle got a button beside zoom-fit in the VIEW group

Dead-by-construction machinery deleted with its tests: key rebinding
(rebinding/rebind_action/capture never set live), keys_search (no search
box exists), cancels_export/format_key/next_audio_kbps, 17 layout.rs
consts/fns, and the rest of the 32 no-—tests dead-code warnings; both
`cargo build -p edith` and `--tests` are warning-free, 245 tests green.
🐛 fix(ui): wire the keyboard focus ring's entry door — F6 → FocusPanelsAhmet Kaan Gümüş · e404617
🐛 fix(ui): wire the keyboard focus ring's entry door — F6 → FocusPanels

The ring built in 75ea728 was unreachable: nothing ever called
window.focus on focus_dock/focus_bench/focus_inspector, so the surface
on_key_down handlers (which do move focus correctly) never fired. Adds
ActionId::FocusPanels bound to F6 (bare Tab stays Select at the root,
unstolen), dispatched in Player::act via window.focus(&self.focus_dock)
to enter the ring at its first stop. Escape inside the ring now hands
focus back to the root (ui::stance::is_focus_exit_key, mirroring
is_focus_cycle_key) instead of bubbling unanswered.

2026-08-20

✅ test(ui): the settings page earns its own guardsAhmet Kaan Gümüş · a2e172e
✅ test(ui): the settings page earns its own guards

Pins the settings page's own organising rule (PROJECT rows open only
.edith-writing doors, EDITOR rows never do) as a source-scan test, and
closes three gaps the feature's own commit left red: modal() reads
settings_open with no mount_for entry, the default-stroke count did
not move for its new binding, and the export-busy oracle test never
learned Settings joins Theme/Fullscreen/SubtitleStyle as safe during
an export (oracle.rs already allowed it -- only the test lagged).
Corrects the settings page's own doc comment, which overstated that
the proxy switches are never written into a project: they mirror into
it once one is open, same as inspector.rs's legacy row already did,
with only the subtitle font staying config-file-only.
✨ feat(ui): a settings page for the project and the editorAhmet Kaan Gümüş · 5178f3f
✨ feat(ui): a settings page for the project and the editor

Splits by the rule that project settings change what is rendered and belong to
the project, while editor settings describe this machine. Reaches its rows
through the openers and pickers that already exist rather than new card bodies.

Reachable two ways on purpose: a visible St glyph on the spine and ctrl+, —
chord-only entry is the defect class this room keeps repeating.
💄 style(ui): the room speaks in its own type and its badges get terseAhmet Kaan Gümüş · d5dd5fc
💄 style(ui): the room speaks in its own type and its badges get terse

Every chord badge read like a sentence — "x or delete", "z or ctrl+z" —
stacked under a glyph the width of two characters, so the spine had to
stretch down the whole window to fit. A badge shows the primary stroke,
compact: x, z, del, ^o. The overlay still tells the whole truth, which is
where alternatives belong. With the badges short the groups close up to the
rhythm the mock draws.

The type the last commit bundled was never actually asked for: most text
carried no family or size at all, so the room rendered in whatever the
toolkit defaults to, which is why the import verbs came out twice their
size. Every string in the stance now asks the type scale for its role —
Archivo for what the room says, mono for what the film says.

The contact strip could not span the band because the band's own row
refused to claim the width, so the strip's flex had nothing to grow into.
It fills the space between the readout and the chip now.
✨ feat(ui): sources get their own colour and the ruler learns to countAhmet Kaan Gümüş · 25a08e3
✨ feat(ui): sources get their own colour and the ruler learns to count

The darkroom's source tints were four greys, so every source carried the
same non-identity and the mock's whole read — each film marking its own
dot, spine and waveform — could not happen. The family gets the real
twelve-hue wheel the language describes, stepped off the reference inks and
held in the contrast band; the other twelve palettes keep their own tints
untouched.

The bench ruler was a filled bar. It has ticks and MM:SS labels now, chosen
so they never crowd, with the playhead's own timecode pinned at its left
edge, and each lane head wears a dot in its first clip's ink.

The dock's import verbs stop lying: they carry real actions with real
chords. Add files takes ctrl+o, which the once-a-project proxy toggle gives
up to a command an editor runs all day. Paste path takes ctrl+l rather than
the mock's ctrl+v, which the timeline's own paste has earned. The tab
letters are gone rather than shown unbound — bare l and i belong to lift
and mark-in.
✨ feat(ui): the room speaks and the loop closes at the end of the filmAhmet Kaan Gümüş · b333573
✨ feat(ui): the room speaks and the loop closes at the end of the film

The keys overlay showed eleven of seventy-one bindings behind a clipped
plate, so sixty commands lived on no surface at all — it scrolls the whole
list by category now, and it opens on ? as the contract names rather than
f1. It is held, not latched: press dims the room, release restores it.

Notices had nowhere to land in the darkroom, so arming loop-trim moved
zero pixels and the editor could not tell an armed loop from a dead key.
The ledger carries its real content — project identity, last action,
export progress, position — and notices rise above it as plates with a
severity spine, fed by the same queue the legacy room already writes to.

Loop-trim never wrapped when the window ended on the film's last frame:
the transport reached its end, halted, and the restart check found a
stopped clock. Reaching the end with either loop armed now restarts, and
the trim window's own start wins over the timeline's top.
🐛 fix(ui): s cuts, the loop arms cold, and no command hidesAhmet Kaan Gümüş · b999ecf
🐛 fix(ui): s cuts, the loop arms cold, and no command hides

Round two of the verifier's drive. Bare s added a subtitle lane while the
design contract reserves it for the split, so an editor pressing it twenty
times got twenty stray lanes and no cuts; s splits now and the caption lane
answers to c. Arming loop-trim forced playback on, so the editor's own next
space toggled it straight back off and the room looked frozen — arming
leaves the transport exactly as it found it, which is what the disarm side
always did.

Three commands lived only on keys: the stride-ten walk, the selection walk,
and the overlay that would have taught them. The spine now shows both
strokes beside the walk glyphs, carries the selection pair, and the keys
overlay opens again — the surface is the shortcut sheet, which is the whole
point of the rule.

The two-up plates were painted over the bottom of the picture. The screen
lays them out as a sibling now, so the picture shrinks to make room rather
than being covered. The dock tab left its process-global static for the
same config the palette uses, so the room reopens on the tab it closed on.
🐛 fix(ui): the seam loses its hue and the chords become reachableAhmet Kaan Gümüş · 9e2bfd6
🐛 fix(ui): the seam loses its hue and the chords become reachable

The verifier drove the room and found three faults. DARK_SEAM carries an
alpha byte, but the stance handed it to rgb(), so every seam between
regions painted pure blue — the first law broken in the first screenshot.
It goes through rgba() now, a sweep found no other constant of that shape
mismatched, and a new test catches the class: the old guard only grepped
colour literals, so a hue arriving through a theme constant sailed past it.

The stance root read keys with no modal guards, so Home seeked the playhead
while the dock's Colour card was open, and Delete and Cut were reachable the
same way. It now asks the same shared predicate the legacy room asks.
Actions whose surfaces the stance does not draw yet are suppressed rather
than left setting invisible state.

gpui clears the shift modifier for every symbol key and hands over the
shifted glyph instead, so Chord.shift and lookup_shifted never had a
production caller and the stride-ten walk could not fire. The dead
machinery is gone; stride ten is its own pair of actions on < and >, and
selection moves to { and } — on shift+[ it had become keyboard-dead, a
regression the legacy room was carrying too.
✨ feat(ui): the darkroom tokens and the cut chords landAhmet Kaan Gümüş · be320c0
✨ feat(ui): the darkroom tokens and the cut chords land

DESIGN.md §12 steps 1 and 3a. theme.rs gains a thirteenth palette family,
Darkroom, plus the fifteen roles the design contract names: the four-level
ink ladder, the dark surface set, the lamp white, the three notice spines
and the safelight pair. The twelve legacy families alias the new roles onto
their nearest existing one so the palette macro still compiles for all of
them.

keymap.rs gains a shift field on Chord and the cut-machinery actions:
, and . walk cuts (shift strides ten), bare [ and ] trim the subject cut,
/ loop-trims. SelectPrev/SelectNext move to shift+[ and shift+] to hand the
bare brackets to trim as DESIGN.md §6 requires; every surface reads those
labels live, so no stale chord text remains. The oracle refuses all five
with "no subject cut" until one exists. Dispatch stays a no-op arm — a
later step wires the behaviour.

2026-08-19

✨ feat(app): the timeline draws the dissolve join as an X, ctrl+x binds itAhmet Kaan Gümüş · 270631a
✨ feat(app): the timeline draws the dissolve join as an X, ctrl+x binds it

The keymap's own rebind test claims ctrl+d as a free chord to demo with,
so Dissolve takes ctrl+x instead -- the shape its glyph (widgets.rs,
dissolve_glyph) draws at the join. Wired into the clip context menu
(menus.rs MENU_ITEMS) and the timeline (ui/timeline.rs): an X over the
last transition_out frames of a clip whenever its neighbour still abuts it.
✨ feat(app): a dissolve key joins two video clips end to end (ctrl+d)Ahmet Kaan Gümüş · 474b80e
✨ feat(app): a dissolve key joins two video clips end to end (ctrl+d)

Mirrors the audio crossfade: PlaybackSession::set_transition_out wraps
Project::set_transition_out (Dirty::Picture), Player::dissolve_selected
picks the join the same way crossfade_selected does, and a second press
removes the dissolve it just made. Wired into the keymap, the dispatch
table, and the clip context menu.
✨ feat(app): export can be limited to an in/out range (i, o, ctrl+u)Ahmet Kaan Gümüş · 5134b1d
✨ feat(app): export can be limited to an in/out range (i, o, ctrl+u)

# Conflicts:
#	crates/app/src/keymap.rs
✨ feat(export): mark an in/out range and export just thatAhmet Kaan Gümüş · a5c0bc7
✨ feat(export): mark an in/out range and export just that

i marks the in point and o the out, on the playhead; ctrl+u clears the
mark. The ruler shows the marked stretch as a translucent band and the
export card states it above the button. Session state only, never
saved to a .edith.

The engine side finishes what a capped predecessor started: run_audio
(the WAV/FLAC/MP3/OGG path) now offsets its segments and clips its
frame count to the range the same way encode_audio already did.
✨ feat(app): the timeline can redo, mirroring undoAhmet Kaan Gümüş · 49a1af3
✨ feat(app): the timeline can redo, mirroring undo

Project grows a redo stack: undo pushes the lanes it leaves onto it,
redo pops one back, and any fresh edit (snapshot) clears it since the
branch undo left behind is no longer where the edit leads. Wired
through PlaybackSession::redo, Player::redo and ActionId::Redo,
bound to ctrl+y -- bare "y" is already SubtitleStyle's, so redo takes
only the ctrl chord.
✨ feat(app): the playhead can loop, on the timeline and in a previewAhmet Kaan Gümüş · 935d48b
✨ feat(app): the playhead can loop, on the timeline and in a preview

A Loop toggle (transport bar button, bare r) restarts playback from
zero on the end crossing instead of halting — the same restart door
play-at-end already used, so loop-off semantics are untouched. One
flag serves both sessions: pump loops whichever is active. The wrap
reopens the decoder; a one-frame seam is the accepted cost.
✨ feat(app): subtitle cue font and size are the user's to chooseAhmet Kaan Gümüş · dd4bbea
✨ feat(app): subtitle cue font and size are the user's to choose

A subtitle-style file beside the theme holds a family and a size
(10-28, default 14); the cue plate reads them live and the line height
scales on the stock ratio. New card lists every system family plus the
platform default, opened from the inspector's Font control or y. A file
the format could not have written falls back whole to the defaults.
✨ feat(app): fullscreen, library preview, and frame screenshotsAhmet Kaan Gümüş · fbdd221
✨ feat(app): fullscreen, library preview, and frame screenshots

F11/toolbar fullscreen via gpui toggle_fullscreen; a per-row play
button previews any library file over the timeline without touching
the edit (separate preview session, escape restores); w/toolbar saves
the current frame as PNG under ~/Pictures/edith with no-clobber
suffixes and a notice naming the file.
✨ feat(app): the current frame saves as a PNG with a keystrokeAhmet Kaan Gümüş · 7a82c20
✨ feat(app): the current frame saves as a PNG with a keystroke

Bare w (free by hand-scan of the default keymap), or the toolbar's own
"Shot" button, write whatever is on screen -- timeline or a preview --
to ~/Pictures/edith as stem-timecode.png, never clobbering an earlier
shot of the same second. Blocked during export like every other
one-shot action (oracle.rs's allow-list already covers this).
🐛 fix(app): the export card's presets pick their own bundle, not the codec row's leftoversAhmet Kaan Gümüş · 4b92704
🐛 fix(app): the export card's presets pick their own bundle, not the codec row's leftovers

Six judge-confirmed defects in one pane: a refused preset click still wrote
a quality (checked the refusal after the write, not before), refused
presets rendered bright and clickable with no reason shown, the card opened
on Custom because the launch default (Mp4, Auto) matched no bundle, the
five preset rows were pointer-only, and the status line still advertised
g/r after they moved into Advanced. Master now bundles HEVC/High instead of
H.264/High, so its own "for re-editing later" detail (intra-only, every
frame a cut point) is true of what it actually writes.
✨ feat(app): the player goes fullscreen from the toolbar or F11Ahmet Kaan Gümüş · 1ac24b8
✨ feat(app): the player goes fullscreen from the toolbar or F11

gpui Window::toggle_fullscreen wired as ActionId::Fullscreen (View category,
always enabled — window-level, touches no edit list). Player::act grows a
window parameter to reach the API; topbar gets a state-reflecting
Fullscreen / Exit fullscreen button beside Save/Export.

2026-08-15

✨ feat(timeline): ctrl-click multi-selection, manual groups, ctrl+aAhmet Kaan Gümüş · 66d5395
✨ feat(timeline): ctrl-click multi-selection, manual groups, ctrl+a

The app half of manual clip grouping: the timeline's selection becomes
a list of picks (Selection, click order kept, anchor = last), ctrl+click
toggles a pick on every clip box, caption box and edge strip, and a
right-click on a picked placement keeps the selection so the menu's
Group row acts on all of it — one pick keeps the span-partner flow.

SelectAll takes ctrl+a (every clip and caption, one selection) and
RemoveAudioLane moves to ctrl+q beside its own letter. The oracle
unhides Group and Detach over captions, words the one-clip-per-lane
refusal, and the caption menu grows the group rows. marked() lights
every pick and its link-mates — captions included — captions wear the
grouped border, trims preview each member by the drag's delta clamped
to its own room, deletes route a grouped caption through the group
door, and a drag's snap excludes the group it carries. The save-format
tests and every affected app suite updated with the new shapes.

2026-08-14

✨ feat(app): the export that locks the editor says so as a card, and takes two answers to stopAhmet Kaan Gümüş · ef7689f
✨ feat(app): the export that locks the editor says so as a card, and takes two answers to stop

An export takes the whole editor -- nothing may touch the edit list while the
worker reads it -- and until now it said that in a hint line under a panel it
had just switched off. The running export is drawn as what it is: the same
scrim, width and raised box the export card itself uses, so the answer arrives
where the question was put, with the bar, the percentage and both clocks, the
row and the seats the worker really opened, the source it reads and the file it
writes. The timeline is still read around it, and the ruler keeps the fill --
the one part of the progress the card does not cover.

Getting out of it now takes intent, twice over. The chord is ctrl+esc: bare
escape is the stroke a hand throws at anything on screen, and thrown at an
export it used to delete an hour of encoding. Bare escape now does nothing at
all here -- the card is not dismissable, so there is nothing left for it to
mean. And the pointer's way out is a pair, never a cycle: "Cancel export" swaps
the row for "Keep exporting" beside it, both on screen at once, each saying
which one it is.

Rebinding still works and still adds a way out rather than replacing this one,
and the card shows whatever the keymap has.
✨ feat(app): + S makes a subtitle track, and the file door keeps its own nameAhmet Kaan Gümüş · 6830c39
✨ feat(app): + S makes a subtitle track, and the file door keeps its own name

"if I press button +S it should create subtitle track section": it opened a
file chooser instead, which is the one thing a track button never does. The
button and its "s" now add a `LaneKind::Subtitle` lane exactly as + V and + A
add theirs, ctrl+t takes the last one back, and the chooser survives as
`ImportSubtitles` (ctrl+i) behind the Text tab's own "Add subtitles from a
file…" -- the panel where the tracks it reads are listed.

Every notice follows the split: an import lands rows "in the palette", a lane
says "drag a subtitle from the panel onto it", and a remove with no subtitle
lane says so instead of "open a file first" over an open file.

The export card's Subtitles row was framed around palette picks: with an empty
pick list it dropped the engine's sentence whole, so a lane the export carries
nothing of said nothing at all. The sentence is kept whatever the picks are,
and a row the sentence already speaks for gets no clause of its own.
✨ feat(app): the seat that writes the picture is picked on the card, not by an env pinAhmet Kaan Gümüş · 50af5b5
✨ feat(app): the seat that writes the picture is picked on the card, not by an env pin

The export card gains an Encoder row: Auto, Hardware or Software, three rows in a
list like every other setting with more than two values -- `e` steps it, a click
opens the list, and the planned line under the rows re-probes and says which seat
it measured.

Auto is what every export did before (the GPU where there is one). Hardware is
the GPU or a refusal in words -- `Enc::open` refuses before the muxer exists, so
nothing is written -- and it is now the only door to the plugin's AV1 seat, which
`VE_HW_AV1=1` used to guard: an env pin nobody exporting a film would ever find.
A person who picks it for AV1 gets a plain row naming what happened on this box's
driver, and the pick still stands.

Software forces the CPU encoder, which also takes the zero-copy path off the
table by construction (`Enc::dma_want` answers only for the two hardware seats).

Kept with the project: `.edith` gains an `encoder` line at v14, written only when
it is not Auto, and a v13 file loads as Auto.

- engine: `ExportSettings::force_sw` -> `seat: EncoderSeat`; `hw_seat` returns the
  refusal instead of falling back; `planned_video` says `NO_HW_SEAT` where it would
- app: `Pick::Encoder`/`Choice::Encoder`, card row, `e` in the card's own keyboard
  and in the keys menu (`FIXED`)
- tests: the backends sweep runs all three seats (the AV1 hardware seat excepted,
  as before), and asserts the refusal is only what a missing seat produces
✨ feat(app): the stand-ins are made when a project asks, not whenever a big film arrivesAhmet Kaan Gümüş · 269b0c2
✨ feat(app): the stand-ins are made when a project asks, not whenever a big film arrives

A project now says whether an import makes a proxy by itself. On is the
default and the line left out, so every project that came before behaves
exactly as it did; off makes nothing at all, and turning Proxies on is
what asks for the ones the project is missing -- the only ask there is,
since no per-source item exists.

The file grows an `autoproxy` line and the version goes to 13: a v12
project makes them by itself, which is all any project could do.

The switch is a button beside Proxies in the PROJECT panel, ctrl+o, and
a row on the actions card -- the three doors together, as the two
sync tests require.

2026-08-13

✨ feat(app): a Proxies switch in the panel, and the stand-ins made without being askedAhmet Kaan Gümüş · 892f813
✨ feat(app): a Proxies switch in the panel, and the stand-ins made without being asked

A film this machine cannot cut at speed -- bigger than 1080p, or HEVC or
AV1 at any size -- gets its stand-in started the moment it lands in the
library, two at a time so ten dropped files cannot start ten encodes
over one hardware seat. The library row says how far it has got and then
that there is one; the PROJECT panel's Proxies button says which way the
switch is set and carries the least-finished percentage beside it, so a
switch thrown before anything is ready says so rather than doing
nothing.

The switch is an action like every other: ctrl+p, on the actions card,
and a button that is both the state and the door -- the two tests that
already hold every action to that pass it unchanged.

A stand-in that cannot be made is a line and no more: the film itself is
what plays, which is what plays until one is ready anyway.
✨ feat(ui): the palette is picked in the window, not at the buildAhmet Kaan Gümüş · 4ddba0c
✨ feat(ui): the palette is picked in the window, not at the build

The two colour families were a cargo feature (`--features warm`), which
makes the choice one only whoever compiled the binary could make. Both
are now `Palette` values behind one relaxed load: a token is a call
(`BG_PANEL()`) that reads a field off a 'static table, so a swap
repaints the whole window with no restart and no lookup by name.

The door is a list, not a toggle -- Theme sits in the toolbar's View
group beside Snap, and opens the same picker the resolution and the
HDR rendition already use, so a third palette costs one line in
`PaletteId::ALL` and nothing anywhere else. The stroke is ctrl+h, the
row is in the actions card, and the list now answers the keyboard as
well as the pointer: up, down, enter, escape, on every picker in the
editor rather than only this one.

The pick is kept in ~/.config/edith/theme, beside the keybindings and
under the same XDG rule, so it survives a restart; a file that cannot
be written is said out loud. The contrast guards run against every
palette in the table now instead of the one that used to be compiled,
which is what makes a palette added later land gated.

2026-08-12

✨ feat(ui): a cut can be put where the export copies it, and the card says soAhmet Kaan Gümüş · bea7164
✨ feat(ui): a cut can be put where the export copies it, and the card says so

There was no way to place a cut on a source sync point: the snap knew about clip
edges and the playhead and nothing about the file's own groups of pictures. An
ordinary mid-film cut therefore fell the whole export back to software intra
HEVC -- hours -- and the export card cheerfully predicted the opposite of
whatever the engine was about to do.

Three doors onto one idea:

- The snap, extended. With snap on, a cut lands on the nearest source sync point
  within the same tolerance every other landing uses, and the playhead goes with
  it so what was cut is where the line is.
- ctrl+[ / ctrl+] put the playhead on the sync point before or after it -- the
  brackets already mean "the one before / the one after" here. On the actions
  card like every other action, so the pointer reaches them too.
- The timeline's own line says "SYNC POINT — a cut here is copied, not
  re-encoded" while the playhead is standing on one, so the answer is on screen
  before the cut rather than in the export card afterwards.

...and the card now asks `planned_seats`, which is the export's own decision:
"copy (source packets)" where it would copy, the real encoder where it would
not, and the sound named by the same gate the export runs (a Matroska source has
no sample table, so it never was the "AAC copy" this used to promise). The cuts
are in the probe's key, so moving one onto a sync point flips the line.

Driven on a 2h36m 4K HDR film in the harness: playhead to 30:03, ctrl+] to
30:06:22 (badge lights), cut, ctrl+] at 35:07, cut, delete the middle, export ->
first output bytes at 114 s, done in 146 s, 28.06 GB, the running line reading
exactly what the card predicted.
✨ feat(subtitles): as many tracks as you want, embedded in the exportAhmet Kaan Gümüş · 28e2853
✨ feat(subtitles): as many tracks as you want, embedded in the export

Subtitle tracks now work the way audio and video tracks do: add as many
as you like, remove any of them, and every track with cues on the
timeline is written into the exported file.

Add and remove
- "+ S" beside "+ V"/"+ A" imports every subtitle track in a picked
  file; each row carries its own "x". Pointer and keyboard doors share
  one implementation and refuse identically, before any chooser opens.
- Project::remove_subtitles / PlaybackSession::remove_subtitles, with
  the index fixup in one place so a removal cannot repoint the overlay.

Embedded in the output
- ExportSettings.subtitles is a list; the Matroska muxer writes N tracks
  from number 3 up, ceiling derived from the encoding (0x7F -
  SUB_TRACK_FIRST) because track 127 is the all-ones VINT our own reader
  maps to "unknown" and would silently lose.
- mp4 carries them too, as real tx3g timed text. The old "an mp4 carries
  none" was a false refusal: mp4 0.14 has MediaConfig::TtxtConfig all
  along. Samples are built from cue boundaries, so gaps are empty
  samples and the track spans the film.
- of_mp4 reads them back, so edith re-imports its own output. Verified
  against a file ffmpeg muxed, which writes mdhd in microseconds where
  we write milliseconds.
- The export set is derived from timeline_cues per call, so it cannot
  desync; the card names a track it leaves off, and counts past the
  width budget rather than eating the card.

Language and title
- SubtitleTrack carries language and name apart; the guess-them-back
  heuristic is gone. LanguageBCP47 is read and mapped to a 3-letter code
  (ffmpeg reads no BCP-47 at all, so writing it would have made the
  language invisible). A 17-track subtitle library file and a
  dual-language one no longer read "und".

Media bitrate in properties
- engine::probe_bitrate opens no decoder; all three numbers share the
  container's duration, so total >= video + audio holds by construction.
  Within 0.004% of ffprobe across the library.
- Both properties cards show it; a dual-audio file says which of how
  many. The line picks one unit off its smallest stated component, so a
  real value never renders as 0.00.

Off the render thread
- The subtitle walk moved to the background executor at every door:
  1324ms -> 0.1ms on a 3.1GB film, 234ms -> 5.0ms on a 25.4GB/35-track
  one. (The media walk is still on the render thread; separate slice.)

False refusals removed
- .mks and .mka were refused while the compiled-in Matroska reader
  parses them; is_matroska now takes the standard's closed set.
- The audio-only "sound alone" sentence was unreachable when every pick
  was a bitmap track.

Subtitle-free exports stay byte-identical: 294a8b0c (hevc mkv),
8c16b8b1 (default mp4).
🖱️ fix(ui): a menu offers what applies, fits the window, and nothing paints over itAhmet Kaan Gümüş · 8a2e813
🖱️ fix(ui): a menu offers what applies, fits the window, and nothing paints over it

A right-click on an audio clip listed a grade and a fit policy, and the one
row the user named -- "Detach the sound from the picture" -- read as a video
item on a waveform. Both menus take their rows from an oracle now and from
nothing else: `menu_items` filters the action registry through `enable`, and
`row_items` does the same for a library row through `row_enable`, so an item
cannot appear where it does not apply by being added to a list alone. The
detach is worded from neither half, because it takes the pair apart.

The clip menu was capped at twelve rows whatever the window, so a menu opened
low in a 720 px window put everything past the fit policy behind a scroll
nobody was told about. `menu_rows_h` gives the list the room the window has,
and the card is placed by the very height it is drawn to.

A tooltip already on screen when a menu opens stays on screen in gpui --
occluding the surface under it does not take it back (`div.rs`, its own TODO)
-- so the tip stands aside instead: one flag, read by every hover label in the
window. The scrims occlude as well, which is what stops a new one appearing.

The actions card was 320 px wide with labels that were not: "Remove the last
video track (it must be empty)" printed straight over the stroke beside it. It
is 480 now, its labels truncate rather than overprint, and the list scrolls
under a rule instead of against the search line.
🛡️ fix(ui): four defect classes made impossible instead of testedAhmet Kaan Gümüş · 5909fc9
🛡️ fix(ui): four defect classes made impossible instead of tested

The action list is one list now: a `macro_rules!` writes the enum and
`ActionId::ALL` from the same names, so a variant added with `ALL`
untouched -- which compiled, passed and dropped the action off the keys
card -- cannot be written any more.

The reachability guard reads `keymap::FIXED` too: every card-local
stroke names the element a pointer presses instead, or says in the type
(`Reach::Gesture`) that there is nothing to press. `g` and `r` on the
export card were keyboard-only while the card advertised them, and are
rows of their own now.

Trim strips are suppressed under three handles of clip: a jumpcut's
short clips were 100% handle, so nothing could select or drag them.

The codec row's chord comes off `FORMATS` (it said six keys for the
seven codecs its label named -- OGG's `o` was invisible), and the panel's
button row carries a pinned door beside the scrolling part, since "it
scrolls" is not "it can be found" at the 640x360 floor.

2026-08-11

🧹 test(scratch): a fixture directory is deleted by the test that made itAhmet Kaan Gümüş · 5c39124
🧹 test(scratch): a fixture directory is deleted by the test that made it

Every suite here made its own directory under /tmp with a name and a
process id and then walked away from it: 2907 `ve_*` directories, 6.4G of
a 16G tmpfs, none of them reclaimable by anything but a person with `rm`.

`engine::scratch::Scratch` is the one place a throwaway path comes from
now -- a directory, or the single file inside one -- and `Drop` is what
takes it back. That is the whole reason it is a guard rather than a
cleanup call at the end of a test: unwinding runs `Drop`, so the *failing*
tests, which are exactly the ones that used to leave the most behind,
clean up like the passing ones.

It derefs to a `Path`, so the call sites did not have to change: the
helpers that handed back a `PathBuf` hand back one of these. The prefixes
stay what they were, so a directory is still recognisable while a test is
stopped in it.

Nothing about what a test *does* moved -- only where its fixtures live and
when they die. Driven: the whole engine suite and the app's own tests run
with the count of `/tmp/ve_*` before equal to the count after.
✨ feat(export): OGG Vorbis is a row you can pick, not a note about missing encodersAhmet Kaan Gümüş · 17d7d99
✨ feat(export): OGG Vorbis is a row you can pick, not a note about missing encoders

The export card said "no pure-Rust Vorbis or Opus encoder" and that had stopped
being true. `rusty_vorbis` 0.1.1 (Apache-2.0, zero dependencies, same family as
the h264/aac/mp3 encoders already here) is the first permissively-licensed
pure-Rust Vorbis *encoder*; `oxideav-ogg` 0.1.8 pages it, and its only dependency
is the `oxideav-core` the AC-3 decoder already pulls in. No C, no FFI, no new
runtime system dependency -- `ldd` on the binary is unchanged, name for name.

The row is live, keyed `o`, and names its encoder like every other live row does.
VP9 stays refused with the reason it always had: AV1 replaces it.

What the bench found, and what the code does about it. Every number below was
measured by encoding this suite's own fixtures and decoding them back with
symphonia -- an independent decoder, and the one this engine reopens exports
with:

* The encoder numbers its granules a full block ahead of the samples it codes,
  so written straight through, every sample lands ~1024 early: a marker signal
  came back with its head at 36% amplitude and a full-scale burst 1500 samples
  before the real one, in silence. One hop of silent pre-roll puts it back --
  head 0.86 against an input peak of 0.80, the phantom burst down to 0.04.
* Its block grid overshoots the last sample, so the stream is padded and the
  last page's granule declares the timeline's own frame count. An `.ogg` is now
  exactly as long as the WAV of the same timeline, which is the promise every
  other audio row here keeps.
* Below quality 0.50 the encoder is *quiet*, not merely coarse (1-1.6 dB of
  level error, near-silence at 0.10), and the whole usable band tops out around
  200 kbps. So the file is written at one measured quality, 0.85, and the Sound
  row is refused by name rather than mapping 128/192/256/320 onto quality steps:
  the top two are rates this encoder cannot reach, and a card that printed them
  would be lying.
* The embedded setup header is a stereo profile -- a mono push is refused
  outright -- so a mono mix is written as dual mono, both channels bit-identical.

And one defect the round trip turned up on the way in: `SymTrack` subtracted
`Track::delay` on top of symphonia, which already drops those frames itself.
Every `.mp3` import was losing its first 1105 samples (25 ms) and reading 25 ms
short, every `.ogg` its first 128. Measured against `test_tone.flac` -- lossless,
and the only one of the three declaring no delay -- which the mp3 and the ogg of
the same tone now align with. WAV, FLAC and AAC-in-mp4 read hash-identical
across the change; only those two formats move, and both move to the length
their own container declares.
✨ feat(export): the custom bitrate is a field you type in, not digits caught from nowhereAhmet Kaan Gümüş · 10cdebc
✨ feat(export): the custom bitrate is a field you type in, not digits caught from nowhere

The custom quality row took raw digit keys while the card was open: no
caret, no way to see a number before it took effect, no click to focus,
and a stray keystroke changed the bitrate with nothing on screen to say
it had. It is a field now -- n or a click opens it on the number in
force, digits type, backspace edits, ↑↓ step inside 1-20, enter commits
and escape gives up -- held as a modal NumberEdit on the player, the way
a waiting rebind row is, since nothing in these cards takes gpui focus.

Out of range is refused in its own words and keeps what was typed, so a
45 can be fixed to 4 rather than clamped to 20 behind the user's back.
The field also says itself on the card's status line, which is outside
the scrolling list: at 360 px the custom row can sit below the fold, and
a number typed where it cannot be seen is the blind capture this
replaces. Digits outside the field now do nothing at all.

The sound rate stays a list of presets: the four rates are the legal
MPEG-1 Layer III values, so an arbitrary kbps would be snapped by the
encoder and the card would name a rate the file does not have.
✨ feat(subtitles): the cues arrive, show over the picture and sit on the timelineAhmet Kaan Gümüş · 863eb63
✨ feat(subtitles): the cues arrive, show over the picture and sit on the timeline

Subtitle management, both halves the user asked for: a .srt/.vtt/.ass/.ssa
beside the media goes in through the import door it is dropped on, and an
mkv opened or imported brings its own text tracks with it — every door
(drop, Import, argv, argv extras) picks them up, so a file never arrives
with invisible subtitles.

The library grows a Subtitles section under the media list: a row per
track, its cue count under its name, the picked one marked, and a click
picks another — rows rather than a cycle, because four PGS tracks off a
remux is an ordinary number. A track that cannot be read is in that list,
greyed, saying why in the engine's own words.

Over the picture the cue under the playhead is drawn bottom-centred,
white on a plate so the film cannot swallow it, one plate per cue so two
at once stack and the line breaks the parser kept stay breaks. Under the
lanes a thin strip shows where the cues are, through the same Scale every
clip box goes through. ToggleSubtitles (t) hides and shows the overlay,
from the keyboard, the Actions card or the Subs button beside the snap.

No engine change: the doors were complete.
🔀 merge: main (E2's export clocks) into E1Ahmet Kaan Gümüş · 75bfb8e
🔀 merge: main (E2's export clocks) into E1

origin/main had moved past the merge I was pointed at, so the same
command was run again. One conflict, the tests' use-list once more:
theirs plus `next_audio_kbps` and `audio_rate_choices`. Nothing in E2's
progress lines touches the Sound row.