vschroeter / obsidian-virtual-linker

Plugin for obsidian that automatically generates virtual links for text within your notes that match with the titles or aliases of other notes in your vault.
Other
105 stars 4 forks source link

If there are no spaces before or after terms, the links will not be displayed. It is a big problem for Chinese. #32

Open nanjingman opened 1 month ago

nanjingman commented 1 month ago

image

vschroeter commented 1 month ago

Disable "Match only whole words" option:

image
nanjingman commented 1 month ago

I See! But doing so is not friendly to English anymore.

nanjingman commented 1 month ago

And I found in Callout it's OK for Chinese even I turned the "whole words" button off. image

keeyangyy commented 2 weeks ago

I have the same problem.

The question is the English is a language with space between words and Chinese without space. So when I turn the "whole words" button on, it works well in English but the link in Chinese will not display. When I turn the "whole words" button off, it works well in Chinese but the incorrect link in English will display.

Maybe the word Segmentation is difficult for Chinese. But I have a suggestion that the match mode can be different for different language. "whole words" matching can be applied to language with space such as English, and "whole words" matching is disabled to language without space such as Chinese.

Finally, the plugin is wonderful!!! I love it very much! I've always wanted to have a plugin like this. Thanks for the developer very much!