forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on 2e2ed698a69459f7ce472eabcbc01b00a0916d3fFiltered to crates/app/src/keymap.rsClear filter

2026-08-10

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