tadashi-aikawa / obsidian-various-complements-plugin

This plugin for Obsidian enables you complete words like the auto-completion of IDE.
MIT License
599 stars 22 forks source link

[Feature Request] Option to treat an hyphen as a part of a word #311

Open SauravTyagi1987 opened 1 month ago

SauravTyagi1987 commented 1 month ago

Hi,

I have been using the "Various Complements" plugin in Obsidian. Thanks for creating and maintaining this.

I have lot of words which have hyphen in them and would like to have an option in the setting similar to underscore, where hyphen can be treated as a part of a word. This would enable me to have words come in the suggestions having hyphen in them.

Thank you for considering this feature request!

Best regards, Saurav

tadashi-aikawa commented 1 month ago

Thank you for your FR, @SauravTyagi1987 :)

That looks good. I want to give it a try 👍

tadashi-aikawa commented 1 month ago

@SauravTyagi1987 Since there was a partial misunderstanding, I would like to provide some additional clarification.

If the strategy is set to "Default" or "English only," hyphens are already recognized as part of the word. However, I am not sure how it behaves with other strategies. This depends on the tokenizer for each language, so it may be difficult to achieve.