forge
Explore
Log in

Don't you dare go Hollow

Every spine verb answers a right-click on the thing it acts on

Browse files at this commit

cb302ca8ef23fa3081f06c265fd09f3a0a201d23Ahmet Kaan GümüşParent: b8a94e6
  • feat
    • every spine verb answers a right-click on the thing it acts on
Show full message
✨ feat(app): every spine verb answers a right-click on the thing it acts on

The rail is going (option C: nothing on screen), so the verbs it listed need
the door DESIGN §9 names -- the menu of the thing under the cursor. The clip
menu gains the cut machinery (the trim pair, their trim-to-playhead pair and
the loop-trim) on the subject cut a right-click already names; the ruler and
the empty bench open the timeline's own menu (walking the cuts at either
stride, the zoom trio, snap with its state in the row, the undo pair); a lane
head opens the track's (the three adds, and the one remove of its own kind,
never another lane's).

Destructive rows sit under a rule line wherever they are listed, which moved
Delete and Lift to the foot of the clip menu. Every row is still an ActionId
the keyboard reaches, so label and chord keep coming out of the registry, and
`every_verb_the_spine_carried_is_a_right_click_row` fails the moment one of
them loses its pointer door again.
crates/app/src/menus.rsmodified+67 -3
@@ -13,6 +13,15 @@ pub(crate) enum MenuOn {
1313 /// `(start, frames)` of the gap, in timeline frames -- what
1414 /// [`Player::close_gap`] ripples shut.
1515 Gap(u32, u32),
16+ /// The bench itself: the ruler, or the empty stretch below the last lane.
17+ /// Nothing under the pointer is a clip, so what the menu offers is what
18+ /// the *timeline* can be told -- walking its cuts, its zoom, its snap and
19+ /// the undo pair ([`BENCH_ITEMS`]). The lane field means nothing here and
20+ /// no row reads it.
21+ Bench,
22+ /// A lane head: the verbs of the track itself, on the lane the menu
23+ /// already names ([`oracle::lane_items`]).
24+ Head,
1625 }
1726
1827 /// An open clip menu: what it was opened on, where it hangs, and whether it
@@ -179,15 +188,22 @@ impl RowItem {
179188 /// action a stroke already reaches -- the menu is a second way *to* the actions
180189 /// and never a second version of them -- so both the label and the hint come
181190 /// out of the keymap registry and the two can never disagree.
182-pub(crate) const MENU_ITEMS: [ActionId; 16] = [
191+pub(crate) const MENU_ITEMS: [ActionId; 21] = [
183192 ActionId::Cut,
193+ // The cut machinery (DESIGN.md §6) on the very clip it is about: the
194+ // trims, their trim-to-playhead pair and the loop-trim were strokes the
195+ // spine rail listed and nothing else did, and the subject cut a
196+ // right-click names is exactly the one they act on.
197+ ActionId::TrimIn,
198+ ActionId::TrimOut,
199+ ActionId::TrimInToPlayhead,
200+ ActionId::TrimOutToPlayhead,
201+ ActionId::LoopTrim,
184202 // The clipboard pair, which had no door but a chord: copy takes the clip the
185203 // menu names, and paste is the timeline's rather than this clip's -- the
186204 // same kind of global item the mute below already is.
187205 ActionId::Copy,
188206 ActionId::Paste,
189- ActionId::Delete,
190- ActionId::Lift,
191207 ActionId::Regroup,
192208 ActionId::Detach,
193209 ActionId::Group,
@@ -205,8 +221,56 @@ pub(crate) const MENU_ITEMS: [ActionId; 16] = [
205221 ActionId::Transform,
206222 ActionId::Fit,
207223 ActionId::ToggleMute,
224+ // Last, under the rule line the render draws before the first of them
225+ // (DESIGN §9): the two that take the clip off the lane.
226+ ActionId::Delete,
227+ ActionId::Lift,
228+];
229+
230+/// What a right-click on the bench itself offers -- the ruler and the empty
231+/// stretch under the lanes. The verbs of the *timeline*: walking its cuts at
232+/// either stride (DESIGN §6's odometer), what it is looked at through, and the
233+/// undo pair, which is the one thing every editor expects on empty canvas.
234+/// Not a junk drawer (§9): nothing here acts on a clip, and everything here
235+/// acts on the thing the pointer is over.
236+pub(crate) const BENCH_ITEMS: [ActionId; 10] = [
237+ ActionId::WalkCutPrev,
238+ ActionId::WalkCutNext,
239+ ActionId::WalkCutPrev10,
240+ ActionId::WalkCutNext10,
241+ ActionId::ZoomOut,
242+ ActionId::ZoomIn,
243+ ActionId::ZoomFit,
244+ ActionId::ToggleSnap,
245+ ActionId::Undo,
246+ ActionId::Redo,
208247 ];
209248
249+/// The tracks a lane head's menu can add, in the order it lists them. Its
250+/// remove is the one of the clicked lane's own kind and comes from
251+/// [`oracle::lane_items`], which is what puts it under the rule line.
252+pub(crate) const HEAD_ADDS: [ActionId; 3] = [
253+ ActionId::AddVideoLane,
254+ ActionId::AddAudioLane,
255+ ActionId::AddSubtitleLane,
256+];
257+
258+/// Whether a menu row takes something away -- what DESIGN §9 puts below a rule
259+/// line, wherever the row is listed. One answer, so the clip menu and the lane
260+/// head's menu cannot come to disagree about which of their rows is the
261+/// dangerous one.
262+pub(crate) fn destructive(action: ActionId) -> bool {
263+ matches!(
264+ action,
265+ ActionId::Delete
266+ | ActionId::Lift
267+ | ActionId::RemoveVideoLane
268+ | ActionId::RemoveAudioLane
269+ | ActionId::RemoveSubtitleLane
270+ )
271+}
272+
273+
210274 /// One row of the actions card, in the order it lists them: a heading, then
211275 /// every action the registry files under it, then the strokes the modal cards
212276 /// answer themselves.
crates/app/src/oracle.rsmodified+20 -1
@@ -314,7 +314,7 @@ pub(crate) fn enable(action: ActionId, ctx: Ctx) -> Enable {
314314 ActionId::TrimInToPlayhead | ActionId::TrimOutToPlayhead => match ctx.clip {
315315 None => Enable::No("no subject cut"),
316316 Some((clip, _)) if ctx.playhead < clip.start || ctx.playhead > clip.end() => {
317- Enable::No("playhead is outside the subject cut")
317+ Enable::No("the playhead is off this cut")
318318 }
319319 _ => Enable::Yes,
320320 },
@@ -358,6 +358,25 @@ pub(crate) fn enable_lane(action: ActionId, lane: Lane, ctx: Ctx) -> Enable {
358358 }
359359 }
360360
361+/// The rows a lane head's menu draws: the three tracks a project can gain,
362+/// and -- under the rule line the render draws before it ([`destructive`]) --
363+/// the one remove that means anything on the lane that was right-clicked. A
364+/// video head never offers to take an audio track off: DESIGN §9's "verbs of
365+/// the thing under the cursor", read literally.
366+///
367+/// The removes take the *last* track of the kind (the engine's own rule,
368+/// which their labels say), so this lists at most one of them and never a
369+/// second row arguing about the same act.
370+pub(crate) fn lane_items(lane: Lane) -> Vec<ActionId> {
371+ let mut items = HEAD_ADDS.to_vec();
372+ items.push(match lane.kind {
373+ LaneKind::Video => ActionId::RemoveVideoLane,
374+ LaneKind::Audio => ActionId::RemoveAudioLane,
375+ LaneKind::Subtitle => ActionId::RemoveSubtitleLane,
376+ });
377+ items
378+}
379+
361380 /// The rows a clip menu draws, for the clip it was opened on: the registry
362381 /// filtered by the one availability oracle, and the *only* way that menu is
363382 /// built. An action that means nothing for what was right-clicked -- a grade on
crates/app/src/player/timeline_edit.rsmodified+43 -0
@@ -1212,6 +1212,49 @@ impl Player {
12121212 cx.notify();
12131213 }
12141214
1215+ /// Opens the bench's own menu: what a right-click on the ruler, or on the
1216+ /// empty stretch under the last lane, names -- the timeline rather than
1217+ /// anything on it ([`BENCH_ITEMS`]). No lane and no selection: the lane
1218+ /// field is `V1` because the struct has one, and no row reads it.
1219+ ///
1220+ /// Refused with no timeline open, like every menu here: a card that paints
1221+ /// nothing while `overlaid()` swallows the keys is an invisible modal
1222+ /// (`tests/cards.rs`'s FAULT 2 rule).
1223+ pub(crate) fn open_bench_menu(&mut self, at: Point<Pixels>, cx: &mut Context<Self>) {
1224+ if self.modal() || self.session.is_none() {
1225+ return;
1226+ }
1227+ self.context_menu = Some(ContextMenu {
1228+ lane: Lane::V1,
1229+ on: MenuOn::Bench,
1230+ at,
1231+ details: false,
1232+ });
1233+ cx.notify();
1234+ }
1235+
1236+ /// Opens a lane head's menu on the track that was right-clicked: the tracks
1237+ /// a project can gain, and the one remove that applies to this lane's kind
1238+ /// ([`oracle::lane_items`]). Nothing is selected -- a head owns no clip --
1239+ /// which is [`Player::open_gap_menu`]'s rule on the other empty target.
1240+ pub(crate) fn open_head_menu(
1241+ &mut self,
1242+ lane: Lane,
1243+ at: Point<Pixels>,
1244+ cx: &mut Context<Self>,
1245+ ) {
1246+ if self.modal() || self.session.is_none() {
1247+ return;
1248+ }
1249+ self.context_menu = Some(ContextMenu {
1250+ lane,
1251+ on: MenuOn::Head,
1252+ at,
1253+ details: false,
1254+ });
1255+ cx.notify();
1256+ }
1257+
12151258 /// Closes the gap `(start, frames)` -- Premiere's "Close Gap", scoped to
12161259 /// `lane` and, when the gap borders a take, to the take's other lane too
12171260 /// ([`engine::PlaybackSession::gap_take_scope`]): a lane not sharing the
crates/app/src/tests/editing.rsmodified+78 -2
@@ -335,10 +335,12 @@ fn a_caption_is_deleted_by_the_same_row_and_stroke_every_box_is() {
335335 menu_items(cap),
336336 vec![
337337 ActionId::Paste,
338- ActionId::Delete,
339338 ActionId::Detach,
340339 ActionId::Group,
341340 ActionId::ToggleMute,
341+ // Below the rule line the render draws before it, like every
342+ // other row that takes something away (DESIGN §9).
343+ ActionId::Delete,
342344 ],
343345 "the caption's menu is its removal, its group rows, and the global ones",
344346 );
@@ -1964,7 +1966,7 @@ fn trim_to_playhead_needs_a_subject_cut_with_the_playhead_on_it() {
19641966 };
19651967 assert_eq!(
19661968 enable(ActionId::TrimOutToPlayhead, off),
1967- Enable::No("playhead is outside the subject cut")
1969+ Enable::No("the playhead is off this cut")
19681970 );
19691971 let on = Ctx {
19701972 clip: Some((clip, Lane::V1)),
@@ -2720,3 +2722,77 @@ fn escape_with_nothing_open_empties_the_selection() {
27202722 "bare escape must still route to Deselect for that arm to ever run"
27212723 );
27222724 }
2725+
2726+/// The gate that keeps "option C" honest. The spine rail is gone -- nothing on
2727+/// screen lists these verbs any more -- so every verb it used to carry has to
2728+/// be a row on the menu of the thing it acts on, or it is a verb only a person
2729+/// who already knows its chord can reach. Listed by action id rather than by
2730+/// label, so a reworded row cannot make this pass while the door is gone.
2731+///
2732+/// And the rule line's own half of DESIGN §9: the destructive rows come last
2733+/// in every list here, which is what lets the render draw one seam before the
2734+/// first of them instead of scattering seams through the plate.
2735+#[test]
2736+fn every_verb_the_spine_carried_is_a_right_click_row() {
2737+ use keymap::ActionId;
2738+ // The heads a project can have, so the removes are checked on the lane
2739+ // each of them belongs to.
2740+ let heads: Vec<ActionId> = [Lane::V1, Lane::A1, Lane::S1]
2741+ .into_iter()
2742+ .flat_map(lane_items)
2743+ .collect();
2744+ for (action, menu) in [
2745+ // EDIT
2746+ (ActionId::Cut, "clip"),
2747+ (ActionId::Lift, "clip"),
2748+ (ActionId::Undo, "bench"),
2749+ (ActionId::Redo, "bench"),
2750+ // CUT
2751+ (ActionId::WalkCutPrev, "bench"),
2752+ (ActionId::WalkCutNext, "bench"),
2753+ (ActionId::WalkCutPrev10, "bench"),
2754+ (ActionId::WalkCutNext10, "bench"),
2755+ (ActionId::TrimIn, "clip"),
2756+ (ActionId::TrimOut, "clip"),
2757+ (ActionId::TrimInToPlayhead, "clip"),
2758+ (ActionId::TrimOutToPlayhead, "clip"),
2759+ (ActionId::LoopTrim, "clip"),
2760+ // VIEW
2761+ (ActionId::ZoomOut, "bench"),
2762+ (ActionId::ZoomIn, "bench"),
2763+ (ActionId::ZoomFit, "bench"),
2764+ (ActionId::ToggleSnap, "bench"),
2765+ // TRACK
2766+ (ActionId::AddVideoLane, "lane head"),
2767+ (ActionId::AddAudioLane, "lane head"),
2768+ (ActionId::AddSubtitleLane, "lane head"),
2769+ (ActionId::RemoveVideoLane, "lane head"),
2770+ (ActionId::RemoveAudioLane, "lane head"),
2771+ (ActionId::RemoveSubtitleLane, "lane head"),
2772+ ] {
2773+ assert!(
2774+ MENU_ITEMS.contains(&action)
2775+ || BENCH_ITEMS.contains(&action)
2776+ || heads.contains(&action),
2777+ "{action:?} reaches no menu: the spine listed it and the {menu} menu does not"
2778+ );
2779+ }
2780+ // Every menu is a list of actions the keyboard already reaches, so every
2781+ // row can wear its chord (DESIGN §4): a row built here out of an id the
2782+ // registry never files would print an empty column.
2783+ for action in MENU_ITEMS.into_iter().chain(BENCH_ITEMS).chain(heads.iter().copied()) {
2784+ assert!(
2785+ ActionId::ALL.contains(&action),
2786+ "{action:?} is a menu row and not a registered action"
2787+ );
2788+ }
2789+ for list in [MENU_ITEMS.to_vec(), BENCH_ITEMS.to_vec(), lane_items(Lane::A1)] {
2790+ let first = list.iter().position(|&a| destructive(a));
2791+ if let Some(first) = first {
2792+ assert!(
2793+ list[first..].iter().all(|&a| destructive(a)),
2794+ "a safe row sits below the rule line: {list:?}"
2795+ );
2796+ }
2797+ }
2798+}
crates/app/src/tests/mod.rsmodified+3 -3
@@ -16,17 +16,17 @@ use super::{
1616 EQ_Q_STEP, EQ_SPECTRUM_DB, EQ_TICKS, EQ_W_MAX, ESCAPE, EXPORT_DONE, Enable,
1717 BPS_COARSE, BPS_FINE, BPS_MAX, BPS_MIN, EXPORT_MOMENT_H, EncoderSeat, FORMATS, Format, HEADER_H, HIST_BINS, HIST_H, HIST_SAMPLES, HIT_MIN,
1818 KEYS_ROW_H, KEYS_W, KeyRow, LABEL_H, LANE_H, LANES_MAX, LATE_RESYNC, LIBRARY_MAX_W,
19- LIBRARY_MIN_W, Lane, MB_FLOOR, MENU_ITEMS, MENU_PAD,
19+ BENCH_ITEMS, LIBRARY_MIN_W, Lane, MB_FLOOR, MENU_ITEMS, MENU_PAD,
2020 MENU_ROW_H, MENU_W, NO_FILE, NOTICES_MAX, NumberEdit, OVERLAID, PANEL_H, RESYNC_GAP,
2121 ROW_ITEMS, RULER_HIT_H, RowCtx, RowItem, SCROLL_NOTCH_SHARE, SILENCE_ROWS, SOURCE_TINTS,
2222 SPEED_PRESETS, SPEED_STEP, STATUS_ERROR, STATUS_SUCCESS, STATUS_WARNING, SUB_PLAN_CHARS,
2323 Source, Speed, StreamInfo, TIMELINE_SHARE, Transport, VOLUME_W, Volume, WAVE_BPS, WAVE_COL,
2424 WAVE_COLS_MAX, Wave, ZOOM_MIN_FRAMES, active_lane, auto_bps, band_label, bitrate_detail,
25- clipboard_after_remove, color_snap, containers, enable, enable_lane, envelope, eq_card_w,
25+ clipboard_after_remove, color_snap, containers, destructive, enable, enable_lane, envelope, eq_card_w,
2626 eq_freq, eq_freq_label, eq_graph_h, eq_spectrum, eq_x, eq_y, estimated_bytes, export_path,
2727 export_settings, format_refusal, fps_choices, fps_label, frac_along, frac_down,
2828 frame_at, frame_rate_ladder, histogram, inserted_band, is_project, keymap, keys_rows, lanes_h,
29- marked, menu_at, menu_items, menu_rows_h, next_container, normalise, nothing_to_play,
29+ lane_items, marked, menu_at, menu_items, menu_rows_h, next_container, normalise, nothing_to_play,
3030 notice_tone, panel_h, parse_budget, project_path, range_word, proxies_to_start, push_notice, px_below, retarget,
3131 row_enable, row_items, scrub_due, secs_label, should_resync, silence_rate, size_label,
3232 rate_label, snap_cue, snap_marks, snapped, source_tint, span_partner, speed_at, sub_pick_after_removal,
crates/app/src/ui/bench_stance.rsmodified+46 -2
@@ -908,6 +908,15 @@ fn lane_row(
908908 cx.new(|_| Tip(head_ghost.clone()))
909909 })
910910 .tooltip(crate::ui::widgets::tip_hover("Reorder lane", "drag", None))
911+ // The head's own verbs, never the bed's: a right-click here
912+ // names the *track* (DESIGN §9), so it opens the lane menu and
913+ // not the clip menu the bed beside it opens.
914+ .on_mouse_down(
915+ MouseButton::Right,
916+ cx.listener(move |this, event: &MouseDownEvent, _, cx| {
917+ this.open_head_menu(lane, event.position, cx);
918+ }),
919+ )
911920 .children(hitmap::dynamic(
912921 move || {
913922 (
@@ -1120,12 +1129,26 @@ fn lane_row(
11201129 .on_mouse_down(
11211130 MouseButton::Right,
11221131 cx.listener(move |this, event: &MouseDownEvent, _, cx| {
1132+ // A clip's (or a caption's) own handler has already run
1133+ // by the time this bubbles up and has set its menu: the
1134+ // scrim swallows every press while a menu is open, so a
1135+ // menu standing here can only be the one this very
1136+ // press just opened, and the bed must not replace it.
1137+ if this.context_menu.is_some() {
1138+ return;
1139+ }
11231140 let Some(session) = this.session.as_ref() else {
11241141 return;
11251142 };
11261143 let frame = this.frame_under(event.position.x);
1127- if let Some((start, frames)) = session.gap_at(lane, frame) {
1128- this.open_gap_menu(lane, start, frames, event.position, cx);
1144+ match session.gap_at(lane, frame) {
1145+ Some((start, frames)) => {
1146+ this.open_gap_menu(lane, start, frames, event.position, cx);
1147+ }
1148+ // Empty bed past the end of the lane's contents: no
1149+ // hole to close there, so what the pointer is over
1150+ // is the bench itself (DESIGN §9).
1151+ None => this.open_bench_menu(event.position, cx),
11291152 }
11301153 }),
11311154 )
@@ -1393,6 +1416,15 @@ pub(crate) fn render(
13931416 this.scrub_to(event.position.x, true, cx);
13941417 }),
13951418 )
1419+ // The bench's own menu, on the strip that *is* the timeline:
1420+ // walking the cuts, the zoom, the snap and the undo pair, none
1421+ // of which is about a clip (DESIGN §9).
1422+ .on_mouse_down(
1423+ MouseButton::Right,
1424+ cx.listener(|this, event: &MouseDownEvent, _, cx| {
1425+ this.open_bench_menu(event.position, cx);
1426+ }),
1427+ )
13961428 .children(ticks.into_iter().map(|(x, label)| {
13971429 div().absolute().top_0().left(px(x)).child(
13981430 div()
@@ -1480,6 +1512,18 @@ pub(crate) fn render(
14801512 .child(
14811513 div()
14821514 .id("bench-lanes")
1515+ // Empty room below the last lane is still the bench: the same
1516+ // menu the ruler opens, and the same guard the bed carries --
1517+ // a menu standing here belongs to the press that opened it.
1518+ .on_mouse_down(
1519+ MouseButton::Right,
1520+ cx.listener(|this, event: &MouseDownEvent, _, cx| {
1521+ if this.context_menu.is_some() {
1522+ return;
1523+ }
1524+ this.open_bench_menu(event.position, cx);
1525+ }),
1526+ )
14831527 .flex_1()
14841528 .min_h(px(0.))
14851529 .overflow_y_scroll()
crates/app/src/ui/overlays.rsmodified+42 -9
@@ -131,7 +131,7 @@ impl Player {
131131 // would be a right-click that opens nothing.
132132 let idx = match menu.on {
133133 MenuOn::Clip(idx) => Some(idx),
134- MenuOn::Gap(..) => None,
134+ MenuOn::Gap(..) | MenuOn::Bench | MenuOn::Head => None,
135135 };
136136 let clip = idx.and_then(|idx| session.lane_clips(menu.lane).get(idx).copied());
137137 let source = clip.and_then(|clip| session.sources().get(clip.source).cloned());
@@ -173,6 +173,8 @@ impl Player {
173173 })
174174 };
175175 let mut rows: Vec<AnyElement> = Vec::new();
176+ // Whether the rule line before the destructive rows has been drawn.
177+ let mut ruled = false;
176178 if let (true, Some((clip, source))) = (menu.details, clip.zip(source.clone())) {
177179 // Read-only, so no ids and no hover: this side is a card, not a
178180 // list of things to click. Each value is one truncated line, which
@@ -259,9 +261,34 @@ impl Player {
259261 // `menu_items`, so there is no second answer to keep in step. The
260262 // state refusals below stay, dimmed and saying why -- the next
261263 // click of the playhead lights them.
262- let idx = idx.expect("MenuOn::Gap handled above");
263- let ctx = self.ctx(Some((menu.lane, idx)));
264- for action in menu_items(ctx) {
264+ // The clip's own state where a clip was clicked; the editor's
265+ // otherwise -- the bench and the lane head both ask about the
266+ // selection ([`Player::ctx`] falls back to it), which is exactly
267+ // what the cut machinery's rows act on.
268+ let ctx = self.ctx(idx.map(|idx| (menu.lane, idx)));
269+ // Three lists, one render: what the thing under the pointer can be
270+ // told (DESIGN §9). Nothing here is a second version of an action
271+ // -- every row is an [`ActionId`] the keyboard already reaches, so
272+ // the label and the chord still come out of the registry.
273+ let actions = match menu.on {
274+ MenuOn::Bench => BENCH_ITEMS.to_vec(),
275+ MenuOn::Head => lane_items(menu.lane),
276+ _ => menu_items(ctx),
277+ };
278+ for action in actions {
279+ // DESIGN §9's rule line: the verbs that take something away sit
280+ // under a seam, wherever they are listed. Drawn once, before
281+ // the first of them, and never as the plate's own top edge.
282+ if destructive(action) && !rows.is_empty() && !ruled {
283+ ruled = true;
284+ rows.push(
285+ div()
286+ .my(px(3.))
287+ .h(px(1.))
288+ .bg(rgba(DARK_SEAM()))
289+ .into_any_element(),
290+ );
291+ }
265292 // The registry's own answer, the same one the actions card
266293 // dims a row with -- and a row that takes no click says *why*
267294 // rather than printing a stroke that would do nothing.
@@ -286,10 +313,16 @@ impl Player {
286313 .or_else(|| full.split_once(" — ").map(|(head, _)| head))
287314 .or_else(|| full.split_once(": ").map(|(head, _)| head))
288315 .unwrap_or(full);
289- let label = if matches!(action, ActionId::ToggleMute | ActionId::Paste) {
290- format!("{verb} (global)")
291- } else {
292- verb.to_string()
316+ let label = match action {
317+ ActionId::ToggleMute | ActionId::Paste => format!("{verb} (global)"),
318+ // A switch says which way it is set: a row reading "Snap on
319+ // / off" beside a chord tells nobody whether snapping is on
320+ // right now, which is the one thing the spine's badge did
321+ // say before it went.
322+ ActionId::ToggleSnap => {
323+ format!("Snap — {}", if self.snap { "on" } else { "off" })
324+ }
325+ _ => verb.to_string(),
293326 };
294327 let say: SharedString = full.to_string().into();
295328 rows.push(
@@ -336,7 +369,7 @@ impl Player {
336369 // the list of them on this clip rather than
337370 // the next one stepped to behind the click.
338371 // The stroke still steps -- same door.
339- if action == ActionId::Fit {
372+ if let (ActionId::Fit, Some(idx)) = (action, idx) {
340373 this.open_picker(
341374 Pick::Fit(menu.lane, idx),
342375 event.position(),