mrjackphil / obsidian-text-expand

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

feature request: can we generate the list of search results list on the same line (e.g., separated by a comma) without having to start a new line? #81

Open ghweili opened 1 year ago

ghweili commented 1 year ago

this is needed when we have a large amount of matching files, but each file is very short. For example, I may want to display the title of each file only, with the title of each file containing only one word.

mrjackphil commented 1 year ago

@ghweili I believe you can achieve that using eta templating. If you provide an example of what you trying to achieve I might give you a snippet which could help.

ghweili commented 1 year ago

Thanks for your reply. One possible scenario is: I have a dictionary, which includes a lot of entries. I'm considering using python to create one md file for each entry, with the word as the file tile and the explanation in the file body; moreover, these files can include tags I created manually. Then, I'd like to be able to display all the words with a selected tag.

This can be done using text-expand. For example, I can choose to display the $filename of the files. However, it's not convenient to have each word on a separate line. Preferably, I'd like the words to be displayed on the same line, either split by a space or not.