Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make auto-linking with @ from multi-word name fragments easier #2183

Closed
agentydragon opened this issue Sep 27, 2021 · 2 comments
Closed

Make auto-linking with @ from multi-word name fragments easier #2183

agentydragon opened this issue Sep 27, 2021 · 2 comments

Comments

@agentydragon
Copy link
Sponsor Contributor

Hi, I'm coming from Roam Research, Athens and Logseq.
Those tools use [[ to delimit page links, so if you write "[[John Doe", you'll get an autocomplete listing all your pages with John Doe, and then you can press Enter to complete the link (with ]]).

Trilium does autolinking great when you want to autolink on a single word - if you only have one page with, say, "Sausage" in the name (e.g., "Sausage soup"), you can just type @Sausage <Enter> and you'll get the link.

But imagine that only a single word does not uniquely identify your page - for example, I have a page named My tasks and a page named My metrics. Then if I want to link to My metrics, I have two options:

  • Type @My, select "My metrics" from the list, Enter.
  • Use Ctrl+L, type My metrics, Enter.

If you type @My␣, the space closes the @ menu. So typing @My␣metrics<Enter> just leaves you with the text @My metrics and a newline.

If you insert a link with Ctrl+L, it opens a big modal dialog, and you need to press an extra key: Ctrl+L My␣metrics <Enter> (dismiss page list) <Enter> (close link dialog) works.

I think it would be useful to make the @ suggestion menu a bit smarter about how it behaves. For example, I think it would be nice to allow using it to create a page whose name has spaces in it.

One idea I have is that the @ menu would remain open if you press Space, but it would get dismissed if you press Escape, or if it somehow otherwise decided "you probably don't want to create a page" - for example if it I continue by typing something that looks like a domain name after it (as in xyzzy@foo.com).

@zadam
Copy link
Owner

zadam commented Sep 27, 2021

Hi, I agree, but this is unfortunately not possible with CKEditor Mention feature: ckeditor/ckeditor5#9741

@meichthys
Copy link
Collaborator

Trilium has entered maintenance mode. Future enhancements will be addressed in TrilumNext: TriliumNext#133

@meichthys meichthys closed this as not planned Won't fix, can't repro, duplicate, stale May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants