Tag autocomplete inline picker while typing # #449

Closed
opened 2026-10-15 17:28:56 +00:00 by kayg · 6 comments
Owner

kayg (2026-10-15): typing a tag (#…) should get the same inline picker as [[ and @, suggesting from all existing tags as you type.

Grill T1–T4 in chat. Mockup first. Nothing is merged until kayg approves.

kayg (2026-10-15): typing a tag (`#…`) should get the same inline picker as `[[` and `@`, suggesting from all existing tags as you type. Grill T1–T4 in chat. Mockup first. Nothing is merged until kayg approves.
Author
Owner

Mockup is up: tag picker. Branch issue/448-links-mockup, PR #453 (mockup, do not merge). It follows T1–T3: the picker opens after the first letter and rows show counts.

How it works: it is the same glass as [[ and @ (#319's dense step), 34 px rows and a set width, under the caret, or above it when there's no room. It never takes the caret away. Names that start with what you typed come first, then names with the letters in order. If nothing at that level fits, it looks deeper by the last part of each tag (#fict finds reading/fiction). Nested tags complete one level at a time: Tab on area/ gives #area/ and shows what's inside, and Enter takes the tag as it is. Space ends the tag and closes the picker, Esc closes it, and a new tag needs no "create" row. # followed by a number ("issue #12", "#1") never opens it. Each count is the notes that use the tag or anything inside it.

Tags: #ar, Tab into #area/, the shared picker for @ / [[, and dark over a photo
sheet-tags.png

320 and 390, light and dark (the third column of each group is the picker)
sheet-phone-states.png

iPhone checklist (headless WebKit here draws no backdrop blur, so the glass needs a real device):

  • Open the page in Safari and from the Home Screen. Light and dark. Nothing scrolls sideways at any width.
  • Tap each link: never written (the note is made and opens, and Undo brings you back), Trash (card), deleted (card), moved (opens Books to read).
  • The card sits under the link, or above it near the bottom, stays clear of the notch and the home indicator, and closes when you tap elsewhere.
  • With the keyboard up, the #, @ and [[ picker sits above the keyboard, with no zoom and no jump. Tapping a row puts it in and keeps the keyboard up.
  • Space after a tag closes the picker. "issue #12" never opens it.
  • The picker and card glass blurs the words behind it and reads clearly over the photo (&over=photo&backdrop=photo).
  • A long press on a link does not open the system link preview over the card.
**Mockup is up: [tag picker](https://preview.calternal.cloud/links.html#/note/links-and-tags?list=all&tag=ar)**. Branch `issue/448-links-mockup`, PR #453 (mockup, do not merge). It follows T1–T3: the picker opens after the first letter and rows show counts. - [#ar: prefix first, then fuzzy](https://preview.calternal.cloud/links.html#/note/links-and-tags?list=all&tag=ar) · [#area/: what's inside](https://preview.calternal.cloud/links.html#/note/links-and-tags?list=all&tag=area/) · [#rcp: fuzzy](https://preview.calternal.cloud/links.html#/note/links-and-tags?list=all&tag=rcp) - `trigger`: [after1 ★](https://preview.calternal.cloud/links.html#/note/links-and-tags?list=all&tag=ar) · [immediate](https://preview.calternal.cloud/links.html#/note/links-and-tags?list=all&trigger=immediate&tag=) - `tagrow`: [count ★](https://preview.calternal.cloud/links.html#/note/links-and-tags?list=all&tag=area/) · [plain](https://preview.calternal.cloud/links.html#/note/links-and-tags?list=all&tagrow=plain&tag=area/) - [dark, over a photo](https://preview.calternal.cloud/links.html#/note/links-and-tags?list=all&theme=dark&over=photo&backdrop=photo&tag=area/) How it works: it is the same glass as `[[` and `@` (#319's dense step), 34 px rows and a set width, under the caret, or above it when there's no room. It never takes the caret away. Names that start with what you typed come first, then names with the letters in order. If nothing at that level fits, it looks deeper by the last part of each tag (`#fict` finds `reading/fiction`). Nested tags complete one level at a time: Tab on `area/` gives `#area/` and shows what's inside, and Enter takes the tag as it is. Space ends the tag and closes the picker, Esc closes it, and a new tag needs no "create" row. `#` followed by a number ("issue #12", "#1") never opens it. Each count is the notes that use the tag or anything inside it. **Tags: #ar, Tab into #area/, the shared picker for `@` / `[[`, and dark over a photo** ![sheet-tags.png](https://git.kayg.org/attachments/fad15715-378e-4cda-b19c-2bffe53bb725) **320 and 390, light and dark** (the third column of each group is the picker) ![sheet-phone-states.png](https://git.kayg.org/attachments/4177a9d6-6f98-4b61-8f63-f018f1a3026a) **iPhone checklist** (headless WebKit here draws no backdrop blur, so the glass needs a real device): - [ ] Open the page in Safari and from the Home Screen. Light and dark. Nothing scrolls sideways at any width. - [ ] Tap each link: never written (the note is made and opens, and Undo brings you back), Trash (card), deleted (card), moved (opens Books to read). - [ ] The card sits under the link, or above it near the bottom, stays clear of the notch and the home indicator, and closes when you tap elsewhere. - [ ] With the keyboard up, the `#`, `@` and `[[` picker sits above the keyboard, with no zoom and no jump. Tapping a row puts it in and keeps the keyboard up. - [ ] Space after a tag closes the picker. "issue #12" never opens it. - [ ] The picker and card glass blurs the words behind it and reads clearly over the photo (`&over=photo&backdrop=photo`). - [ ] A long press on a link does not open the system link preview over the card.
Author
Owner

Approval round live (https://preview.calternal.cloud/links.html#/note/links-and-tags?list=all&tag=ar), PR #457. trigger=after1 and the counts are the defaults. Fixed: the picker never follows you to the next page. It closes on any change of note or screen, on Esc, on a click anywhere else, and when the caret leaves the #, @ or [[ it belongs to. In the simulator, the #ar picker was open on the links note, a tap on "Dal makhani" opened that note, and no picker was there. Tests cover each case in Chromium and WebKit. The picker now wears the shared #319 glass (Glass dense), not a copy.

Approval round live (https://preview.calternal.cloud/links.html#/note/links-and-tags?list=all&tag=ar), PR #457. `trigger=after1` and the counts are the defaults. Fixed: **the picker never follows you to the next page**. It closes on any change of note or screen, on Esc, on a click anywhere else, and when the caret leaves the `#`, `@` or `[[` it belongs to. In the simulator, the `#ar` picker was open on the links note, a tap on "Dal makhani" opened that note, and no picker was there. Tests cover each case in Chromium and WebKit. The picker now wears the shared #319 glass (`Glass dense`), not a copy.
Author
Owner

Built into the app on branch issue/448-links-app (one PR with #448 and #450; not to be merged without kayg). trigger=after1 and tagrow=count, as approved.

  • # and a letter opens the same glass list as [[ and @ (one picker in the editor now, packages/editor/src/transforms/picker.ts, wearing float-glass-behind dense).
  • Names that start with what you typed first (more notes first), then names holding the letters in order; if nothing at the top fits, tags further down by their last part (#fict → reading/fiction).
  • Nested tags one level at a time: a row with tags inside shows a /; Tab on it gives #area/ and lists what's inside; Enter takes the tag as it is.
  • Each row's count is the notes that use the tag or anything inside it, worked out once per change to the note list (never per keystroke).
  • Space keeps typing and closes it, Esc closes it, no "create" row, #12 never opens it, not in code, links or the properties block.
  • It closes when the caret leaves the tag, on a click elsewhere and on another note (tests for each, Chromium and WebKit).

Wide, light and dark: #ar, then Tab into #area/
tags.png

390, WebKit, light and dark
tags-phone.png

iOS 27 simulator, Safari
sim-tags.png

**Built into the app** on branch `issue/448-links-app` (one PR with #448 and #450; not to be merged without kayg). `trigger=after1` and `tagrow=count`, as approved. - `#` and a letter opens the same glass list as `[[` and `@` (one picker in the editor now, `packages/editor/src/transforms/picker.ts`, wearing `float-glass-behind dense`). - Names that start with what you typed first (more notes first), then names holding the letters in order; if nothing at the top fits, tags further down by their last part (`#fict` → `reading/fiction`). - Nested tags one level at a time: a row with tags inside shows a `/`; Tab on it gives `#area/` and lists what's inside; Enter takes the tag as it is. - Each row's count is the notes that use the tag or anything inside it, worked out once per change to the note list (never per keystroke). - Space keeps typing and closes it, Esc closes it, no "create" row, `#12` never opens it, not in code, links or the properties block. - It closes when the caret leaves the tag, on a click elsewhere and on another note (tests for each, Chromium and WebKit). **Wide, light and dark: `#ar`, then Tab into `#area/`** ![tags.png](https://git.kayg.org/attachments/a46cda4c-12fb-4c30-bcaa-7d8c9dfb201a) **390, WebKit, light and dark** ![tags-phone.png](https://git.kayg.org/attachments/517c125e-5315-4666-95aa-311ed351097c) **iOS 27 simulator, Safari** ![sim-tags.png](https://git.kayg.org/attachments/f2807975-3a7e-4479-8723-b2f331560d8d)
Author
Owner

PR #464 (into dev, closes #448, #449, #450; not to be merged without kayg). Rebased on dev after the 16o train landed.

One fix after the screenshots above: on a phone, following a link now lets the keyboard go (the editor is one view for every note, so the tapped caret came along and the text bar swept the “Made” toast and its Undo away). Cards keep the caret to come back to.

PR #464 (into dev, closes #448, #449, #450; **not to be merged without kayg**). Rebased on dev after the 16o train landed. One fix after the screenshots above: on a phone, following a link now lets the keyboard go (the editor is one view for every note, so the tapped caret came along and the text bar swept the “Made” toast and its Undo away). Cards keep the caret to come back to.
Author
Owner

PR up: #555. #fitness now also suggests area/fitness, goals/fitness/strength (exact, path prefix, exact last segment, other segment, then count, then A to Z). Not merged.

PR up: https://git.kayg.org/kayg/calternal/pulls/555. `#fitness` now also suggests `area/fitness`, `goals/fitness/strength` (exact, path prefix, exact last segment, other segment, then count, then A to Z). Not merged.
Author
Owner

Closing during the 26 Oct handover cleanup: The tag picker landed in dev (PRs #496, #513, #562, #564).

Closing during the 26 Oct handover cleanup: The tag picker landed in dev (PRs #496, #513, #562, #564).
kayg closed this issue 2026-10-26 08:46:29 +00:00
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#449
No description provided.