forge
Explore
Log in

Don't you dare go Hollow

Commits

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

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.
🔀 merge: origin/main into E1, and the Sound row becomes a choice listAhmet Kaan Gümüş · 3992bff
🔀 merge: origin/main into E1, and the Sound row becomes a choice list

Conflicts were the three the coordinator called: keymap's FIXED count
(union of my `b` and C5's 26, so 27), the tests' use-list in main.rs
(theirs plus AUDIO_KBPS, DEFAULT_AUDIO_KBPS, next_audio_kbps) and two
tests added at the same line of audio_export.rs (both kept).

Four rates is one more than a button may be clicked round, so the Sound
row opens C2's picker (`Pick::AudioRate` over `AUDIO_KBPS`, rows naming
what each rate buys) instead of stepping under the pointer. `b` still
steps, the way ctrl+r still steps the resolution the same list offers --
and a list open over the card is what the first stroke closes, so escape
cannot take the card out from under it.
✨ feat(keys): the actions card has a door and a search boxAhmet Kaan Gümüş · d4255d9
✨ feat(keys): the actions card has a door and a search box

Forty actions do not fit a 360 px window, and the only way in was a button
in the panel. Both halves of that:

- F1 opens it (ActionId::ShowActions, Category::File, beside the save and
  the export it stands next to on screen). The panel button is still its
  pointer door and now says the key in its tooltip.
- Typing filters: label and stroke, case-insensitive substring, headings
  with nothing left under them gone with their rows. Escape clears the
  search first and closes the card second -- a capture waiting for a
  stroke still wins over both.
- Up and down scroll the row list from the keyboard, so the rows past the
  fold are reachable without a wheel; the search resets it to the top,
  since a filtered list is shorter than the offset a scrolled one left.

A stroke another action holds is refused by that action's name, as it
always was (keymap::rebind_action) -- nothing here steals a chord.
✨ feat(eq): the equalizer takes the room it needs, and every band is editableAhmet Kaan Gümüş · 462692e
✨ feat(eq): the equalizer takes the room it needs, and every band is editable

The card was 320 px of fixed width with five bands whose only editable
number was gain: a graph of twenty thousand hertz spending four pixels
on the octave below middle C, and a filter nobody could aim.

It now takes the window it is in (up to 720 px, floored at the other
cards' width) and carries the three numbers a band actually has. A band
is dragged both ways -- across is frequency, down is gain -- moved by the
arrows, widened and narrowed with shift, added and removed up to ten, and
flattened alone by `f` or a double-click. Each band's own bell is
threaded under the sum, so a boost pushed against a cut is visible rather
than a flat line that says nothing.

The engine already took any cascade (`EqParams::bands` is a `Vec` and the
.edith file writes every band it is given): nothing under the UI moved,
so a project saved before this loads and sounds exactly as it did.
✨ feat(timeline): clips land where they mean to — snap to every lane, a line that says so, and a key that turns it offAhmet Kaan Gümüş · bd70ab1
✨ feat(timeline): clips land where they mean to — snap to every lane, a line that says so, and a key that turns it off

The snap reached one gesture and one lane: a clip dropped on a track met
the edges already on that track and nothing else. A trim met nothing at
all, and a library row dropped on a lane landed on the raw frame under
the pointer.

Now every edge on the timeline is a target -- both ends of every clip on
every lane, the playhead, the head of the show -- and all three gestures
ask the same question: the clip drag, the edge trim, and the row let go
on a lane. A take on V1 lines up with the sound on A1, which is what a
cut across tracks means.

While the hand is still moving, the lanes draw the frame it is about to
land on: one pale line, under the playhead's own and in another colour,
and only while a gesture is live -- gpui drops a drag without telling
anyone, so the line asks whether one is in flight rather than remembering
that one was. A target the engine's own trim room clamps away draws
nothing: the line only promises what the release will do.

And it can be switched off, with "n" or the button beside the zoom: off,
a drag lands exactly where the hand leaves it and no line is drawn, which
is the frame-by-frame placement a magnet must never take away. The button
says which way it is set, because a toggle that looks the same either way
says nothing.
✨ feat(export): the sound has a bitrate you pick, in every file that codes oneAhmet Kaan Gümüş · 2169fb8
✨ feat(export): the sound has a bitrate you pick, in every file that codes one

The rate was 256 kbps in two places nobody could reach: the AAC a video
export re-encodes and the MP3 the audio row writes. Both now take
`ExportSettings::audio_kbps` -- 128, 192, 256 or 320 -- and `None` is
still 256, so an export nobody touched writes the bytes it always did.

The card grows a Sound row on `b`, cycling like the container row. It
dims with the reason where there is no rate to pick: no sound on the
timeline, a lossless format (WAV, FLAC code samples and not a rate), or
an AAC track that is copied packet for packet and carries its source's.
The MP3 quality refusal stopped claiming a fixed 256 kbps, since the
Sound row can now change it under the summary.

Probed rather than promised: an mp3's frame headers declare 128/256/320
as asked, and an mp4's AAC track measures within a fifth of the request.
✨ feat(export): the card says what file it is about to writeAhmet Kaan Gümüş · 3fbef63
✨ feat(export): the card says what file it is about to write

One row per codec instead of one per codec-and-box, the container asked
once and only where there is more than one, the quality rows dimmed with
their reason where a format has no bitrate to give, and two lines above
the button that state the file itself: codec, box, size, rate, sound,
name and about how big. Every row carries the key that picks it, and
every row is clickable -- the typed bitrate has steppers now, which was
the last control in the card a pointer could not reach.

Two shapes of it behind `g` and `r` (sections or one flat list; the
formats with no encoder as rows or as one footer line), so the choice
between them can be made by looking rather than by argument. Grouped and
collapsed is what opens.

Export itself is untouched: the same settings, the same start, the same
cancel, the same retarget.
✨ feat(mix): every track has its own volume and the mix has a ceilingAhmet Kaan Gümüş · dc7d07d
✨ feat(mix): every track has its own volume and the mix has a ceiling

A fader per audio track and one master limiter over the sum of them, both
applied where the lanes are added and nowhere else -- so what an export
writes is what the room heard, by construction rather than by two call
sites agreeing.

A track's fader moves everything on it, every frequency: it is not the
equalizer (one take, one band) and not the panel's volume (this machine's
monitoring, which no file carries). The limiter is lookahead, soft-knee
and per sample: the peak of an exported file is a measurement, not a hope,
and the hard clamp stays behind it as the backstop.

Flat settings are still the bit-exact passthrough: one lane at unity with
the limiter off never opens a mixer thread, and an mp4 of such a timeline
is still a packet copy. A mixed one re-encodes, and the card says so
before the export starts.

Both belong to the project, so `.edith` is v9: `fps`, `limiter` and `gain`
lines, every older dialect still loading flat. The rate line pays an old
debt with it -- a timeline of nothing but stills and songs now comes back
at the rate it was cut at instead of the one its scaffold implied.

UI: the mix card (f, or an audio track's own header), rows with steppers
and hold-to-run arrows, and the track's level on its header.
✨ feat(export): HEVC leaves the way it came in — intra, in either boxAhmet Kaan Gümüş · 12f8cb7
✨ feat(export): HEVC leaves the way it came in — intra, in either box

The one codec edith could read and never write. OxideAV's pure-Rust H.265,
vendored from git master (its released 0.0.9 is pre-encoder) with one marked
patch: the intra SPS writer had no conformance window and refused any dimension
off the 16-sample CTB grid, so 1920x1080 could not be written at all. It is now
coded padded to 1088 with the edge replicated and cropped back by the SPS, which
is what ffprobe reads out of the bitstream.

Intra-only, and every row says so: the inter modes code 1080p at 0.81 fps across
twelve cores and the intra path does 4.30 on the same picture, so the export is
an intraframe master — ProRes-shaped, large files, every frame a cut point —
rather than a delivery file nobody would wait for. The AU is a stateless
function of one frame, so frames fan out across twelve lanes and are collected
back in display order.

Two rows, `h` and `x`, because a codec and a container are two choices: the
`hvcC` record built from the encoder's own VPS/SPS/PPS goes into a Matroska
`CodecPrivate` and into an mp4 `hvc1` sample entry unchanged, so the two files
are one stream written twice. Both re-open in edith through the plugin, sound
and all.
✨ feat(export): every video format carries sound, AV1 picks its box, MP3 is a rowAhmet Kaan Gümüş · 5ebd3ac
✨ feat(export): every video format carries sound, AV1 picks its box, MP3 is a row

Three asks, one seam — the export's audio path was a packet copy, and everything
it could not copy was a refusal.

- MkvMuxer gains an A_AAC track (CodecPrivate = AudioSpecificConfig, CodecDelay
  one packet) and interleaves it into the clusters: an AV1 export carries the
  timeline's sound instead of naming it as left out.
- Mp4Muxer::create_av1 writes AV1 into an mp4 — the `av01` + `av1C` sample entry
  `mp4 0.14` cannot spell is patched into the finished moov (layout cribbed from
  OxideAV's oxideav-mp4, MIT); Mp4Demuxer reads that entry back.
- Format::Mp3 through `rusty_mp3` at 256 kbps CBR, and Format::Av1Mp4 beside
  Format::Av1: the export card has a row and a key for each.
- copy_audio lifts every "cannot copy" refusal into a route to encode_audio —
  a second audio lane, a speeded clip, a Matroska source, an mp3 or a png
  timeline. A copy nothing forces stays a bit-exact copy.

Round trips per container, through this project's own readers: mkv + mp4 AV1
with a tone (mux unit tests), an AV1 export in either box (tests/av1.rs), a
still under a song as an mp4 with sound and an MP3 of the timeline
(tests/audio_export.rs), two lanes summed into an mp4 (tests/lanes.rs), a
speeded lane resampled into one (tests/speed.rs).

2026-08-10

✨ feat(timeline): the timeline zooms in on the frame you are looking atAhmet Kaan Gümüş · 6dd5951
✨ feat(timeline): the timeline zooms in on the frame you are looking at

One mapping, View, turns a moment into a place on the bed and back: the ruler,
every clip box, the silence marks, the playhead, a click-seek and an edge drag
all read it, so nothing can drift away from the rest when the view moves.

At the fit it is the arithmetic the panel already did (start_frac is gone into
it), so an unzoomed timeline is drawn exactly as it was. Zoomed, the anchor --
the playhead for a key, the pointer for ctrl+wheel -- stays where it is on
screen, out stops at the whole timeline, in stops at eight frames across the
bed, and a playhead that runs off the slice pulls the view after it, which is
how a zoomed timeline scrolls while it plays.

The keys are the chords every editor magnifies with (ctrl+= / ctrl+- / ctrl+0,
the bare pair being the volume), the two steppers repeat while held, and the
three buttons beside the resolution are the pointer's way to all of it.
Merge branch 'main' into worktree-agent-a46e3271de2d17ff3Ahmet Kaan Gümüş · 700a973
Merge branch 'main' into worktree-agent-a46e3271de2d17ff3

# Conflicts:
#	crates/app/src/keymap.rs
#	crates/app/src/main.rs
🔀 merge(T9): track removalAhmet Kaan Gümüş · b631892Browse files
✨ feat(timeline): silences are cut out or played fast in one pressAhmet Kaan Gümüş · d4ac3fc
✨ feat(timeline): silences are cut out or played fast in one press

A scan of the selected clip's own sound (RMS dBFS over 20 ms windows, off
the decode path the waveform already takes) marks every silence on the
lane before anything moves; `enter` cuts them all out with a ripple, `f`
plays them at 4x with the room they no longer need closed behind them.
Either way it is one edit and one undo press, however many it found.

Four numbers, all keyboard-driven from the card: the threshold, the quiet
short enough to forgive, the padding kept either side of speech, and the
kept sliver short enough to swallow -- the last of which is what stops a
breath between two silences surviving as one-frame confetti.

`set_speed` does not ripple, so speed mode closes the gaps itself; a clip
on another lane lapping over a silence is refused by name, because the
lanes would shrink by different amounts. A source with no audio track at
all is refused by name too rather than read as one long silence.

Output is ordinary clips: `.edith` stays v8.
✨ feat(timeline): clips play at a speed of their ownAhmet Kaan Gümüş · f8effe8
✨ feat(timeline): clips play at a speed of their own

A clip gains a rate (`Speed`, thousandths of real time, 0.25x to 4x) and
every speed question is answered at the mapping seams that were already
there: `Clip::frames` is the source range divided by the rate, `end` is
built on it, and `map`/`span_at`/`composite_span_at` walk the offset
through `Speed::source_at`. `in_frame`/`out_frame` stay *source* frames,
so a trim and a split still address the file.

The picture needs no new decoder: the span says how many source frames it
reads, and `try_frame` brings the decoder's numbers back through the same
rate -- at 2x two decoded frames land on one timeline frame and the
display's drop-when-behind policy takes it from there. The sound is
resampled per segment inside the worker playback and the audio export
already share (linear interpolation, carried across packet seams), so the
pitch moves with the rate: tape, not pitch-preserve, and the card says so.
Each segment is told how much timeline it owes and pads or trims to it,
which is what keeps a run of speeded cuts from drifting.

Rounding is where a rate could break the lane, so it does not: `Speed::fit`
never hands a trim more source than its room holds, and `Speed::split_at`
refuses a cut a slow clip's rate cannot address rather than leaving two
halves that no longer add up. The fuzz sweeps set_speed in with the rest.

- card in the eq/colour pattern, on `j` and in the clip menu; a drag is one
  undo step for the whole linked group, 1.00x reachable by hand and by `r`
- clip boxes carry a "2.00x" mark, and their width, waveform and details
  row are the timeline length
- WAV/FLAC honour it; mp4 and AV1 *refuse* by name -- that path copies AAC
  packets and a resample is not a copy (ponytail names the upgrade path)
- .edith v8 carries the rate; v7 and older load at 1.00x
- `assets/test_speed_sync.mp4`: one flash, one beep, same instant. At 2x
  they still land together, to the frame.
✨ feat(export): AV1 comes back out, in a Matroska file this editor reopensAhmet Kaan Gümüş · dd3a2a8
✨ feat(export): AV1 comes back out, in a Matroska file this editor reopens

The export card's second picture format. AV1 already *arrives* here as
Matroska (`mp4 0.14` has no `av01` sample entry at all, so `demux` walks
the EBML by hand); it now leaves the same way, through an `MkvMuxer`
written beside the mp4 one -- EBML header, `Info`, one `V_AV1` track whose
`CodecPrivate` is a real `av1C` record built from the first keyframe's
sequence header OBU, then clusters that open on every keyframe. The
segment size and the duration are the only two fields patched at `finish`.
Matroska rather than AV1-in-mp4 because the reader for it already exists:
the round trip closes against this project's own `Demuxer`.

Picture only, and said so on the row before a destination is picked ("AV1
picture in .mkv — no sound: export WAV or FLAC for that"). Matroska
carries no sound this project can *write* -- no AAC or Opus encoder here
-- and an AAC track copied in would be one this engine's own reader leaves
silent (`AudioSession::open` refuses Matroska audio). A silent track
written anyway is the one failure a user would not notice.

The encoder pair mirrors H.264's: `rav1e` in software, the plugin's new
`vh_enc_av1_open` on the GPU. The hardware seat is wired, tested and
**opt-in** (`VE_HW_AV1=1`): the vendored cros-codecs AV1 encoder took the
radeonsi box this was written on into an amdgpu hard recovery, and a
driver reset is not an export. `rav1e` is not a new dependency at all --
`ravif` already locks the same 0.8.1 -- and is built with `asm` off (no
`nasm` in this build) and `threading` on: 39 s for the 5 s 720p fixture,
progress reported the whole way.

HEVC and VP9 are rows too, refused by name: no encoder in this stack and
patent-encumbered, and superseded by the AV1 row above.
🔀 merge(main): library row menu meets the edge-trim source lengthsAhmet Kaan Gümüş · 5f60e19
🔀 merge(main): library row menu meets the edge-trim source lengths

Both sides appended a test at the same place in the app suite; both kept.

Seam: `PlaybackSession::counts` (the per-source frame lengths a trim is
walled by) is indexed exactly as `sources` is, and `remove_source` is the
one thing that shortens that list -- so it takes the matching count out
too. Left behind, the gone file's length walled the survivor and the next
import landed its count one index late, tripping `note_frames`'s
alignment assert.
✨ feat(timeline): a take detaches into halves and groups back togetherAhmet Kaan Gümüş · 0c00d5c
✨ feat(timeline): a take detaches into halves and groups back together

A music video's picture and its sound come apart on demand: Detach hands every
half of the group an id of its own, so each one selects, moves, trims and is
removed alone, and Group puts two clips covering the same frames back into one
take. Both are menu items and both are keys ("d" and ctrl+g), like every other
gesture here.

Engine: Project::ungroup(lane, idx) and Project::group(a, a_idx, b, b_idx), one
snapshot each, metadata only. A group id is one span on however many lanes
(links_are_consistent), so group refuses clips whose bounds disagree and names
the bounds to trim to; two clips of one lane, an index that is not there and a
pair that is already one take are refused in the engine's own words. Whatever
either side was grouped with is merged in, since all of it covers that span.

whole_take now reads the same rule on the picture as on the sound: a group id no
other lane carries is half a take on either lane, so Delete on a detached half
leaves the other half exactly where it is instead of rippling it away.
✨ feat(library): a right-click on a media row opens its own menuAhmet Kaan Gümüş · 97d941e
✨ feat(library): a right-click on a media row opens its own menu

Add at playhead, Remove from library, Reveal in files and Properties,
built like the clip menu down to the scrim and the clamp -- a click away
or any stroke closes it.

Remove goes through a new `Project::remove_source`, which refuses by name
while clips still play from the file (the refusal names the lanes and how
many clips each holds), keeps the last entry standing, and renumbers every
clip that indexed past the one that went. It retires the undo stack: the
history holds lanes alone, so a snapshot older than the removal could name
a source that is gone -- the notice says so, and the ponytail names the
upgrade path.
🐛 fix(engine,ui): paste respects lane kinds; bounds and rebind capture hardenedAhmet Kaan Gümüş · 11603ec
🐛 fix(engine,ui): paste respects lane kinds; bounds and rebind capture hardened

Four bugs a hunter sweep found, each with the door it comes in through:

- `Project::paste` put the clipboard clip in the first lane of *every* kind,
  so an audio-only clip copied off A1 landed on V1 too: a wav as a video
  source, a decode that fails, and a save the next open refuses. It now asks
  the source what it is, the same question `place_stream_at` asks an import,
  and reaches A1 only when there is no picture.
- The `resolution` line was applied unbounded while the keystroke capped at
  8K, so a crafted `resolution 4294967295 4294967295` panicked `open_black`
  with a capacity overflow. One bound now (`engine::is_resolution`) with both
  doors asking it, and the load door refuses by line like every other
  malformed line.
- `open_room` shifted starts unbounded, and the file format permits a clip
  ending at the very last frame: a paste wrapped it round to the front of the
  lane -- a debug panic, or in release an overlap no reload accepts. The edit
  door refuses the paste that would push anything past `u32::MAX`; the load
  bound stays where it is, since the wrap was the edit's to prevent.
- A rebind captured whatever gpui reported, so shift+= wrote `play +` and the
  next load threw the *whole* keybindings file away, losing every other
  rebind. Capture now takes only a chord the file can spell and read back, and
  a line the parser cannot use costs that line alone -- the magic line is the
  only thing that still refuses the file.
✨ feat(timeline): clips select from the keyboardAhmet Kaan Gümüş · cc90921
✨ feat(timeline): clips select from the keyboard

tab selects the clip under the playhead -- again for the next lane's --
and [ / ] walk the selection along its own lane, wrapping at both ends.
shift+tab stays unspellable (a chord carries only ctrl and parse refuses
an uppercase key), so the brackets are the pair.

One selection and not a second: every door -- click, right-click, all
three keys -- goes through Player::select, so the group-scoped tint a
click draws is the tint a key draws. Project::lane_clip_at is what the
walk asks, per lane, rather than the UI re-deriving where a clip ends.

This is what makes delete, lift, the equalizer and the grade reachable
with no pointer at all: the equalizer card had never been rendered live,
because nothing but a click could select the audio clip it needs.
✨ feat(engine): project resolution stands apart from media resolutionAhmet Kaan Gümüş · 19e294a
✨ feat(engine): project resolution stands apart from media resolution

A timeline had one resolution because its first source did: import refused
anything else by name, and there was nowhere to say otherwise. A project now
carries its own picture size and every clip is composed onto it, so media of
different resolutions share a timeline the way they do in any editor.

* scale::Composer is the one definition of that composition -- fit_rect,
  scale_i420, compose_i420 onto a black canvas -- and both playback and export
  call it, so what is written is what was watched. A canvas of the picture's
  own size is a pass-through that allocates nothing and touches no byte.
* Grade first, place second: a grade belongs to the clip's pixels at the
  resolution they were shot at, and the letterbox bars are not the clip.
* Per-clip fit policy (fit/fill/stretch/centre), one byte inline in Clip -- it
  lands in padding the clip already had.
* .edith v7: a `resolution <w> <h>` line and a fit word per clip line. v6..v1
  still load, defaulting to source 0's picture and Fit, which is what those
  projects always meant.
* The fps refusal stays: mixing frame rates is resampling the timeline, a
  different problem, and a refusal is the honest answer until it is solved.
* UI: `p` cycles the fit policy of the clip on screen (and a clip-menu item),
  ctrl+r cycles the project resolution through the usual sizes with the media's
  own among them, and the export card says which size it writes.
✨ feat(video): per-clip color grade is live in render and exportAhmet Kaan Gümüş · bd89527
✨ feat(video): per-clip color grade is live in render and export

The grade a clip carries now reaches the picture. `Project::composite_clip_at`
names the clip the composite shows at a frame and `composite_color_at` its
grade, so playback's decode worker (folded into `i420_to_bgra_with`, free in
the loop that was reading those samples anyway) and the export's encoder (onto
per-span scratch, since the planes are borrowed) grade from one answer.

`PlaybackSession::set_color` is an edit like any other, so it reseeks -- which
is what repaints the frame already on screen, paused or playing.

The card: `k` (or the clip menu's Colour…) opens four sliders on the selected
video clip, or on the clip under the playhead when nothing is selected, so it
is reachable with no pointer at all. Arrows pick and move a slider, r resets,
esc closes; a slider walked back to the middle takes the grade off, which keeps
an ungraded project byte-identical -- verified: the same two-clip export before
and after this slice is md5 98522c19cefac2f7851b51de6416a493 both times.
✨ feat(audio): per-clip equalizer is live in playback and exportAhmet Kaan Gümüş · 4d92155
✨ feat(audio): per-clip equalizer is live in playback and export

The model, the format and the filter have all existed with no callers. This
wires them: `Project::audio_eqs_from` hands one curve per segment beside the
play list `audio_segments_from` already builds, `open_mixed_streams_eq` gives
each lane's worker those curves, and `emit` -- the one place both readers hand
their samples over -- filters a segment after it is trimmed and before it is
sent. Playback and an audio export therefore get the same filtered stream by
construction rather than by two call sites agreeing.

A parallel list, not a fourth element of the segment tuple: that tuple is what
every opener, the packet-copy path and a dozen tests speak, and an effect is not
part of which samples a segment names. A short list plays flat, so a mismatch
can neither panic nor shift a curve onto the wrong clip.

Live editing needs no channel into a running worker: `set_eq` is an edit and
every edit reseeks, so the workers are rebuilt from the new curves where the
playhead is standing.

An mp4 export copies AAC packets and no filter can reach a copy, so an
equalized clip is refused by name and by timecode rather than written flat.

The card is the third of its kind (same scrim, width and rows as keys and
export): a row per band, dragged from the middle out, with `q` to open it and
1-5 / up / down / r as its own keyboard, every one of them listed in the keys
menu by the registry the guard test reads.
✨ feat(timeline): every lane draws and tracks can be addedAhmet Kaan Gümüş · 30e8aae
✨ feat(timeline): every lane draws and tracks can be added

The panel drew V1 and A1 and nothing else, so the N-lane model, the
composite playback and the v6 format had no way into the window. It now
draws a row per project lane, labelled from Lane::label, and grows the
panel per row up to a cap past which the lane column scrolls.

+ V / + A -- and the v / a chords, in the registry so the keys menu lists
them -- add a track; undo takes one back like any other edit.

The V1/A1 pinning the last two slices flagged is gone: delete_clip takes
the lane its index belongs to (Project::delete_in), a drop names the lane
it was let go over (place_stream_at's onto), and whole_take decides
ripple-or-lift per lane -- a clip on an added track is a layer and is
lifted, while the first pair keeps exactly the semantics it had.
Project::paste now inserts into V1/A1 only while still opening room
everywhere, or an Add with three lanes would have played one sound twice.

The export card greys MP4 out with its reason when more than one audio
lane carries sound, on the row and on the m chord both, so the engine's
refusal arrives before a destination is picked.
✨ feat(timeline): right-click context menu on clipsAhmet Kaan Gümüş · 769daad
✨ feat(timeline): right-click context menu on clips

A right-click on a clip selects it exactly as the left button does and hangs
a menu at the pointer: Cut, Delete, Lift, Regroup, Mute and Properties, each
beside the stroke that does the very same thing. Both halves come out of the
keymap registry, so the menu and the keys card can never disagree about what
an action is called or how it is reached.

Every item goes through the new Player::act -- the same table the key handler
now dispatches through -- so a menu item *is* its stroke, asked for with the
mouse. Cut and Regroup act on the playhead rather than on the clicked clip, so
they are dimmed where they would do nothing rather than hidden.

Escape closes it through the esc row the keys menu already lists, and so does
any other stroke: the menu holds a clip index and every edit moves indices.
Click away on either button closes it too, and no menu opens at all while a
card owns the window or an export owns the edit list.
♻️ refactor(ui): single-source shortcut registry feeds handler and keys overlayAhmet Kaan Gümüş · 8aba979
♻️ refactor(ui): single-source shortcut registry feeds handler and keys overlay

The keys menu listed only the bindable actions, so the strokes the modal
cards read for themselves -- escape out of a card, a digit or backspace in
the export card -- worked and were nowhere on it. They join the registry as
Fixed entries, every action gains a Category, and the overlay draws both
halves grouped by heading.

no_stroke_is_missing_from_the_keys_menu reads the key handler's own source:
every key it compares against must be a binding or a Fixed entry, so a new
shortcut that nobody listed fails the test instead of shipping invisible.
✨ feat(timeline): two lanes, waveforms, group-scoped selectionAhmet Kaan Gümüş · 591afa3
✨ feat(timeline): two lanes, waveforms, group-scoped selection

V1 and A1 get a fixed header column and a bed of their own, both offset
by the same constants the ruler now is, so one x maps to one moment in
all three rows. Clips are placed at their own start rather than queued
edge to edge: a lift leaves a hole and the bare bed showing through it
is how a gap looks.

Audio clips paint their source's min/max envelope, cached per file and
normalised to its own loudest sample -- the fixtures peak near an eighth
of full scale and would otherwise draw as a flat line. A click marks the
whole group and acts on the half it landed on, which is what makes a
detached half separately deletable.

Two actions the lane model owed a key: Regroup rejoins what a Cut split,
Lift removes one half and leaves the gap. Both auto-list in the
keybindings overlay and are rebindable like the rest.

`PlaybackSession::lane_clips` is the one engine addition: link ids and
source ranges are what a two-lane front-end draws with, and no existing
accessor carries either.
🔊 feat(audio): volume and mute for the monitoring outputAhmet Kaan Gümüş · bb07bdc
🔊 feat(audio): volume and mute for the monitoring output

One knob down the stack: `ao_set_volume(handle, gain)` scales the samples
in the RT callback, and mute is a gain of 0.0. Not the stream's PipeWire
volume control -- WirePlumber persists every Props change into its restore
state (measured on this box: the bucket gains `mute:true` ~2 s later), so
a mute keypress would have become "edith has no sound" in tomorrow's
system mixer, which is the bug 9ab4ebd just finished removing.

Volume and mute stay independent: turning the level down while muted must
not be what makes sound come out. The button says both at once.

Mute is not pause -- the frames are still consumed, so the device clock,
and with it the picture, runs straight through.

The keybindings card's row list now scrolls inside a cap, which is the
upgrade path its own ponytail named: three more actions no longer fit a
360 px window, and now no number of them can stop fitting.

2026-08-09

🐛 fix(keys): overlay title overlap, one row per actionAhmet Kaan Gümüş · d598c98
🐛 fix(keys): overlay title overlap, one row per action

Title sat in a fixed-height slot; wrapped text painted over the
first row. Title and status line are now auto-height flex_none
children, rows use min_h. Rows merged to one per action showing
the full chord set; a rebind replaces all of the action's chords
(multi-chord stays possible via the config file). Rows grew to
the 24px hit minimum. In-card notice moved to the status line
under the title.
✨ feat(keys): rebindable keybindings, single source of truthAhmet Kaan Gümüş · cad8d5a
✨ feat(keys): rebindable keybindings, single source of truth

Every shortcut lived in hardcoded match arms and tooltip strings.
New keymap module owns all bindings: dispatch, tooltips, hint line
and the Keys overlay all derive from it. Click a row, press a key
to rebind; conflicts rejected naming the holder. Persists to
XDG_CONFIG_HOME/edith/keybindings (strict line format, atomic
write, malformed file falls back to defaults with a notice).
Escape stays hardcoded as the way out of capture, overlay and
export — a rebindable exit could lock the user out.