Commits
Commits on
6dae2b40ea0c16f5be88335cb6cbf4e82d943f492026-08-19
✨ feat(app): redo has a toolbar button beside undoAhmet Kaan Gümüş · 6dae2b4
✨ feat(app): redo has a toolbar button beside undo The toolbar only exposed undo as a click target, leaving redo (ctrl+y) reachable by keyboard alone. Add a sibling button and mention redo in the timeline hint line.
✨ 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.
🐛 fix(app): a preview's end no longer throws the timeline playheadAhmet Kaan Gümüş · 8f0c500Browse files
🐛 fix(app): a preview's end no longer throws the timeline playheadAhmet Kaan Gümüş · 8bfbcb3
🐛 fix(app): a preview's end no longer throws the timeline playhead playhead() snapped the ruler to the timeline's duration whenever the transport read Ended — and the transport reads the preview while one is up, so a preview running out hurled the ruler to the timeline's end. The snap now asks the timeline's own session only. Driven: preview halts at 35:18 with the ruler holding 08:14.
✨ feat(app): the playhead can loop, on the timeline and in a previewAhmet Kaan Gümüş · 214ffa3
✨ feat(app): the playhead can loop, on the timeline and in a preview Driven: loop wraps a preview near its end and keeps playing; loop off halts at the end exactly as before.
✨ 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.
🧹 chore(app): the compiler has nothing left to sayAhmet Kaan Gümüş · 47519e8
🧹 chore(app): the compiler has nothing left to say The uniform lanes_shown/rows_below pair went with their last caller (the mixed math is the render's), their pins moved onto the mixed variants, and the escape rule's re-export is the tests' alone.
🐛 fix(app): the scrub bar steps over the notices instead of on themAhmet Kaan Gümüş · 3136aa6
🐛 fix(app): the scrub bar steps over the notices instead of on them Its 24px hit area sat on the one-line notice plate, so a click meant to dismiss the notice seeked the preview instead, and the fill bisected the text. The bar now rests on top of whatever height the transient bars measured this frame.
✨ feat(app): fullscreen fills the screen with the player, not the appAhmet Kaan Gümüş · 3b02ca6
✨ feat(app): fullscreen fills the screen with the player, not the app Merge of the player-fullscreen branch over the scrub-bar branch: the picture region is one method both layouts call, and the preview scrub bar rides in it — drawn last, so the PREVIEWING notice plate no longer hides it the moment a preview starts.
✨ feat(app): the preview gets a scrub barAhmet Kaan Gümüş · 6117d24
✨ feat(app): the preview gets a scrub bar Driven: click at 50% seeks to half the file, drag scrubs, escape leaves the timeline region pixel-identical.
✨ feat(app): the preview gets a scrub barAhmet Kaan Gümüş · e9c5f4b
✨ feat(app): the preview gets a scrub bar The preview picture now carries its own seek track along its bottom: the played share drawn as a fill, a WCAG-tall hit area over a 6 px rail, and click or drag to jump anywhere in the file. It seeks through the ordinary `Player::seek`, so it lands on the preview session the way the keyboard step does and never disturbs the timeline underneath. Driven headlessly against a 100 s H.264 mp4: the fill advanced 1:35:01 -> 1:39:18 between two shots, a click at the bar's midpoint moved the clock 1:39:18 -> 0:50:02 with the picture changing, a drag 850 -> 300 px landed 0:09:01, and esc left the timeline region pixel-identical to its pre-preview shot (compare -metric AE = 0).
✨ feat(app): fullscreen fills the screen with the player, not the appAhmet Kaan Gümüş · 24cc062
✨ feat(app): fullscreen fills the screen with the player, not the app Fullscreen used to hand the OS window to the monitor with all of the chrome still on it -- a bigger editor, not a bigger picture. It now draws the picture region alone, the way every consumer player does, and asks the platform's own toggle to agree with it. Escape leaves it, and is answered before any menu or preview under it gets a look at the stroke: one stroke, one effect, so an escape with a preview open behind fullscreen leaves fullscreen first and stops the preview on the second. F11 toggles it either way. Driven live in the nested-sway harness on a 4K H.264 mp4: the click on Fullscreen left only the letterboxed picture on screen (no topbar, library, inspector or timeline pixels) with sway fullscreen_mode=1; Escape brought the whole layout back at fullscreen_mode=0; F11 in and Escape out repeated it. 174/174 app tests green.
🐛 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): the project's sound rate joins Size and Rate in the inspectorAhmet Kaan Gümüş · 97ba514Browse files
✨ feat(app): the project's sound rate gets a picker beside its two siblingsAhmet Kaan Gümüş · 2c88d10
✨ feat(app): the project's sound rate gets a picker beside its two siblings Resolution and rate have long had a card row and a stroke; the mix's own sample rate (engine already honours it end to end) had neither. Wires PlaybackSession::sample_rate/set_sample_rate through a third pending_settings slot, a SampleRate pick/choice, and a project-panel row next to Size and Rate -- reachable before any file is open the same way the other two are.
✨ feat(engine): the project's sample rate is its own to name (.edith v17)Ahmet Kaan Gümüş · 3a2e5eaBrowse files
✨ feat(engine): a project can name its own sample rateAhmet Kaan Gümüş · 31981de
✨ feat(engine): a project can name its own sample rate .edith goes to v17 with an optional samplerate line; the session carries it, save/load round-trip it, and the one audio-open seam every consumer shares (open_multi_streams_speed_at) conforms all segments to the named rate — playback rebuild and both export encoders inherit it for free. Proxies keep their film's own rate. A v16 file loads with the rate unset, meaning derived-from-source as before.
🐛 fix(app): a preview shows neither the timeline's captions nor its hintsAhmet Kaan Gümüş · 490cfd3
🐛 fix(app): a preview shows neither the timeline's captions nor its hints The timeline's cue overlay would caption the wrong film over a preview picture, and the drop-a-file hint keyed off the timeline session alone.
🐛 fix(app): the transport clock reads the preview while one is upAhmet Kaan Gümüş · a7406daBrowse files
🐛 fix(app): the transport clock reads the preview, not the timeline, while one is upAhmet Kaan Gümüş · c60633d
🐛 fix(app): the transport clock reads the preview, not the timeline, while one is up The toolbar's timecode/duration readout took position and duration from the timeline's own playhead unconditionally, so opening a library preview kept showing the timeline's time underneath it. It now reads active_session()/active_fps() like the rest of the transport does, so the clock tracks whichever session is actually playing; Escape still hands it back to the timeline the moment the preview closes. The ruler's own clock (timeline.rs) and the timeline context-menu timecodes are untouched -- they are timeline-bed reads and must keep following self.session regardless of a preview.
🎨 style(app): timeline captions read as sentences againAhmet Kaan Gümüş · ee438f4
🎨 style(app): timeline captions read as sentences again The caption box body returns to the original strip visual (8b1d5a3): letterbox ground with a full-height rounded block per cue, so every sentence's start and end is visible. The 4px band and the in-box label go; tooltip and ghost still carry the name.
✨ feat(app): the row's play button previews the row's own audio trackAhmet Kaan Gümüş · a7d8eab
✨ feat(app): the row's play button previews the row's own audio track New engine door PlaybackSession::open_with_audio_stream binds a chosen stream; library rows already name theirs, so a multi-track remux previews each language from its own row.
🐛 fix(timeline): captions get their per-cue blocks backAhmet Kaan Gümüş · c4ece9f
🐛 fix(timeline): captions get their per-cue blocks back The 4px cue band at the bottom of a caption box was too subtle to see where a sentence starts and ends. Each cue is now its own full-height rounded block (CLIP_TEXT) over a letterbox-dark box (BG_PANEL), the original subtitle_strip look, with visible gaps between cues. The per-box name label is dropped since it fought the blocks; the tooltip still carries the words. Drag, trim, selection border and eye toggle are unchanged.
✨ feat(engine): a library preview opens the row's own audio streamAhmet Kaan Gümüş · e6a2fc1
✨ feat(engine): a library preview opens the row's own audio stream PlaybackSession::open_with_audio_stream binds a chosen audio track instead of always the file's first, closing the corner-cut open_preview named. Library rows already carry their own stream index (one row per audio track on a remux), so the preview button now passes it straight through.
🐛 fix(app): the library preview starts playing the moment it opensAhmet Kaan Gümüş · dc4ce87
🐛 fix(app): the library preview starts playing the moment it opens open_preview built the session but never called play(), so the row's own button — whose tooltip promises "plays it" — showed a frozen first frame until a second click on the transport.
🐛 fix(app): the preview gets a pulse and export results get the frontAhmet Kaan Gümüş · e3392c8
🐛 fix(app): the preview gets a pulse and export results get the front The render tick only reached the timeline session, so a preview's clock never advanced and its picture froze on frame 0. Export outcome notices now push to the queue front instead of waiting behind progress lines.
🐛 fix(app): an export's own result cannot get buried in the queueAhmet Kaan Gümüş · 601dec3
🐛 fix(app): an export's own result cannot get buried in the queue push_notice queued strictly oldest-first, so an EXPORT DONE landing behind a PROXY READY and a caption notice sat three dismissals deep -- the one line a person started the export to read was the one they never saw. Export outcomes (done or failed) now jump to the front of the queue instead of the back.
🐛 fix(app): a library preview finally has a pulseAhmet Kaan Gümüş · 397bd83
🐛 fix(app): a library preview finally has a pulse render() ticked only the timeline's own session, never the preview one -- so a preview's audio-driven clock never advanced, pump() saw the same target every frame, and the picture sat frozen on frame 0 however long play ran. Ticks now go through active_session_mut(), the same preview-first routing pump/transport already use.
✨ 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): project settings live before the first importAhmet Kaan Gümüş · 79d189b
✨ feat(app): project settings live before the first import Resolution and frame rate no longer wait for a first file to exist.
✨ feat(app): resolution and rate are choosable before any file opensAhmet Kaan Gümüş · dc9a2c2
✨ feat(app): resolution and rate are choosable before any file opens A pick made on an empty player waits in pending_settings and lands on the next session the moment it is built, the same way a saved project's own numbers do. The inspector rows and the Resolution keystroke work with nothing open; a .edith's saved settings still win over a stale pre-import pick. Engine test proves a later import never touches an explicit resolution or rate.
🐛 fix(app): the keys search matches whole keys, not substringsAhmet Kaan Gümüş · 803b8e6
🐛 fix(app): the keys search matches whole keys, not substrings Searching f1 dragged in Fullscreen's F11 because chords matched by contains. Chords now match on whole keys (split on space and +), with the full-chord substring kept for needles that spell a combination.
✨ 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.
🚀 perf(engine): playback above 1x skips the pictures nobody will seeAhmet Kaan Gümüş · 490568c
🚀 perf(engine): playback above 1x skips the pictures nobody will see Clip speed threads into the decode worker; frames a faster playhead supersedes skip tone-map/convert/send while still bitstream-decoding for references. The late-drop escape valve always fires. Export path unchanged (always Speed::NORMAL). Measured: 4K SW decode at 1x p99 frame gap 1131ms->76ms, resyncs 5->2; OBS-class stays at 0 resyncs.
✨ 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(engine): the late-drop escape valve survives the speed skipAhmet Kaan Gümüş · 43ff2f2
🐛 fix(engine): the late-drop escape valve survives the speed skip
run() and run_hw() checked abort.late(due) && skipped < LATE_RUN as one
condition, so once LATE_RUN pictures in a row had been dropped for
lateness, the branch fell through to skip_for_speed -- and if that also
said skip (which it does on every other frame at >1x), the escape valve
that is supposed to guarantee one picture in LATE_RUN reaches the screen
never fired. A machine falling behind at speed could go fully silent.
Reordered so lateness is decided first and completely: still-within-run
skips for being late, past-run sends unconditionally (skipped=0), and
skip_for_speed only gets a say once lateness has already said "send".
Measured with a throwaway probe (deleted) against two real files, SW
decode (this box has no HW decode path), 15s per run, same machine
before/after:
a large 4K H.264 mp4 (the falling-behind, worst-case class the
escape valve exists for):
1.0x 219->322 shown, 5->2 resyncs, p99 1131.8ms->75.8ms
1.5x 173->165 shown, 7->7 resyncs, p99 1049.6ms->1113.4ms (noise)
2.0x 134->141 shown, 7->7 resyncs, p99 1055.7ms->970.6ms
a small screen-recording mp4 (keeps up, never hits abort.late): 0
resyncs before and after at all three speeds, numbers unchanged --
the reorder does not touch a file that was never late.
Net: better or a wash everywhere measured, no regression on the class
the bug actually bites.
Adds a deterministic unit test for skip_for_speed's alternation at 2x
and its never-skip guarantee on a span's last frame.✨ feat(app): a library row previews its file over the timelineAhmet Kaan Gümüş · 5231711
✨ feat(app): a library row previews its file over the timeline A row's ▶ button (and esc, or the banner's own Stop) opens the file in place of the picture without touching the edit's own playhead or undo stack: PlaybackSession::open already builds exactly this session, so the pump, transport, seek, step, volume and end-of-stream handling all route through a new active_session()/active_session_mut() that reads the preview while one is up and the timeline otherwise.
✨ feat(app): the export card leads with presetsAhmet Kaan Gümüş · e6a4f45
✨ feat(app): the export card leads with presets Primary pane: destination, Web / Small file / Master / Audio only / Custom presets (keys v/l/t/u, refusal-aware rows), and an Advanced fold (s) holding the full codec matrix and machine notes. Master writes HEVC/High so its re-editing promise stays true; default state lands on Web.
🎨 style(app): subtitle lanes go thin and library subtitles get real groupsAhmet Kaan Gümüş · 2efce0f
🎨 style(app): subtitle lanes go thin and library subtitles get real groups SUB_LANE_H=24 (WCAG hit-target floor) with per-kind lane math restores the thin caption look f85f4db lost; lane remove moves to right-click on the eye. Library subtitle group headers are always on when several sources exist, foldable per source, with tint and track count.
🚀 perf(app): silence levels warm up in the background at importAhmet Kaan Gümüş · 3fe48b0
🚀 perf(app): silence levels warm up in the background at import Whole-source silence scan starts from cache_media the moment a source is seen, landing under a sentinel key the silence card slices per clip. Card opens warm; cold opens fall back to the on-demand scan unchanged.
✨ feat(app): a library full of subtitles reads as its films againAhmet Kaan Gümüş · 791ea9f
✨ feat(app): a library full of subtitles reads as its films again Group headers in the Text tab used to vanish under sub_headers_fit's viewport gate, which was the one thing carrying "whose tracks these are" once a window got short -- so a short window left every track looking like it belonged to whichever film happened to be scrolled into view. The row list already scrolls past SUB_ROWS_H, so the gate was solving a problem the scrollbar had already solved: headers are now drawn whenever there is more than one source, full stop. Each header now also says how many tracks it holds and folds its rows shut on a click (Player::sub_folded, session-lifetime, never saved) -- a plain toggle and not the click-cycling pattern this codebase has already thrown out once. Its hit target moved up to HIT_MIN to earn the click. A standalone .srt was already its own named group (by its own filename) rather than a sourceless catch-all, so no "External" bucket was needed for it.
🐛 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.
⚡ perf(app): the silence scan starts at import, not at the cardAhmet Kaan Gümüş · 99d87d4
⚡ perf(app): the silence scan starts at import, not at the card Moves the whole-source RMS decode engine::silence::levels_with_progress was only ever asked for when the silence card opened (Player::start_silence_scan) into Player::cache_media, the same per-repaint "unseen sources" door the waveform, proxy and stream probes already run through. The scan is now landed under a whole-source sentinel key (full_scan_key, out_frame = u32::MAX) in the very silence_levels map the card reads, so scan_silences slices a clip's own [in, out) window out of it (slice_whole_levels) before ever falling back to the on-demand per-clip scan the card used to start unconditionally. silence_bg tracks scans in flight per (path, stream): its presence is the dedupe against a re-add of the same source, and remove_source / close_session cancel it via the same Progress::cancel flag start_silence_scan already used, so a source that leaves mid-decode does not write levels into a library that no longer holds it. Caveat: the background decode is still O(file length) -- ~1700x realtime per engine::silence::levels' own doc comment, so a several-hour file is still seconds of background work, just no longer on the card's critical path, and a card opened before that finishes still falls back to its own on-demand scan.
🐛 fix(app): the caption strip is thin again, and the header still fits its own doorsAhmet Kaan Gümüş · 0a5590f
🐛 fix(app): the caption strip is thin again, and the header still fits its own doors f85f4db drew subtitle lanes as full LANE_H media rows and kept only a 4px cue band -- SUB_LANE_H (== HIT_MIN, 24px) undoes that: a caption lane's row, its box and its bed all draw at it now, branched off `lane.kind` at the one place a row's height is set. A thinner header has no room for two stacked HIT_MIN targets, so the subtitle lane's remove control moves off its own row onto the right button of the show/hide eye -- the same door a caption's own box already answers to. 20px, the other harness candidate the task asked for, was never shippable: the eye button is the row's one surviving hit target and fills the whole row, so anything under HIT_MIN there is a WCAG 2.5.8 target shrunk to chase a pixel count. lanes_h_mixed/lanes_shown_mixed/rows_below_mixed generalise the panel's overflow math off each lane's own height instead of assuming every row is LANE_H, so a caption track in the stack does not throw off the "N more below" affordance. The uniform lanes_h/lanes_shown/rows_below and their pinned tests are untouched.
✨ 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.
♻️ refactor(app): the export card opens on a preset, not fifteen rowsAhmet Kaan Gümüş · 0d1aa32
♻️ refactor(app): the export card opens on a preset, not fifteen rows The card used to open flat: destination, seven format rows, container, five quality rows, sound, encoder, subtitles, two display switches and two machine notes, all on screen at once. Restructured around the decision flow instead -- a primary pane (destination, four named format+quality bundles plus Custom, the Export button) with everything else -- codec, container, quality, sound, encoder, subtitles, the layout switches, this machine -- behind one "Advanced" row, closed by default and driven by its own key (s) exactly as every other row is. No row was deleted, only relocated; every existing key and click still does what it did.
🐛 fix(engine): the proxy tests take turns over their one filmAhmet Kaan Gümüş · 31449fc
🐛 fix(engine): the proxy tests take turns over their one film
Both proxy tests proxy test_av.mp4, and a proxy job is one per film:
run in the same binary, whichever asked second was refused ("a stand-in
for this film is already being made") and a cancel in one deleted the
file the other was asserting about -- the rotating failure this binary
has shown all sweep, misread as starvation until the panic named it.
A shared mutex serializes the pair; everything else still runs wide.✅ test(engine): the long export waits ride out the binary's own loadAhmet Kaan Gümüş · c319ba2
✅ test(engine): the long export waits ride out the binary's own load A software-seat export here costs up to ~130 s alone and the binary runs its tests together; the 120/180/300 s completion budgets rotated through starvation failures, a different proxy test each run. 600/900 s now -- hang guards, the same law as the AV1 and subtitle budgets. The short waits stay: 5-60 s there is stop-latency semantics under test, not completion.