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

Option to suggest title after typing a vertical bar in a link: [[note|]] #178

Open
redactedscribe opened this issue Oct 8, 2023 · 2 comments

Comments

@redactedscribe
Copy link

redactedscribe commented Oct 8, 2023

The plugin already has a Suggest option for replacing "shown titles in suggest modals". What this feature really does is that, and more: Inserting a link without it automatically being styled as its title: isn't possible. By the feature's name and one-line explanation, I thought it would only change the rendered name in the suggest modal UI, not the document source, but that's another matter. The feature probably works how users want it to. Maybe the feature could be split into two options: The rendering of the file in the suggest modal, and the automatic formatting of the link as its title value? In such a case, I'd only turn on the former of the two as I'd find that to be a visual help (my title values have emojis, but I don't necessarily want to insert them as links).

The above was mostly commentary on the existing feature. My feature request is that if we type [[fullnotename|, this plugin will add the title: value to the list of selectable link aliases to choose from. This way I could disable the Suggest option and only trigger a title being suggested when I type a vertical bar after the link's name. I guess mixing the title in the list of available aliases for a linked note could be confusing unless maybe some icon or styling could be used to differentiate between which suggestions are real aliases, and which is just the title being suggested.

Thanks for your consideration and a very useful plugin!

Edit: I've just noticed that when creating a link with the Suggest feature enabled, once the note that you want is the top result ([[note), pressing tab autocompletes the suggestion, but also highlights the display name making it and the veritcal bar easy to delete using two backspaces. That helps, but perhaps it'd still be ideal to only see the title in the suggest modal UI and not insert it by default? Being able to type a vertical bar and see the title suggested still stands as a good idea I think.

@snezhig
Copy link
Owner

snezhig commented Nov 1, 2023

It sounds nice, but this Feature is the most difficult to realize and control. I will check if you request is possible to do.

@redactedscribe
Copy link
Author

redactedscribe commented Nov 1, 2023

This is less of an issue, or possibly not an issue at all (for me), if #182 has a satisfactory implementation. Also, as stated previously in my FR's edit, adapting to pressing tab instead will select the display name so it can be deleted with little effort. Still, if there was an option to wait for the vertical bar, it may prove valuable, but I will need to find more use cases for this first to argue for it any further.

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

2 participants