forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on 978e6857d64772912559c8d8a4e6ee7cd309bdccFiltered to crates/app/src/tests/editing.rsClear filter

2026-08-20

🐛 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.
✨ 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

✨ 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(app): the project settings answer before the first fileAhmet Kaan Gümüş · f30fe44
🐛 fix(app): the project settings answer before the first file

The oracle refused ActionId::Resolution with no timeline, so the Size,
Rate and sound-rate rows — the whole pre-import settings surface — were
dim exactly when a pending pick means the most. Joins the editor-wide
always-on list; the no-timeline sweep test now pins it.
✨ 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): 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.
🧹 fix(engine): the inverse admits its hole, the scale law lives onceAhmet Kaan Gümüş · 47c08dd
🧹 fix(engine): the inverse admits its hole, the scale law lives once

invert fabricated an answer for the frames a shift-right piece never
produces -- the hole between the identity run and the piece's own image
-- against its own doc. It answers None there now, and a test walks the
hole asserting so.

The caption scale law lived twice, one copy clamped and one not, the
exact duplication that drifted a frame before: scaled_caption_frame is
now the single fn both write_speed and speeded_playhead call. The
successor guard saturates instead of overflowing at the clamp ceiling,
and the ungrouped-layer arm of whole_take is pinned by its own test
again -- a layer is lifted, never rippled.
🐛 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): tempo ops carry the captions of a groupAhmet Kaan Gümüş · b801cf5
✨ feat(timeline): tempo ops carry the captions of a group

A group's caption now travels with everything that re-times it. A rate
set on any member re-times the caption members by the ratio the held
clip's own frames take -- the span on the timeline compresses about the
held clip's head while the words keep their own window -- and a stretch
that would run a caption into its neighbour is refused in the clip
arm's words. The silence scan's speed-up shrinks the caption pieces
inside its regions and slides the rest up with the clips; its Take
scope carries the caption's lane so the cut does too; and the scope law
names a caption half left outside a scoped cut, in the words it always
used for a clip's.

The cards stop dead-ending on a caption in hand: speed and silence
resolve a caption anchor to the media half of its group (the picture
and the sound respectively) and say so out loud -- with the how-to --
when there is no media behind the words; the equalizer takes the
group's sound the same way. Colour and Fit are untouched: a caption
anchor retargets to the playhead's picture exactly as an audio anchor
always has.
✨ 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

🐛 fix(ui): the stand-in switches are answerable before the first filmAhmet Kaan Gümüş · 2995059
🐛 fix(ui): the stand-in switches are answerable before the first film

Both proxy switches were dead with nothing open: the availability oracle
refuses everything below "no timeline open", and the state they toggled
lived in the session, so a window with no session had nowhere to keep an
answer and the buttons read a bare "Proxies" with no state at all.

That is backwards for what these two are. They are import options -- one
decides whether an arriving film gets a stand-in made for it, the other
what its picture is then decoded from -- so the moment a person can act
on them is *before* the import, and a switch that waited for a film was
a switch that came too late to stop the encode it was about.

So the pair joins the four the oracle already answers with nothing open
(the snap and the monitoring level), and the window keeps them the way
it keeps its volume: its own, pushed at every session it opens
(`apply_proxies`), and taken back from a project as it loads, since a
`.edith` carries its own two and they are what it was saved with.

The buttons now say on or off with an empty window, an import made while
Auto proxies is off starts no encode, and the keyboard and the pointer
go on answering the same question -- which is the rule that put the four
in the oracle in the first place.

Two dead imports in the same two files go with it: the build printed
them and they are one line each.
✨ 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

🐛 fix(tests): a card's body ends where the card doesAhmet Kaan Gümüş · f6f8156
🐛 fix(tests): a card's body ends where the card does

`every_card_closes_without_the_keyboard` read a card's source "up to the
next `\n    fn `" out of every source file joined end to end -- and these
methods are `pub(crate) fn`, which that cut matches none of. So each body
ran tens of thousands of characters past its own end, through the rest of
its file and into the next one: `mix_card`'s scrim could stop closing the
card and the guard still passed, on five other cards' `close_card` calls
downstream of it.

Two helpers in the tests' own module now, because a slice that starts at
`ui_source()` spills by construction and there are 42 seams to spill at:
`source_from` cuts inside the one file its needle is in, and `fn_body`
ends a method at the `    }` at the impl's own indent. The inspector's
occlusion rule reuses the first; the concatenation keeps its old job of
answering whether a line is written anywhere, and says so.
🔧 chore(tests): the window's tests move out of the file they were testingAhmet Kaan Gümüş · e87ada1
🔧 chore(tests): the window's tests move out of the file they were testing

Two thirds of `main.rs` was its own test module: sixteen thousand lines,
of which six thousand were the tests. They are `src/tests/` now -- shared
imports and fixtures in `mod.rs`, the tests themselves under the five
headings they already fell into: editing, view, cards, media, layout.

Pure motion, except for the scans. Several guards read the window's own
source to hold a structural rule, and they read it with `include_str!`
over a list of file names -- a list that goes quietly wrong the moment a
region moves house, which is exactly what this commit does to six
thousand lines and the next one will do to more. They walk `src/` at run
time now: every `.rs` under it, found rather than named, so a rule cannot
be passed by moving the code out from under it. A stray colour in a file
nobody declared as a module is caught; under the old list it was not.