Lists: long-press context menu and two-finger multi-select (iOS standards) #470

Open
opened 2026-10-16 03:57:34 +00:00 by kayg · 3 comments
Owner

kayg (2026-10-16): alongside swipe actions (#400), the lists should support two iOS-standard gestures:

  1. Tap and hold a row to get a context menu, built from the same rowActions registry as the swipe actions.
  2. Two-finger swipe down over the list to start multi-select. Select notes, then act on all of them: Archive, Hide, Delete, Tag, Pin, Move. This also covers #212 (old PR #250); rebuild it on the rowActions registry.

On desktop: ⌘/Ctrl-click and ⇧-click to pick, ⌘A, and right-click for the same menu.

Mockup first. Nothing merges until kayg approves.

kayg (2026-10-16): alongside swipe actions (#400), the lists should support two iOS-standard gestures: 1. **Tap and hold** a row to get a context menu, built from the same rowActions registry as the swipe actions. 2. **Two-finger swipe down** over the list to start multi-select. Select notes, then act on all of them: Archive, Hide, Delete, Tag, Pin, Move. This also covers #212 (old PR #250); rebuild it on the rowActions registry. On desktop: ⌘/Ctrl-click and ⇧-click to pick, ⌘A, and right-click for the same menu. Mockup first. Nothing merges until kayg approves.
Author
Owner

Mockup round: hold a row for a menu, two fingers down to select

Mockup, do not merge. Page: https://preview.calternal.cloud/chrome.html (same new page as #469; the swipe mockup and the other pages are untouched). Built on the rowActions registry from the swipe mockup (#400), so swipe, hold, ⋯, right-click, the shortcuts and the bulk bar all read the same actions. Replaces #250 for #212.

What each gesture does

  • Tap and hold a row (about half a second): the row lifts a little on a spring (a copy of it rises above the page, which dims and softens), and a glass menu opens beside it: Open, Copy link, Pin, Select, Archive, Hide, Delete (Open in focus only on wide screens). Built from the registry, so a new action shows up here by itself. No system callout, no text selection, no link preview. Letting go keeps the menu open; tap outside, scroll or press Esc and the row settles back. Choosing runs the action (Archive: the row leaves, one toast with Undo). The old preview card is still there behind hold=card.
  • Two fingers swiped down over a list: select mode begins, a ring springs in on every row, and the rows the fingers cross (by their middle) are picked, like Notes and Mail. Drag back up and the rows you leave are let go. Near the top or bottom the list scrolls on its own. While selecting, one-finger taps pick or unpick rows; swiping and holding are off.
  • The bulk bar on the glass rises from the bottom: N selected, Select all, Done, and Archive, Hide, Delete, Tag, Pin, Move. Each runs on every picked row and says what happened in one toast with one Undo. Archive, Hide, Delete and Move end the selection; Tag and Pin keep it. In the Trash it is Restore and Delete forever (which asks first). Tag opens a small menu of your tags (a tick means every picked note has it); Move opens a menu of notes to move them into.
  • Also in the menu and in ⋯ on a page: Select starts selecting with that row picked.
  • Desktop: ⌘/Ctrl-click picks (and starts selecting), ⇧-click picks a range, ⌘A selects every note in the list, Space picks the focused row, ⇧↑/⇧↓ stretch it, Esc lets go, right-click opens the same menu as hold (the shared glass menu). Keyboard actions never animate (the rings and the bar swap at once).

Preview URLs, one per state

State Link
Hold menu open on a row https://preview.calternal.cloud/chrome.html#/list/all?menu=calternal-rewrite
Selecting, three picked https://preview.calternal.cloud/chrome.html#/list/all?select=3
Trash, selecting https://preview.calternal.cloud/chrome.html#/list/trash?select=2
Desktop, two picked (⌘/Ctrl-click, ⇧-click, ⌘A, right-click) https://preview.calternal.cloud/chrome.html#/note/calternal-rewrite?list=all&select=2
The old preview card on hold https://preview.calternal.cloud/chrome.html#/list/all?hold=card
Dark add &theme=dark

Real iOS 27 simulator (iPhone 18 Pro)

The holds and the two-finger swipe below were made by real touches: the UI test runner holds a finger down, and a new swipe2 command sends two fingers moving together through XCTest's own event synthesis (there is no public two-finger swipe in Xcode). In a Safari tab:

Home Screen app (menu and selecting opened by link): light menu, dark menu, dark selecting:

Scripted checks (Chromium and WebKit, 390 wide; desktop at 1440)

Hold: menu has the registry's actions, fits the screen, letting go keeps it open and does not open the note, tap outside closes, choosing Archive removes the row. Two fingers: every two-finger move is cancelled (none left to scroll), four rows picked, count says "4 selected", all eight bar buttons are there, a tap toggles without opening, Select all, holding is off while selecting, Done, Archive on three rows gives one "3 notes archived" toast; two fingers up outside select mode do nothing. Desktop: ⌘/Ctrl-click picks and does not open, ⇧-click picks a range, Esc clears, ⌘A picks all with the quiet flag on, right-click shows the same actions. All green in both engines. (WebKit on Linux cannot build a Touch, so the test hands rows look-alike fingers; the real device was driven in the simulator as above.)

Chromium, 390 wide (WebKit on Linux has no real glass blur, so its shots are not used; the iPhone shots above are the real ones):

Please try on the iPhone (numbered)

  1. Hold a note row in All notes: the row lifts with a small bounce, the page dims and blurs, the menu opens next to it. Is there any grey ghost of the row, a selection handle, or the system Copy/Share callout? There should be none.
  2. Keep your finger down after the menu opens, then lift: the menu stays.
  3. Tap outside: the menu leaves and the row settles back. Scroll while it is open: same.
  4. Hold the last row on screen (menu opens above) and the first row (menu opens below): both fit.
  5. Hold, then choose Select: the ring springs in, the bar rises, the row is picked.
  6. Choose Archive from the menu: one toast with Undo; Undo brings it back.
  7. Two fingers on the list, swipe down slowly over 4 rows: rings spring in, crossed rows tick. Does the page also scroll? It should not.
  8. Keep going to the bottom edge: the list scrolls on its own and keeps picking.
  9. Swipe back up: the rows you leave are let go.
  10. Two fingers up with nothing selected: nothing happens (and no rubber-band zoom).
  11. One finger tap on rows: toggles. Swipe a row sideways while selecting: it does not move.
  12. Bulk bar: Archive three rows (one toast "3 notes archived", Undo restores all three). Pin, Tag (pick a tag from the menu), Move (pick a note). Hide, Delete (one toast, one Undo).
  13. Select all, then Done. In the Trash: Restore, and Delete forever asks first.
  14. Left-edge back swipe still goes back; it never opens or picks a row.
  15. Vertical scroll with one finger from a row still scrolls with momentum.
  16. Search results: hold a result: the same lifted menu (with Insert link here when a note is open).
  1. Hold: menu or card? The swipe round had a preview card with the actions under it. This round has the lift and the menu. Recommend: the menu (the card stays behind hold=card if you miss the preview); a Peek action can come later.
  2. Two fingers scroll. A two-finger drag in a list is now only selecting (scrolling with two fingers is blocked, and so is pinch). Recommend: accept; one finger scrolls as always.
  3. Move. Notes have no folders, so Move means "into another note" (their words follow the target's, each under its old title; the old notes go to the Trash, one Undo). Recommend: keep it for now, and revisit with Views (#312).
  4. After an action. Archive, Hide, Delete and Move end selecting; Tag and Pin keep it. Recommend: this, so you can tag then archive.
  5. Selecting is one list at a time. Search results can be held and swiped but not bulk-selected. Recommend: leave search out of this round.
  6. No haptics on iPhone Safari (known web limit), so crossing a row ticks only visually. Recommend: accept.
## Mockup round: hold a row for a menu, two fingers down to select **Mockup, do not merge.** Page: **https://preview.calternal.cloud/chrome.html** (same new page as #469; the swipe mockup and the other pages are untouched). Built on the rowActions registry from the swipe mockup (#400), so swipe, hold, ⋯, right-click, the shortcuts and the bulk bar all read the same actions. Replaces #250 for #212. ### What each gesture does - **Tap and hold a row** (about half a second): the row lifts a little on a spring (a copy of it rises above the page, which dims and softens), and a **glass menu** opens beside it: Open, Copy link, Pin, Select, Archive, Hide, Delete (Open in focus only on wide screens). Built from the registry, so a new action shows up here by itself. No system callout, no text selection, no link preview. **Letting go keeps the menu open**; tap outside, scroll or press Esc and the row settles back. Choosing runs the action (Archive: the row leaves, one toast with Undo). The old preview card is still there behind `hold=card`. - **Two fingers swiped down** over a list: select mode begins, a ring springs in on every row, and the rows the fingers cross (by their middle) are picked, like Notes and Mail. Drag back up and the rows you leave are let go. Near the top or bottom the list scrolls on its own. While selecting, **one-finger taps** pick or unpick rows; swiping and holding are off. - **The bulk bar** on the glass rises from the bottom: *N selected*, **Select all**, **Done**, and Archive, Hide, Delete, Tag, Pin, Move. Each runs on every picked row and says what happened in one toast with one Undo. Archive, Hide, Delete and Move end the selection; Tag and Pin keep it. In the Trash it is Restore and Delete forever (which asks first). Tag opens a small menu of your tags (a tick means every picked note has it); Move opens a menu of notes to move them into. - **Also in the menu and in ⋯ on a page**: *Select* starts selecting with that row picked. - **Desktop**: ⌘/Ctrl-click picks (and starts selecting), ⇧-click picks a range, **⌘A** selects every note in the list, Space picks the focused row, ⇧↑/⇧↓ stretch it, **Esc** lets go, **right-click** opens the same menu as hold (the shared glass menu). Keyboard actions never animate (the rings and the bar swap at once). ### Preview URLs, one per state | State | Link | |---|---| | Hold menu open on a row | https://preview.calternal.cloud/chrome.html#/list/all?menu=calternal-rewrite | | Selecting, three picked | https://preview.calternal.cloud/chrome.html#/list/all?select=3 | | Trash, selecting | https://preview.calternal.cloud/chrome.html#/list/trash?select=2 | | Desktop, two picked (⌘/Ctrl-click, ⇧-click, ⌘A, right-click) | https://preview.calternal.cloud/chrome.html#/note/calternal-rewrite?list=all&select=2 | | The old preview card on hold | https://preview.calternal.cloud/chrome.html#/list/all?hold=card | | Dark | add `&theme=dark` | ### Real iOS 27 simulator (iPhone 18 Pro) The holds and the two-finger swipe below were made by real touches: the UI test runner holds a finger down, and a new `swipe2` command sends two fingers moving together through XCTest's own event synthesis (there is no public two-finger swipe in Xcode). In a Safari tab: <img src="https://git.kayg.org/attachments/67efdd44-28c1-47d5-9725-8a8e0fffadef" width="200"> <img src="https://git.kayg.org/attachments/0e3648ff-5638-4f6c-a707-d8b8a9a98f8f" width="200"> Home Screen app (menu and selecting opened by link): light menu, dark menu, dark selecting: <img src="https://git.kayg.org/attachments/f5feaa93-2e19-4a9a-8d9b-29db1bc994b5" width="170"> <img src="https://git.kayg.org/attachments/9319c078-f0ed-4bab-96ef-48818e558aae" width="170"> <img src="https://git.kayg.org/attachments/277689c3-a75f-4d4b-b5fb-7c308e445d78" width="170"> ### Scripted checks (Chromium and WebKit, 390 wide; desktop at 1440) Hold: menu has the registry's actions, fits the screen, letting go keeps it open and does not open the note, tap outside closes, choosing Archive removes the row. Two fingers: every two-finger move is cancelled (none left to scroll), four rows picked, count says "4 selected", all eight bar buttons are there, a tap toggles without opening, Select all, holding is off while selecting, Done, Archive on three rows gives one "3 notes archived" toast; two fingers *up* outside select mode do nothing. Desktop: ⌘/Ctrl-click picks and does not open, ⇧-click picks a range, Esc clears, ⌘A picks all with the quiet flag on, right-click shows the same actions. All green in both engines. (WebKit on Linux cannot build a `Touch`, so the test hands rows look-alike fingers; the real device was driven in the simulator as above.) Chromium, 390 wide (WebKit on Linux has no real glass blur, so its shots are not used; the iPhone shots above are the real ones): <img src="https://git.kayg.org/attachments/6492fb40-a43d-47c6-98fe-f4308c0dd313" width="200"> <img src="https://git.kayg.org/attachments/428c8416-c6db-424e-95e6-80ec604b9beb" width="200"> <img src="https://git.kayg.org/attachments/0b786eac-c112-4bdf-8eac-2329dbf0295e" width="420"> ### Please try on the iPhone (numbered) 1. Hold a note row in All notes: the row lifts with a small bounce, the page dims and blurs, the menu opens next to it. Is there any grey ghost of the row, a selection handle, or the system Copy/Share callout? There should be none. 2. Keep your finger down after the menu opens, then lift: the menu stays. 3. Tap outside: the menu leaves and the row settles back. Scroll while it is open: same. 4. Hold the last row on screen (menu opens above) and the first row (menu opens below): both fit. 5. Hold, then choose **Select**: the ring springs in, the bar rises, the row is picked. 6. Choose **Archive** from the menu: one toast with Undo; Undo brings it back. 7. Two fingers on the list, swipe down slowly over 4 rows: rings spring in, crossed rows tick. Does the page also scroll? It should not. 8. Keep going to the bottom edge: the list scrolls on its own and keeps picking. 9. Swipe back up: the rows you leave are let go. 10. Two fingers *up* with nothing selected: nothing happens (and no rubber-band zoom). 11. One finger tap on rows: toggles. Swipe a row sideways while selecting: it does not move. 12. Bulk bar: **Archive** three rows (one toast "3 notes archived", Undo restores all three). **Pin**, **Tag** (pick a tag from the menu), **Move** (pick a note). Hide, Delete (one toast, one Undo). 13. **Select all**, then **Done**. In the Trash: Restore, and Delete forever asks first. 14. Left-edge back swipe still goes back; it never opens or picks a row. 15. Vertical scroll with one finger from a row still scrolls with momentum. 16. Search results: hold a result: the same lifted menu (with Insert link here when a note is open). ### Open questions (each with my recommended answer) 1. **Hold: menu or card?** The swipe round had a preview card with the actions under it. This round has the lift and the menu. Recommend: the menu (the card stays behind `hold=card` if you miss the preview); a *Peek* action can come later. 2. **Two fingers scroll.** A two-finger drag in a list is now only selecting (scrolling with two fingers is blocked, and so is pinch). Recommend: accept; one finger scrolls as always. 3. **Move.** Notes have no folders, so Move means "into another note" (their words follow the target's, each under its old title; the old notes go to the Trash, one Undo). Recommend: keep it for now, and revisit with Views (#312). 4. **After an action.** Archive, Hide, Delete and Move end selecting; Tag and Pin keep it. Recommend: this, so you can tag then archive. 5. **Selecting is one list at a time.** Search results can be held and swiped but not bulk-selected. Recommend: leave search out of this round. 6. **No haptics** on iPhone Safari (known web limit), so crossing a row ticks only visually. Recommend: accept.
Author
Owner

Combined chrome round is live: https://preview.calternal.cloud/chrome.html . Holding a row (preview over a menu, top row of main actions, icons left, dim to the status bar), two-finger select with the details in the top pills (Select all, N selected, Done) and only actions below plus Copy links, swipe pills one at a time, trackpad swipe. The full list, links and iPhone checklist are on #469 (PR #500).

Combined chrome round is live: https://preview.calternal.cloud/chrome.html . Holding a row (preview over a menu, top row of main actions, icons left, dim to the status bar), two-finger select with the details in the top pills (Select all, N selected, Done) and only actions below plus Copy links, swipe pills one at a time, trackpad swipe. The full list, links and iPhone checklist are on #469 (PR #500).
Author
Owner

Hold and select updates are in the combined round on https://preview.calternal.cloud/chrome.html (PR #509; details on #469): the hold menu opens for touch or pen only (never a mouse), the ⋯ menu and the row menu share one scale, the outer swipe pill stretches elastically, and on touch the ⋯ menu grows out of its button.

Menu opening, ours against your recording. Top row: your reference frames (system Notes). Bottom row: ours, the ⋯ menu stepped through its animation frame by frame (40 ms apart) in Chromium. The simulator's video capture wrote only 4 frames over 17 s, so it could not show the animation; this is the stepped version instead. Ours starts at the button, grows with a spring, the words go from blurred to sharp. It does not yet morph from a blob (the circle) as the reference does at the first frames, and it has no close animation.

Hold and select updates are in the combined round on https://preview.calternal.cloud/chrome.html (PR #509; details on #469): the hold menu opens for touch or pen only (never a mouse), the ⋯ menu and the row menu share one scale, the outer swipe pill stretches elastically, and on touch the ⋯ menu grows out of its button. Menu opening, ours against your recording. Top row: your reference frames (system Notes). Bottom row: ours, the ⋯ menu stepped through its animation frame by frame (40 ms apart) in Chromium. The simulator's video capture wrote only 4 frames over 17 s, so it could not show the animation; this is the stepped version instead. Ours starts at the button, grows with a spring, the words go from blurred to sharp. It does not yet morph from a blob (the circle) as the reference does at the first frames, and it has no close animation. <img src="https://git.kayg.org/attachments/9f1d8bf0-447f-44ed-9359-d29582eb1262" width="900">
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#470
No description provided.