Double-bracket note linking: Improve note suggestion in the middle of a paragraph
Currently in the Amplenote web editor, linking to a note by opening a double bracket only suggests note titles containing text up to the end of the paragraph. Essentially, this would allow for instantly creating notes and naming them with a whole sentence, which is good.
However a use-case that would be at least as frequent would be to link to an existing or new note that has a different name, and currently the suggestion box will not suggest it. (A workaround for this would be type one closing bracket "]" and check against the now working suggestion box).
It would be very useful if:
a. the editor suggested existing notes based on text written between "[[" and the cursor (should be trivial to add this and keep the whole-paragraph suggestion too)
b. the editor suggested existing notes based on partial matches of text between the cursor and the end of the paragraph (would require a smarter algorithm for fuzzy-searching all notes against all substrings of the paragraph)
Word limit :)
Comments: 2
-
24 Oct, '20
Brian Cohen AdminFrom what I understand, in fewer words this suggestion could be understood as "Make [[ note suggestion up to cursor, instead of end of paragraph," which is reasonable. As you seem to allude to, you can get this effect currently if you add a single "]" bracket to stop the suggestion algo
-
25 Oct, '20
LucianAs I just discovered, adding a single closing "]" bracket and then typing inside the brackets will achieve the effect of partial suggestions indeed. I initially thought that once you type the closing bracket, the suggestion box won't update anymore.
Since this feature effectively solves point a above, I think I'm fine with it this way. There's still a case to be argued for point b, however :)