PhotoCraft: An open-source, photo editor written by scratch in pure Rust
Type: triple-click selects a line, quadruple a paragraph, five clicks all text (#3493) (#3496)
David Mannb26256faee29
diff --git a/crates/ui-egui/src/canvas.rs b/crates/ui-egui/src/canvas.rsindex 93f0f3a8e..85af1009d 100644--- a/crates/ui-egui/src/canvas.rs+++ b/crates/ui-egui/src/canvas.rs@@ -3176,8 +3176,24 @@ pub fn canvas_view(app: &mut PhotocraftApp, ui: &mut egui::Ui, idx: usize, rect:if tool == Tool::Crop && response.double_clicked() && response.interact_pointer_pos().is_some_and(|p| crate::crop_ui::commits_at(app, xf.to_doc(p))) {commit_crop(app);}- if tool.is_type() && response.double_clicked() && !crate::type_transform::visible(app, crate::workspace_ui::sticky_mods(app, mods)) {- crate::type_tool::select_word(app);+ // Type: 2 clicks select a word, 3 the line, 4 the paragraph, 5 all text (Photoshop).+ if tool.is_type()+ && response.clicked()+ && let Some(p) = response.interact_pointer_pos()+ {+ if crate::type_transform::visible(app, crate::workspace_ui::sticky_mods(app, mods)) {+ app.type_clicks = None;+ } else {+ let n = if response.triple_clicked() {+ 3+ } else if response.double_clicked() {+ 2+ } else {+ 1+ };+ let d = xf.to_doc(p);+ crate::type_tool::multi_click(app, n, d[0], d[1]);+ }}}if crop_camera && let (Some((center, rotation)), Some(now)) = (camera, app.ui.views.get(idx)) {diff --git a/crates/ui-egui/src/lib.rs b/crates/ui-egui/src/lib.rsindex 6ae23a6e4..c5ca87c20 100644--- a/crates/ui-egui/src/lib.rs+++ b/crates/ui-egui/src/lib.rs@@ -630,6 +630,8 @@ pub struct PhotocraftApp {pub(crate) pcrop: perspective_crop_ui::PerspectiveCrop,/// Type tool layout cache: ((doc, revision, layer), layout).pub(crate) type_layout: Option<((u64, u64, u64), std::sync::Arc<photocraft_text::TextLayout>)>,+ /// Type tool: (layer, clicks in the current run) for word / line / paragraph / all selection.+ pub(crate) type_clicks: Option<(u64, u32)>,pub(crate) type_transform_preview: Option<type_transform::Preview>,/// A font hovered in the Type tool's font picker, shown live (`type_font_preview`).pub(crate) type_font_preview: Option<type_font_preview::TypeFontPreview>,@@ -741,6 +743,7 @@ impl PhotocraftApp {channel_thumbs: None,channel_views: HashMap::new(),type_layout: None,+ type_clicks: None,type_transform_preview: None,type_font_preview: None,guide_drag: None,diff --git a/crates/ui-egui/src/type_tool.rs b/crates/ui-egui/src/type_tool.rsindex 17a28bae6..6aa13f66b 100644--- a/crates/ui-egui/src/type_tool.rs+++ b/crates/ui-egui/src/type_tool.rs@@ -497,18 +497,91 @@ fn word_boundary(text: &str, from: usize, forward: bool) -> usize {photocraft_text::word_boundary(text, from, forward)}-/// Double-click: select the word under the caret.-pub fn select_word(app: &mut PhotocraftApp) {- let Some(ed) = app.ui.text_edit.clone() else { return };- let Some(text) = current_text(app, LayerId(ed.layer)) else { return };- let chars: Vec<char> = text.chars().collect();- let (mut a, mut b) = (ed.caret.min(chars.len()), ed.caret.min(chars.len()));- while a > 0 && chars[a - 1].is_alphanumeric() {- a -= 1;+/// Most clicks in a run that select more: 2 a word, 3 a line, 4 a paragraph, 5 all text. The+/// next quick click starts over with a caret.+const MAX_CLICKS: u32 = 5;++/// Count of this click in a run of clicks at one spot. `egui_count` is egui's own count for the+/// click (1 single, 2 double, 3 triple; it never goes past 3), which already applies the+/// double-click delay and distance; `prev` is our count for the previous click (0: none). A slow+/// or distant click (egui says 1) starts a new run; after five clicks the run starts over.+pub(crate) fn next_click_count(prev: u32, egui_count: u32) -> u32 {+ match (egui_count, prev) {+ (0 | 1, _) => 1,+ (n, 0) => n.min(MAX_CLICKS),+ (_, p) => p % MAX_CLICKS + 1,+ }+}++/// The selection (anchor, caret) a run of `count` clicks makes at character `caret`: 1 a caret,+/// 2 the word under it, 3 its visual line as laid out (a column in vertical type), 4 its+/// paragraph up to the hard return, 5 all text. `line` is the laid-out line the click hit; it+/// decides at a soft wrap, where one caret offset ends a line and starts the next. Without a+/// layout a line is its paragraph. Offsets past the text are clamped, so an empty layer or a+/// stale caret never panics.+pub(crate) fn click_selection(layout: Option<&TextLayout>, text: &str, caret: usize, line: Option<usize>, count: u32) -> (usize, usize) {+ let n = text.chars().count();+ let c = caret.min(n);+ match count {+ 2 => {+ let chars: Vec<char> = text.chars().collect();+ let word = |i: usize| chars.get(i).is_some_and(|ch| ch.is_alphanumeric());+ let (mut a, mut b) = (c, c);+ while a > 0 && word(a - 1) {+ a -= 1;+ }+ while word(b) {+ b += 1;+ }+ (a, b)+ }+ 3 => {+ let Some(l) = layout else { return paragraph_of(text, c) };+ let ln = line.and_then(|i| l.lines.get(i)).or_else(|| l.lines.get(photocraft_text::line_index(l, byte_of(text, c))));+ ln.map_or((c, c), |ln| (photocraft_text::char_index(text, ln.range.start), photocraft_text::char_index(text, ln.range.end)))+ }+ 4 => paragraph_of(text, c),+ 5 => (0, n),+ _ => (c, c),}- while b < chars.len() && chars[b].is_alphanumeric() {- b += 1;+}++/// Characters of the paragraph holding character `c`, without its hard return.+fn paragraph_of(text: &str, c: usize) -> (usize, usize) {+ let b = byte_of(text, c);+ let paras = photocraft_text::layout::split_paragraphs(text);+ let Some(r) = paras.iter().find(|r| b >= r.start && b < r.end).or_else(|| paras.last()) else { return (c, c) };+ let body = text.get(r.clone()).unwrap_or("").trim_end_matches(['\r', '\n']);+ let start = photocraft_text::char_index(text, r.start);+ (start, start + body.chars().count())+}++/// A click while editing type at document point (`x`, `y`), after it placed the caret there.+/// `egui_count` is egui's count for the click (see [`next_click_count`]). Like Photoshop, two+/// clicks select a word, three the line, four the paragraph and five all text.+pub fn multi_click(app: &mut PhotocraftApp, egui_count: u32, x: f64, y: f64) {+ let Some(ed) = app.ui.text_edit.clone() else {+ app.type_clicks = None;+ return;+ };+ let prev = app.type_clicks.filter(|(layer, _)| *layer == ed.layer).map_or(0, |(_, n)| n);+ let count = next_click_count(prev, egui_count);+ app.type_clicks = Some((ed.layer, count));+ if count < 2 {+ return;}+ let id = LayerId(ed.layer);+ let Some(text) = current_text(app, id) else { return };+ let laid = layout(app, id);+ let (caret, line) = match &laid {+ Some((l, aff, t)) if *t == text && x.is_finite() && y.is_finite() => {+ let (tx, ty) = to_text(aff, x, y);+ let (ci, line) = photocraft_text::hit_char(l, t, tx, ty);+ (ci, Some(line))+ }+ _ => (ed.caret, None),+ };+ let (a, b) = click_selection(laid.as_ref().map(|(l, _, _)| l.as_ref()), &text, caret, line, count);if let Some(e) = app.ui.text_edit.as_mut() {(e.anchor, e.caret) = (a, b);}diff --git a/crates/ui-egui/src/type_tool_tests.rs b/crates/ui-egui/src/type_tool_tests.rsindex 22edbbe15..46d763e5b 100644--- a/crates/ui-egui/src/type_tool_tests.rs+++ b/crates/ui-egui/src/type_tool_tests.rs@@ -1662,6 +1662,191 @@ fn type_mask_escape_leaves_the_selection_unchanged() {assert_eq!(h.state().session.active().unwrap().doc.layers.len(), layers);}+/// A harness with short frames, so a run of clicks stays inside egui's double-click delay.+fn quick_harness(app: PhotocraftApp) -> Harness<'static, PhotocraftApp> {+ let mut h = Harness::builder().with_size(vec2(1200.0, 800.0)).with_step_dt(0.02).build_ui_state(+ |ui, app: &mut PhotocraftApp| {+ let ctx = ui.ctx().clone();+ if !ctx.fonts(|f| f.families().contains(&egui::FontFamily::Name("medium".into()))) {+ return;+ }+ crate::shortcuts::handle(app, &ctx);+ egui::CentralPanel::default().show(ui, |ui| crate::canvas::document_area(app, ui));+ },+ app,+ );+ PhotocraftApp::setup_context(&h.ctx, crate::theme::ThemeKind::ALL[0]);+ h.run_steps(4);+ h+}++/// `n` quick clicks at `p`, then a pause long enough that the next click starts a new run.+fn clicks(h: &mut Harness<'static, PhotocraftApp>, p: Pos2, n: usize) -> (usize, usize) {+ h.hover_at(p);+ h.run_steps(1);+ for _ in 0..n {+ press(h, p, true);+ press(h, p, false);+ }+ let sel = selection(h);+ h.run_steps(40);+ sel+}++/// Centre the view on layer `id` at 50 % zoom.+fn centre_on(h: &mut Harness<'static, PhotocraftApp>, id: LayerId) {+ let (l, aff, _) = layout(h.state_mut(), id).unwrap();+ let b = l.bounds().unwrap();+ let m = aff.apply(Point::new(f64::from(b[0] + b[2]) / 2.0, f64::from(b[1] + b[3]) / 2.0));+ let v = &mut h.state_mut().ui.views[0];+ (v.zoom, v.center, v.fit_pending) = (0.5, [m.x as f32, m.y as f32], false);+ h.run_steps(2);+}++/// Laid-out line (character range) holding character `i`.+fn line_chars(h: &mut Harness<'static, PhotocraftApp>, id: LayerId, i: usize) -> (usize, usize) {+ let (l, _, text) = layout(h.state_mut(), id).unwrap();+ let b = text.char_indices().nth(i).unwrap().0;+ let c = l.clusters.iter().find(|c| c.range.start == b).unwrap();+ let ln = &l.lines[c.line];+ (photocraft_text::char_index(&text, ln.range.start), photocraft_text::char_index(&text, ln.range.end))+}++/// #3493: like Photoshop, two clicks select the word, three the line, four the paragraph (up+/// to the hard return) and five all text; the sixth starts over with a caret.+#[test]+fn multi_click_selects_word_line_paragraph_and_all_in_point_text() {+ let mut app = new_app();+ app.ui.extras.snap = false;+ let s = "alpha beta\ngamma delta\nepsilon";+ let id = LayerId(app.run("type.create", json!({"text": s, "size": 60, "x": 300, "y": 200})).unwrap()["layer"].as_u64().unwrap());+ let mut h = quick_harness(app);+ centre_on(&mut h, id);+ // Glyph 19 is the 'l' of "delta" (characters 17..22), on the line "gamma delta" (11..22).+ let p = glyph(&mut h, id, 19, 0.2);+ assert_eq!(clicks(&mut h, p, 1), (19, 19), "one click: caret");+ assert_eq!(clicks(&mut h, p, 2), (17, 22), "two clicks: word");+ assert_eq!(clicks(&mut h, p, 3), (11, 22), "three clicks: line");+ assert_eq!(clicks(&mut h, p, 4), (11, 22), "four clicks: paragraph without its return");+ assert_eq!(clicks(&mut h, p, 5), (0, s.chars().count()), "five clicks: all text");+ assert_eq!(clicks(&mut h, p, 6), (19, 19), "a sixth click starts over with a caret");+ assert_eq!(clicks(&mut h, p, 7), (17, 22), "and a seventh selects the word again");+ // After a pause the run restarts: a single click places the caret.+ assert_eq!(clicks(&mut h, p, 1), (19, 19), "a click after a pause is a caret");+ // Paste replaces the selected word; ⌘A then selects all of the edited text.+ assert_eq!(clicks(&mut h, p, 2), (17, 22));+ h.event(egui::Event::Paste("omega\nzeta".into()));+ h.run_steps(2);+ let edited = "alpha beta\ngamma omega\nzeta\nepsilon";+ assert_eq!(text(h.state(), id).text, edited, "paste replaces the selection");+ assert_eq!(selection(&h), (27, 27), "caret after the pasted text");+ h.key_press_modifiers(Modifiers::COMMAND, egui::Key::A);+ h.run_steps(2);+ assert_eq!(selection(&h), (0, edited.chars().count()), "⌘A selects all text");+}++/// Paragraph text: three clicks select only the visual (soft-wrapped) line, four the whole+/// paragraph; vertical type selects the column the same way.+#[test]+fn multi_click_separates_wrapped_lines_from_paragraphs() {+ let mut app = new_app();+ app.ui.extras.snap = false;+ let text = "one two three four five six\nseven";+ let id = LayerId(app.run("type.create", json!({"text": text, "size": 40, "box": [200, 150, 260, 600]})).unwrap()["layer"].as_u64().unwrap());+ let mut h = quick_harness(app);+ centre_on(&mut h, id);+ // Glyph 9 is inside "three"; the first paragraph wraps, so its line is only part of it.+ let line = line_chars(&mut h, id, 9);+ assert!(line.0 > 0 || line.1 < 27, "the paragraph wraps: line {line:?}");+ let p = glyph(&mut h, id, 9, 0.5);+ assert_eq!(clicks(&mut h, p, 2), (8, 13), "two clicks: the word \"three\"");+ assert_eq!(clicks(&mut h, p, 3), line, "three clicks: the visual line");+ assert_eq!(clicks(&mut h, p, 4), (0, 27), "four clicks: the wrapped paragraph");+ let p = glyph(&mut h, id, 30, 0.5);+ assert_eq!(clicks(&mut h, p, 4), (28, 33), "four clicks in the last paragraph");++ let mut app = new_app();+ app.ui.extras.snap = false;+ let id = LayerId(app.run("type.create", json!({"text": "HOHOHO\nHOHO", "size": 60, "x": 800, "y": 120})).unwrap()["layer"].as_u64().unwrap());+ app.run("type.orientation.vertical", json!({"layer": id.0})).unwrap();+ let mut h = quick_harness(app);+ centre_on(&mut h, id);+ let p = vglyph(&mut h, id, 9, 0.5);+ assert_eq!(clicks(&mut h, p, 3), (7, 11), "three clicks in vertical type: the column");+ assert_eq!(clicks(&mut h, p, 5), (0, 11), "five clicks: all text");+}++#[test]+fn click_counts_cycle_and_restart() {+ use super::next_click_count as next;+ // egui counts 1, 2, 3, 3, 3, ... for a quick run; ours goes on to 5 and then starts over.+ let mut n = 0;+ let mut seen = vec![];+ for egui in [1, 2, 3, 3, 3, 3, 3] {+ n = next(n, egui);+ seen.push(n);+ }+ assert_eq!(seen, [1, 2, 3, 4, 5, 1, 2]);+ // A slow or distant click (egui: 1) restarts at a caret, whatever came before.+ assert_eq!(next(4, 1), 1);+ assert_eq!(next(4, 0), 1);+ // No previous count (another layer, a fresh session): egui's count stands, capped.+ assert_eq!(next(0, 2), 2);+ assert_eq!(next(0, 3), 3);+ assert_eq!(next(0, u32::MAX), 5);+ assert_eq!(next(u32::MAX, 2), 1, "a corrupt count wraps without overflow");+}++#[test]+fn click_selection_without_layout_and_on_hostile_input() {+ use super::click_selection as sel;+ let text = "ab cd\nef gh\r\nij";+ // Without a layout a line falls back to its paragraph.+ assert_eq!(sel(None, text, 7, None, 2), (6, 8));+ assert_eq!(sel(None, text, 7, None, 3), (6, 11));+ assert_eq!(sel(None, text, 7, None, 4), (6, 11), "the CR LF is not selected");+ assert_eq!(sel(None, text, 13, None, 4), (13, 15));+ assert_eq!(sel(None, text, 7, None, 5), (0, 15));+ // Empty layer, caret past the end, absurd counts and line indices: no panic, clamped.+ for count in [0, 1, 2, 3, 4, 5, 6, u32::MAX] {+ assert_eq!(sel(None, "", 99, Some(usize::MAX), count), (0, 0), "empty text, count {count}");+ let (a, b) = sel(None, text, usize::MAX, Some(usize::MAX), count);+ assert!(a <= b && b <= 15, "caret past the end, count {count}: {a}..{b}");+ let empty = photocraft_text::TextLayout::default();+ let (a, b) = sel(Some(&empty), text, usize::MAX, Some(usize::MAX), count);+ assert!(a <= b && b <= 15, "empty layout, count {count}: {a}..{b}");+ }+ // A trailing return ends in an empty paragraph: four clicks there select nothing.+ assert_eq!(sel(None, "ab\n", 3, None, 4), (3, 3));+ // Multi-byte text keeps character offsets.+ assert_eq!(sel(None, "é ü\nñø", 4, None, 2), (4, 6));+ assert_eq!(sel(None, "é ü\nñø", 1, None, 4), (0, 3));+}++/// Clicks with no edit session, or one on a layer that is gone, never panic or select.+#[test]+fn multi_click_without_a_session_does_nothing() {+ let mut app = new_app();+ super::multi_click(&mut app, 3, 10.0, 10.0);+ assert!(app.ui.text_edit.is_none() && app.type_clicks.is_none());+ app.ui.text_edit = Some(crate::state::TextEdit {+ layer: 999_999,+ caret: 5,+ anchor: 5,+ session: "stale".into(),+ created: false,+ mask: false,+ dragging: false,+ resize: None,+ preedit: None,+ });+ for egui in [1, 2, 3, 3, 3, 3] {+ super::multi_click(&mut app, egui, f64::NAN, f64::INFINITY);+ }+ let ed = app.ui.text_edit.as_ref().unwrap();+ assert_eq!((ed.anchor, ed.caret), (5, 5));+}+/// #3036: ⇧ on the click that commits a Type Mask adds the glyphs to the selection and ⌥/// subtracts them, as in Photoshop; while typing, the working text has no Layers panel row.#[test]diff --git a/docs/gaps.md b/docs/gaps.mdindex fdfad410e..9e84b432d 100644--- a/docs/gaps.md+++ b/docs/gaps.md@@ -1,6 +1,6 @@# Where PhotoCraft falls short of Photoshop-> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-10-11 · **Change:** minor (Czech UI localization evidence added to G13; Tilt-Shift evidence added to G2; earlier the same day: major, every known shortfall ranked from the re-measure) · **Target:** Adobe Photoshop 2026+> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-10-11 · **Change:** minor (G8: triple-, quadruple- and five-click type selection landed, TYPE-218-8 done; Czech UI localization evidence added to G13) · **Target:** Adobe Photoshop 2026Every known shortfall against Photoshop 2026 (27.11.0), one entry each, ranked by user impacton the way to beta. This is the work list agents pick from: take the highest-ranked entry that@@ -77,11 +77,12 @@ what an agent can't finish alone.### G8. Type depth- **Missing:** type on a path (TYPE-218-1), paragraph direction UI (TYPE-218-2), complex-script- fallback fonts and golden tests (TYPE-218-3), variable-font axes (TYPE-218-4), OpenType panel- UI (TYPE-218-5), manual and optical kerning with PSD round trip (TYPE-218-6, #206), live Warp- Text preview (TYPE-218-7, #2689), triple/quadruple click (TYPE-218-8), "rasterize and continue"- for distort/perspective on type (TYPE-218-9), text free transform (#2630).-- **Evidence:** scorecard Type: 0 done, 3 partial, 6 missing. The Type tool froze the app for+ fallback fonts and golden tests (TYPE-218-3), OpenType panel UI (TYPE-218-5), live Warp Text+ preview (TYPE-218-7, #2689), "rasterize and continue" for distort/perspective on type+ (TYPE-218-9), text free transform (#2630). Done since the re-measure: manual and optical kerning+ with PSD round trip (TYPE-218-6, #206), variable-font axes (TYPE-218-4, #2985).+- **Evidence:** scorecard Type: 3 done, 2 partial, 4 missing. 2026-10-11: 2/3/4/5 clicks select+ word, line, paragraph and all text, with tests (TYPE-218-8, #3493). The Type tool froze the app for60 s on one macOS machine (#2518).- **Estimate:** 120–200 h.@@ -220,7 +221,8 @@ what an agent can't finish alone.| Date | Change | Summary ||---|---|---|+| 2026-10-11 | minor | G13: Czech dynamic UI text localized; engine messages and native review remain open |+| 2026-10-11 | minor | G8: triple/quadruple/five-click type selection done (TYPE-218-8, #3493); Type evidence recounted || 2026-10-10 | minor | G2: recorded Tilt-Shift computation/filtered-proxy measurements and limits; gap and estimate remain open || 2026-10-10 | minor | Checked against the alpha gate (no alpha blockers); #2374 marked closed || 2026-10-10 | major | First version, from the full re-measure against Photoshop 2026 27.11.0 and the open issues |-| 2026-10-11 | minor | G13: Czech dynamic UI text localized; engine messages and native review remain open |diff --git a/docs/scorecard.md b/docs/scorecard.mdindex b3e55e092..d71920d43 100644--- a/docs/scorecard.md+++ b/docs/scorecard.md@@ -10,7 +10,7 @@ Generated by `cargo xtask scorecard` from `perf/budgets.toml`, `perf/baseline.js| [File compatibility](#file-compatibility) | 6 | 13 | 8 | io corpus: oracle ≥ 146/170, round trip ≥ 169/170; psd-tools corpus: oracle ≥ 236/309, round trip ≥ 308/309; photoshop oracles: oracle ≥ 133/256, round trip ≥ 258/256 || [Tools](#tools) | 26 | 15 | 2 | || [Workspace and UI](#workspace-and-ui) | 9 | 8 | 6 | settings that do nothing: 30 of 154 (target 0) |-| [Type](#type) | 3 | 3 | 3 | |+| [Type](#type) | 4 | 2 | 3 | || [Automation](#automation) | 3 | 2 | 6 | 631 of 631 menu items live (100.0%) || [Reliability](#reliability) | 5 | 2 | 0 | never-crash lints on 28 of 28 crates; panic_hunt present || [Distribution](#distribution) | 5 | 4 | 2 | |@@ -217,7 +217,7 @@ Unread: `general.color_picker`, `general.animated_zoom`, `general.zoom_resizes_w| TYPE-218-5 | OpenType UI: Character panel buttons, Numerals and Stylistic Sets submenus | partial | [#218](https://github.com/storytold/photocraft/issues/218) | Type > OpenType toggles (type_extra_cmds.rs:512); no panel buttons or submenus || TYPE-218-6 | Manual pair kerning (Alt+arrows), optical kerning rendered, both round-trip PSD (#206) | done | [#218](https://github.com/storytold/photocraft/issues/218) | Alt+Left/Right at a collapsed caret kerns the pair (type_tool.rs kern_pair, 20 per step and 100 with Cmd; type_tool_alt_arrows_kern_the_pair). Optical kerning is computed from the glyph outlines in text/src/optical.rs and applied by layout.rs when the run's mode is Optical (optical_matches_photoshop, optical_kerning_tightens_open_pairs). Both modes and manual values round-trip through PSD (io/tests/psd_kerning.rs; the optical mode travels in Txt2, txt2_carries_optical_kerning) || TYPE-218-7 | Warp Text dialog previews live and opens with the layer's current warp | missing | [#218](https://github.com/storytold/photocraft/issues/218) | view_cmds.rs:834 always seeds arc, bend 50 |-| TYPE-218-8 | Text editing: select all, double/triple/quadruple-click selection, paste, with tests | partial | [#218](https://github.com/storytold/photocraft/issues/218) | Cmd+A, paste and double-click exist; no triple/quadruple click, no tests |+| TYPE-218-8 | Text editing: select all, double/triple/quadruple-click selection, paste, with tests | done | [#218](https://github.com/storytold/photocraft/issues/218) | Like Photoshop, 2 clicks select the word, 3 the laid-out line (a column in vertical type), 4 the paragraph up to the hard return, 5 all text, and the next quick click starts over (#3493; type_tool.rs next_click_count, click_selection, multi_click). Tested through real canvas clicks in point, paragraph and vertical type, with paste replacing the selection and Cmd+A selecting all (type_tool_tests.rs multi_click_selects_word_line_paragraph_and_all_in_point_text, multi_click_separates_wrapped_lines_from_paragraphs, click_counts_cycle_and_restart, click_selection_without_layout_and_on_hostile_input, multi_click_without_a_session_does_nothing) || TYPE-218-9 | Distort/Perspective/Warp on live type as in Photoshop (was: offer 'Rasterize and continue?'; Photoshop doesn't prompt) | done | [#218](https://github.com/storytold/photocraft/issues/218) | Photoshop 2026 prompts for none of these: Edit › Transform › Warp on live type stays enabled with no rasterize prompt and offers only the warp styles (the mesh can't be dragged), so the type stays editable; Distort, Perspective and the split warps are greyed. PhotoCraft does the same: Warp on type commits the layer's Warp Text in one step (transform_tool.rs enter_type_warp, warp_cmds.rs warp_type_layer, #3004; warp_on_type_takes_a_style_and_keeps_the_type_editable), Distort/Perspective greyed (enable_rules.rs, #2701) |## Automationdiff --git a/scorecard/type.toml b/scorecard/type.tomlindex 7a9682823..ea1b35d6b 100644--- a/scorecard/type.toml+++ b/scorecard/type.toml@@ -56,9 +56,9 @@ note = "view_cmds.rs:834 always seeds arc, bend 50"[[item]]id = "TYPE-218-8"target = "Text editing: select all, double/triple/quadruple-click selection, paste, with tests"-status = "partial"+status = "done"issue = 218-note = "Cmd+A, paste and double-click exist; no triple/quadruple click, no tests"+note = "Like Photoshop, 2 clicks select the word, 3 the laid-out line (a column in vertical type), 4 the paragraph up to the hard return, 5 all text, and the next quick click starts over (#3493; type_tool.rs next_click_count, click_selection, multi_click). Tested through real canvas clicks in point, paragraph and vertical type, with paste replacing the selection and Cmd+A selecting all (type_tool_tests.rs multi_click_selects_word_line_paragraph_and_all_in_point_text, multi_click_separates_wrapped_lines_from_paragraphs, click_counts_cycle_and_restart, click_selection_without_layout_and_on_hostile_input, multi_click_without_a_session_does_nothing)"[[item]]id = "TYPE-218-9"