Swipe actions on blocks inside notes (select, copy link, hide, delete) #611

Open
opened 2026-10-19 08:46:12 +00:00 by kayg · 2 comments
Owner

kayg (2026-10-19): blocks inside notes get swipe actions like the list rows. Left→right: Select (default, full swipe), Copy link. Right→left: Hide, Delete, Select (default). Copy link uses the block's unique deep link (S13). Mockup first; the meaning of Hide is being clarified.

kayg (2026-10-19): blocks inside notes get swipe actions like the list rows. Left→right: Select (default, full swipe), Copy link. Right→left: Hide, Delete, Select (default). Copy link uses the block's unique deep link (S13). Mockup first; the meaning of Hide is being clarified.
Author
Owner

Decisions (kayg, 2026-10-19, Settings grill S16–S22):

  • Phone: tap selects a block, double tap edits; while editing, one tap moves the caret. Desktop: arrow cursor, one click selects, two clicks edit (#607).
  • Every block has a stable unique ID, written into the file on first copy-link or hide (ADR 0017); link /notes/<id>/<block-id>, opening pulses the block once in the accent.
  • Hide: nothing removed. Stored as a frontmatter list hidden: [^id] (text untouched; other editors still show the block). Fun disappearing animation. No placeholder line. ⌘K → "Show hidden blocks" shows this note's hidden blocks faded with an unhide icon each, this note only, resets on leaving. Search skips hidden blocks; a direct link opens the note with only that block shown faded. Hide also in the block ⋯ menu and selection bar.
  • Trackpad swipes on blocks work like list rows.
    Mockup first.
Decisions (kayg, 2026-10-19, Settings grill S16–S22): - Phone: tap selects a block, double tap edits; while editing, one tap moves the caret. Desktop: arrow cursor, one click selects, two clicks edit (#607). - Every block has a stable unique ID, written into the file on first copy-link or hide (ADR 0017); link `/notes/<id>/<block-id>`, opening pulses the block once in the accent. - Hide: nothing removed. Stored as a frontmatter list `hidden: [^id]` (text untouched; other editors still show the block). Fun disappearing animation. No placeholder line. ⌘K → "Show hidden blocks" shows this note's hidden blocks faded with an unhide icon each, this note only, resets on leaving. Search skips hidden blocks; a direct link opens the note with only that block shown faded. Hide also in the block ⋯ menu and selection bar. - Trackpad swipes on blocks work like list rows. Mockup first.
Author
Owner

Block swipes and holds as built on the preview (round 9A, per kayg's last decisions):

  • Desktop: one click selects, two edit; two-finger sideways scroll swipes a block.
  • Phone: a tap goes into the text; hold about 0.5 s lifts the block (spring lift) and it follows the finger, a line shows where it lands, the page scrolls near its edges; let go moved = dropped there, let go still = selected (ticks + the bar); moving more than 10 pt before the hold completes cancels (scroll wins).
  • Swipe right → left, read from the left edge: Select, Hide, Delete; the long swipe is Delete with Undo in place, the rest of the note closes the gap on the spring. Swipe left → right: Make it a note (the long swipe; what → does) and Select. Copy link is in ⋯ and the bar only.
  • The block that slides is a copy beside the text; the tray is put away whole after every action or cancel. Tests: apps/mockup/tests/m9a.spec.ts (Chromium and WebKit); simulator shots after each action are in the #469 comment.
Block swipes and holds as built on the preview (round 9A, per kayg's last decisions): - Desktop: one click selects, two edit; two-finger sideways scroll swipes a block. - Phone: a tap goes into the text; hold about 0.5 s lifts the block (spring lift) and it follows the finger, a line shows where it lands, the page scrolls near its edges; let go moved = dropped there, let go still = selected (ticks + the bar); moving more than 10 pt before the hold completes cancels (scroll wins). - Swipe right → left, read from the left edge: Select, Hide, Delete; the long swipe is Delete with Undo in place, the rest of the note closes the gap on the spring. Swipe left → right: Make it a note (the long swipe; what → does) and Select. Copy link is in ⋯ and the bar only. - The block that slides is a copy beside the text; the tray is put away whole after every action or cancel. Tests: `apps/mockup/tests/m9a.spec.ts` (Chromium and WebKit); simulator shots after each action are in the #469 comment.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
kayg/calternal#611
No description provided.