tadashi-aikawa / obsidian-another-quick-switcher

This is an Obsidian plugin which is another choice of Quick switcher.
MIT License
221 stars 16 forks source link

I wish aliases 「 insert to editor」 #245

Open Akiyam-hub opened 1 week ago

Akiyam-hub commented 1 week ago

Thank you for always providing great features!

current, 「 insert to editor」 is only insert of file name

ex. [[filename]] or [filename](filename.md)

I wish to insert aliases(or properties value) 「 insert to editor」 as option

it is useful to be a different thing from filename and aliases

ex. [aliases](filename.md)
tadashi-aikawa commented 1 week ago

Hi, @Akiyam-hub :)

I agree with your opinion. However, instead of creating a new command, I think it would be better to change the process so that when 'insert to editor' is executed in cases where an alias is displayed as the candidate title, the alias is displayed instead of the note title.

For example, in the image below, where the candidate title is PyPI and the alias is Python Package Index, the alias hits for 'python'. In this state,

image

If you execute 'insert to editor', the following content would be inserted into the editor.

[[Python Package Index|PyPI]]

What do you think?

Akiyam-hub commented 2 days ago

Thank you for your reply .

Your proposed behavior is exactly what I would like.

It would work even when there are multiple alias values.

I hope you will implement it!

tadashi-aikawa commented 21 hours ago

@Akiyam-hub I have released version 11.6.0-beta1 for now. Since there are many optional patterns and the implementation has become complex, it seems likely that there are bugs. If there appear to be no issues with the operation, I plan to make an official release. If you are using BRAT, it would be helpful if you could try it out.