mrjackphil / obsidian-text-expand

A simple text expand plugin for Obsidian.md
186 stars 12 forks source link

[Bug] Cannot limit search to file names #55

Closed WyldKard closed 2 years ago

WyldKard commented 2 years ago

The plugin descriptions says the plugin, "will search files using Obsidian search functionality..." See: https://help.obsidian.md/Plugins/Search

However, when using the query, "file:(examplequery)", nothing is returned, even though I have filenames that include "examplequery".

mrjackphil commented 2 years ago

@WyldKard Do you have entries in Obsidian's Search panel when you execute the query?

WyldKard commented 2 years ago

Looks like this may have been an issue with iOS automatically converting quotes into smart quotes in my Text Expand query, as I'm getting results now. 😃

Is there a way to prevent non-markdown files from being listed with a leading exclamation point though? (I'd prefer to see the links, not see the items embedded.)

Thanks!

mrjackphil commented 2 years ago

@WyldKard Can you provide an example of what you want to achieve?

WyldKard commented 2 years ago

Played around with this a bit more and it seems I forgot to include the following after my query, so it was embedding the attachments:

- [[$filename]]

Works now, thank you!

mrjackphil commented 2 years ago

Glad it worked for you!