Closed Cletip closed 1 year ago
If you want to be able to use alias of the note when inserting a link, just select the alias in the first place. vulpea-select
includes all aliases during completion. See as example the following screenshot.
Pinot Noir has multiple aliases: Pinot Nero, Rulandské modré, Spätburgunder, Blauburgunder, etc. When I what to type specific alias I either type the alias name (e.g. Spätburgunder) or type the original name and select among aliases. How do I distinguish between them? That's why vulpea-select-annotate-fn
displays original name in parenthesis by default (see https://github.com/d12frosted/vulpea#vulpea-select).
So I wonder, why do you need an extra selection if data you need is present in the first one?
I would like to be able to choose the alias for two main reasons:
first, sometimes we forget an alias. For example, let's say you write a text that criticizes Napoleon. You would then search for "Napoleon" for the note to insert, and insert "Napoleon". But just before you do, the system also propagates aliases, such as "the little corporal", which is a derogatory nickname for Napoleon. This is perfect! So you finally insert "the little corporal", which will be a link to Napoleon.
But that's exactly what current vulpea-select
supports. You don't need extra selection because you can search by "Napoleon" and you will see "the little corporal (Napoleon)" in completion. Take a look at my example with grapes. I constantly forget some aliases as well, but I remember the primary title. Sometimes it's otherwise.
Same applies to the second bullet.
Ah yes I'm too stupid, I had deleted this feature, obviously. Sorry for the waste of time :(
@Cletip no worries. I suspected that you simply changed the default behaviour of annotation after seeing your code. But I wanted to understand your use case better :) Thanks for sharing!
it's not really a way out. I still have a little trouble with the pull request, so I'm doing it here.
I've modified "vulpea-insert" to have the choice to select the description (see in "description" variable in the first let). Is this a good idea?