forge
Explore
Log in

Don't you dare go Hollow

Commits

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

2026-09-15

✨ feat(audio): stable envelope height, full hue/sat, strands and glowAhmet Kaan Gümüş · 7ebfc44
✨ feat(audio): stable envelope height, full hue/sat, strands and glow

The 2s window no longer rescales to its own peak, so a bump keeps its
height as it enters and leaves. Colour is a 64-stop hue bar plus sat
(white→full). Strands and glow go from one line to the dense ring.
Packed on Clip.viz_paint; dialect v22.

2026-09-14

✨ feat(audio): waveform styles, any soundtrack, keys search, group on the clip menuAhmet Kaan Gümüş · dfcec06
✨ feat(audio): waveform styles, any soundtrack, keys search, group on the clip menu

Visualizer is no longer wav-only: h on a video clip with sound paints
that file's soundtrack. Style bits live on the clip (outline, smooth,
fast, colour) and toggle from CLIP. `?` type-to-filters the keys list.
Group / Ungroup / Regroup are clip-menu rows, not chords-only.

2026-09-09

🐛 fix(app): a cross-lane shadow clamps where the engine clamps, and the strip says MOVEDAhmet Kaan Gümüş · 15b0c7f
🐛 fix(app): a cross-lane shadow clamps where the engine clamps, and the strip says MOVED

The landing shadow for a clip let go over another lane read a whole-span
overlap and drew REFUSED, while the engine only refuses a head let go
inside a take or a gap too narrow to hold the clip -- an obstacle at
(360, 420) with a 90-frame clip asked at 315 previewed refused and landed
at 270. `cross_room` mirrors `Project::move_room` and the shadow reads it.

With it: the bench catch-all answers an asset, a caption and a palette
row too (a release off the rows reached nothing); a fresh drag forgets
the previous gesture's lane and x; a move that lands writes its word to
the ledger strip; and the head column is HEAD_W (60) px, not the 72 three
comments claimed.
🎨 style(app): the ledger reports state, and never cuts a word to do itAhmet Kaan Gümüş · 9e93f65
🎨 style(app): the ledger reports state, and never cuts a word to do it

Notices lose their instructional tails (DESIGN §8): a remedy is a verb and
its chord (`V2 ADDED · undo z`), never a sentence. The strip ellipsises at
its end and elides a long name through its middle first, so the state word
at the front is never what a narrow window drops.

2026-08-27

🎨 style(app): cargo fmt pass over the media-kind verb-filtering diffAhmet Kaan Gümüş · 9ac15de
🎨 style(app): cargo fmt pass over the media-kind verb-filtering diff

No behavior change -- just rustfmt normalizing line wraps the prior
commit left ragged.
🐛 fix(app): drag drop commits the frame the ghost last showed, snaps to 0 within 10pxAhmet Kaan Gümüş · 1f68773
🐛 fix(app): drag drop commits the frame the ghost last showed, snaps to 0 within 10px

One x source for a drag: on_drag_move now stashes the pointer x that drew the
ghost (Player::drag_x), and on_drop reads it back instead of a fresh
window.mouse_position() -- gpui's drop callback carries no position of its
own, so a second poll of the pointer was never guaranteed to answer what the
ghost just showed. A wider DROP_SNAP_PX (10px, vs the 5px trim-nudge
SNAP_PX) gives a release room to land on a mark; frame 0 was already always
in snap_marks, even on an empty timeline, so the "must be pixel-exact to
land at 0.0" complaint was tolerance, not a missing mark. The lane row's
frame-0 seam moved from a layout border (which eats a pixel out of its own
content box) to an absolute overlay, so the ghost, clips, and
Player::frame_under all agree on one origin.

Adds drop_landing_tests covering pull-to-0 on an empty timeline, pull onto a
clip edge, and pull onto the playhead.

2026-08-26

🐛 fix(app,engine): pay debts — audio-only fallbacks, panic-proof proxy, .part sweepAhmet Kaan Gümüş · b05a649
🐛 fix(app,engine): pay debts — audio-only fallbacks, panic-proof proxy, .part sweep

Twelve debts paid in one batch:

- engine: NoVideoTrack fallback at every video door — open_stream,
  open_project scaffold, and import() now route a video-extension file
  whose header holds no picture to the audio-only path instead of
  refusing (argv open, saved-project reload, and library import).
- engine: proxy/export worker wrapped in catch_unwind — a decoder panic
  settles the shared slot with Err instead of stranding Making/Cancelling.
- vendor/cros-codecs: AV1 setup_shear multiplies checked — malformed warp
  params are a parse error, not a process abort (live-proven on an AV1 film:
  clean PROXY FAILED notice, slot released, app alive).
- engine: startup sweep of orphan proxy .part files.
- app: Player::has_video probe cache — lane_refuses gates drops on the
  probed kind, not the extension; Silences hidden on soundless clips;
  audio import toast names rate/channels/length; stale no-session proxy
  label cleared.
- tests: audio-only mp4 fixture + gen_fixtures.sh line, 2 engine
  NoVideoTrack tests, toast/lane/view cases (246 bin + 14 audio_files).

Harness-proven this batch (runs 20260826-2306..2315): split-at-playhead
with undo, lane-remove mouse door, fade-out drag, argv audio-only open,
AV1 proxy clean failure.
🔥 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(app): loop honors the i/o range, priority range > trim > timelineAhmet Kaan Gümüş · 0d4b12a
🐛 fix(app): loop honors the i/o range, priority range > trim > timeline

Player::pump and the Ended crossing both restarted only inside
loop_trim or the whole timeline, ignoring a marked i/o range
entirely. active_loop_window() now picks range > loop_trim > whole
timeline, gated so a bare range with neither loop_on nor loop_trim
never starts looping un-looped playback -- it is an export mark
first. Loop button tooltip names which window is in force.

2026-08-21

fix: format Darkroom integrationAhmet Kaan Gümüş · 9a27ee6Browse files

2026-08-20

✨ 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.
✨ feat(ui): the cut becomes the subject and the dock fillsAhmet Kaan Gümüş · 14bd4a6
✨ feat(ui): the cut becomes the subject and the dock fills

DESIGN.md §12 steps 3 and 4. The cut grammar dispatches for real: , and .
walk the marked clip's cuts (shift strides ten), [ and ] trim its edges at
frame detents through the same engine door the mouse drag uses, / loops the
subject span while the transport pumps. The maths live as pure functions in
timeline_math.rs with their own tests.

The stance's own regions fill in: the spine carries its commands as ghost
glyphs wearing chords read live from the keymap, the screen draws the
picture through the same path the legacy room uses and puts OUT|IN plates
up when the playhead rests on a cut, the time band leads with timecode and
the cut odometer. The stance root now takes focus and reads keys — before
this it had none, so the chords were unreachable there.

The dock delegates to ui/dock_stance.rs: Sources reuses the library
assembly, Clip shows Speed, Colour, Transform and EQ as ghost verbs over
the existing param cards. No box in the dock; the only one is Export.

2026-08-19

merge audio-fades engine (edith 18) and wire fade drag stateAhmet Kaan Gümüş · 55dd056
merge audio-fades engine (edith 18) and wire fade drag state

Merges the fades/crossfade engine branch in, adds PlaybackSession
wrappers (fade_in_of/set_fade_in/fade_out_of/set_fade_out/crossfade)
and the FadeDrag gesture plumbing on the root (start/move/commit),
ahead of the drawing and keymap work.
✨ feat(engine): per-clip audio fades, adjacency crossfade, and edith 18Ahmet Kaan Gümüş · 6d0747c
✨ feat(engine): per-clip audio fades, adjacency crossfade, and edith 18

Clip carries fade_in/fade_out, an equal-power gain envelope mixed into
playback and export, a crossfade() op that sets both edges of two
adjacent audio clips, and split's rule that only the kept edge keeps its
fade. The project file format bumps to edith 18 to carry the two new
fields; a v17 (or older) file loads with every clip's fades at zero.

Fixes a stray fade_in/fade_out struct-literal fragment left outside any
Clip literal in Player::trimmed (crates/app/src/player/timeline_edit.rs),
which was a syntax error breaking the whole app crate's build.

Adds unit coverage for Fade::gain_at's boundary/midpoint curve, the
split edge rule, crossfade's adjacency refusal, the Clip size-lock
test (40 -> 48 bytes), and a v17-loads-zero-fades / v18-round-trips
edith.rs test.
🐛 fix(timeline): a grouped clip is a whole take from any laneAhmet Kaan Gümüş · b1daa98
🐛 fix(timeline): a grouped clip is a whole take from any lane

whole_take answered false for any clip on an added row before it ever
asked whether the clip was grouped, so Delete on a grouped clip on
V2/A2 routed to lift_clip and left the group's caption behind with an
orphan link -- the same one-law-from-every-anchor class cdc53a6 closed
on the caption side. The pairing check now comes first; the ord gate
only catches genuinely ungrouped layers, which are still lifted.

One existing test had the bug baked into its assertion
(!whole_take on a grouped V2 take) and now asserts the law instead.

2026-08-15

✨ feat(timeline): the scrollbar is only there while there is somewhere to goAhmet Kaan Gümüş · dd77ab0
✨ feat(timeline): the scrollbar is only there while there is somewhere to go

Zoomed out to the whole timeline the horizontal strip was furniture for
a view that cannot move: a dim full-width thumb under the lanes, holding
its row whether anyone could use it or not. The strip now vanishes at
the fit -- and its row goes with it, out of every budget at once. The
budget grew a door: timeline_fixed_h(scroll) answers the region
(timeline_h), the fold the lanes are laid out against and the seam's
drag floor together, so the three cannot disagree about whether the
strip is there, and the lanes keep exactly the room they had at either
side of the zoom that crosses the line. The share stays sized for the
taller, strip-bearing floor -- the one the clamp would otherwise
overrule at the 640x360 floor.

The lane stack gets its own bar too, over the beds' right edge -- over
and not beside, because a gutter would take its width off the bed and
the ruler above would stop pointing at the moment the lanes are drawn
at. The thumb is the visible share of the rows, read straight off the
column's own scroll handle -- box, fold and how far down it has been
taken are all the handle's to know, so nothing about the stack is a
second truth -- and a drag is followed on the root like every gesture
that outlives its strip. Names and beds are one column, so they move
together; the wheel over the strip scrolls the stack a notch's share of
what it is showing, and with the whole stack on screen there is no
strip at all.
✨ feat(timeline): a scrollbar under the lanesAhmet Kaan Gümüş · c707e9d
✨ feat(timeline): a scrollbar under the lanes

The time axis was the one dimension the panel scrolled with no bar to
scroll it by -- only the wheel and the keys reached it. A strip under
the lanes now carries a thumb that is the visible share of the drawn
duration at its own place on the track: read off the very Scale every
box is drawn through, so a wheel notch, a zoom about the pointer and
the follow of the playhead all move it, because they all move the one
state.

Drag the thumb and the view follows live (the pointer leaves the 6 px
strip at once, so the gesture is followed on the root like a scrub);
press beside it and the view jumps to the press and carries on from
there; the wheel still works over it. The strip is its own mouse
region -- a press there never reaches a lane -- and with nothing to
scroll the thumb fills the track and dims.
🐛 fix(timeline): a caption's unity gate is measured in framesAhmet Kaan Gümüş · 71b7468
🐛 fix(timeline): a caption's unity gate is measured in frames

The badge's unity gate was two permille, but placement rounding is an
absolute error: frames_of_us leaves a short track up to half a frame
off real time, which is sixteen permille of a one-second window — most
palette drops under two and a half seconds badged, one of them a
self-contradicting 1.00x.

Unity is now 'the window lands within a frame and a half of the span',
in the timeline's own frames; the permille survives only as the rate
the badge shows.
✨ feat(timeline): captions keep their own clock through a re-rateAhmet Kaan Gümüş · f8f5c46
✨ feat(timeline): captions keep their own clock through a re-rate

A placement's cues crossed the timeline one window-microsecond to one
timeline-microsecond, which is only the truth at unity: a group's
re-rate compresses the frames and leaves the window alone, so the plate
and the lane export drew the words falling behind their box, cue by
cue, and the tail past the end. The map now goes by the placement's own
proportion -- at unity every cue lands exactly where it always did, to
the microsecond, and at 2x the words cross in half the time.

A caption's box wears the rate its window plays at, derived off the
placement itself (so the badge survives the group coming apart), gated
past placement rounding; and the grade and the fit resolve a caption in
hand to the picture it was pinned to, saying so out loud when there is
none -- the speed, silence and equalizer cards' own rule.
✨ 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.
✨ feat(timeline): a caption is taken off the lane by the same stroke and row a clip isAhmet Kaan Gümüş · 888f39d
✨ feat(timeline): a caption is taken off the lane by the same stroke and row a clip is

A placed caption could only be lifted by a ✕ that vanished on narrow
boxes. Captions are now marked by a click, lifted by x/delete and the
menu, and dragged — parity with every other thing on a lane.

The mark is keyed by a caption's start frame, so a refused drop, a
sorted insert or a removal cannot shift it onto the caption beside it.
With a caption marked the playhead actions stay live while its menu
carries only its own rows: the playhead's clip actions — split, rate,
grade, fit — would read as the caption's.

2026-08-14

✨ feat(app): the words get a track of their own, dragged and trimmed like everything elseAhmet Kaan Gümüş · eef3d5d
✨ feat(app): the words get a track of their own, dragged and trimmed like everything else

The subtitle strip under the lanes is gone and the subtitle lanes the engine
model landed are drawn as lanes: the same row, the same header, the same bed.
A palette row is dragged out of the Subtitles list onto one, a placement is
dragged along it or onto another subtitle track, either end is trimmed, and the
box's own × lifts it off -- a caption is not in the clip selection's index
space, so no stroke reaches it and a lane holding one may not be removed.

The row is `lane_row`, unbranched: a subtitle lane holds no `Clip` and every
other lane holds no `SubClip`, so the two lists are never both full and there is
no second kind of row to keep in step. Headers reorder and remove through the
machinery every lane already had.

An `Ok` is never a toast: `move_sub` and `trim_sub` answer a pick-up-put-back
and an edge stopped at a wall with `Ok` and no undo step, so only the refusals
are shown, in the engine's own words after the head. A subtitle lane refuses
media in `lane_refuses`, so the shadow is red on the way down.

Each lane's header carries its eye, on by default and dropped wholesale when a
lane is removed or reordered -- what reads it over the picture is the next
slice; nothing is saved yet either.
✨ feat(engine): subtitles become a third lane kind, placed like everything elseAhmet Kaan Gümüş · ec66e07
✨ feat(engine): subtitles become a third lane kind, placed like everything else

`LaneKind::Subtitle` joins the lane list, holding `SubClip`s -- a
`[in_us, out_us)` window of one of the project's subtitle tracks (the flat
`subtitles` list stays the palette) placed at a timeline frame. A caption is
therefore added, ordered, labelled `S1`, snapshotted, rippled, razored and
undone by the machinery every clip already goes through: an undo step is the
lane list, so subtitles joined the history without one of their own.

It carries no `Clip` at all, and that is what keeps the media paths free of it:
`Project::lane` hands back an empty slice, so trim/set_eq/set_color/set_fit/
set_speed/lift/delete_in refuse it by the bounds check they already had, the
composite and the mix never look at it, and the three doors that could still put
a picture on one -- `from_parts`, `place`, `append_clip` -- say so by name.

Ops: `place_sub` (refuses an overlap rather than overwriting -- words that lost
are simply gone), `move_sub`, `trim_sub`/`trim_sub_room` (clamped like a media
trim; the window follows the edge), `lift_sub`, and `sub_lane_cues`, which maps
a lane to cues clipped to each window and shifted onto the timeline -- the twin
of `export::timeline_cues` for a track that is placed rather than carried.

Ripple, paste-room, split and regroup cut the windows by *proportion*, so none
of that arithmetic needs a frame rate; only a trim and the mapping take one.

Not here, on purpose: persistence (`Parts` has no line for a `SubClip`, so a
save leaves the lanes out -- named at the filter) and any UI.
🐛 fix(app): the cue steps over the bar hanging off the pictureAhmet Kaan Gümüş · 0c26d06
🐛 fix(app): the cue steps over the bar hanging off the picture

A notice, the import line and the seek line hang off the bottom edge of
the picture region, and the cue plate sat at a fixed 8 px off that same
edge -- so every message was drawn across the line being read, and cost
the reader both of them.

The plate now sits above whatever those bars measured (`height_probe`
-> `sub_bottom`) and comes straight back down the frame they leave: the
no-notice position is unchanged to the pixel, which is the position
people are used to. A picture cue (PGS) is slid up by the same
measurement with cancelling top/bottom insets, so the disc's canvas
keeps the height -- and so the fit -- it had with nothing hanging
there, rather than being refitted into a shorter box.

Measured and not counted: a notice wraps to as many lines as the window
is narrow (31 px on one line, 43 on two), and any constant here would
be right at exactly one width. The probe asks for one more frame when
that height changes, because the window a notice arrives on may be
paused and never draw again by itself.

2026-08-13

🔧 chore(app): the window's file lets sixteen neighbourhoods keep their ownAhmet Kaan Gümüş · 963252a
🔧 chore(app): the window's file lets sixteen neighbourhoods keep their own

main.rs was 10,529 lines with every constant, every helper and the
window itself in one place. The geometry, the transport, the import
state, the menus, the export card, the oracle, the library rows, the
subtitles, the equalizer, the colour card, the viewport and the
timeline's arithmetic each move out to the module they belong to; the
Player and its two impls stay, which is what the file is for.

Pure motion: every line is the line it was, with pub(crate) added only
where a module boundary now stands between it and its caller.
Player::enable still delegates to the one oracle.