fix(notes): [[ completes a note link, the way # completes a project
Typing [[ did nothing. The toolbar hint offered "[[ another note" and the parser turned a fully-typed [[Title]] into a link on save, but the completion that makes it usable — the one # has for projects — was never there, so you had to know and type a note's title exactly, brackets and all. Now [[ opens the same picker # does, over the notes the page has loaded: the current note is left out (a note linking to itself is a loop nobody meant), and one without a title yet cannot be pointed at. Choosing a note closes its own brackets — the opener is already in the text — and leaves a space, so the next word is a word and not more of the tag. On save the link is real and shows in the note's links, not merely as text. The picker's two kinds are told apart where a project wears its colour: a note suggestion wears the brackets that open it. e2e: [[ offers a note by title, choosing it writes [[Title]] into the note, and the link lands in the note's links. Full Chromium suite green. Co-Authored-By: Claude Opus 5 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5
parent
1ba26ee723
commit
6116ed2e21
@@ -876,6 +876,7 @@
|
||||
{#if selected}
|
||||
<NoteEditor
|
||||
note={selected}
|
||||
notes={notes}
|
||||
onchange={(body) => {
|
||||
draft = body;
|
||||
typed();
|
||||
|
||||
Reference in New Issue
Block a user