chrisgrieser / shimmering-obsidian

Alfred Workflow with dozens of features for controlling your Obsidian vault.
https://alfred.app/workflows/chrisgrieser/shimmering-obsidian/
MIT License
817 stars 40 forks source link

Feature Request: Sort results by file name > H1 > H2 > H3 #173

Closed saeedesmaili closed 4 months ago

saeedesmaili commented 4 months ago

Checklist

Feature Requested

I would like to dial some knobs to tell the workflow to give more weight to the file name, then H1, then H2, then H3. When I search for photography and I have a note with photography as file name, I'd like to see it first in the results:

image

Having some sort of weight adjustments like Obsidian Omnisearch plugin would be fantastic:

image

Alternatives considered

I'm using this alfred workflow probably 50-60 times a day, and I encounter this issue a lot, and I've been just trying to find the item (file name) in the results and clicking on it or using cmd+number.

Relevant Screenshot

No response

chrisgrieser commented 4 months ago

Such fine-grained weighting of results is unfortunately not possible with Alfred. (Allowing for something like that would be an Alfred Feature Request, which I'd gladly upvote if you posted it in the Alfred forum.)

However, I can see that the heading search is far from optimal. I changed the matching behavior, so that heading searches only match the heading content, not the file content (meaning in your example, only H1 and the file would be matched, and not all the other headings). This should reduce most of the noise and is unfortunately the most I can do on my end.

https://github.com/chrisgrieser/shimmering-obsidian/releases/download/4.6.0/shimmering-obsidian.alfredworkflow

saeedesmaili commented 4 months ago

I think that's still a big improvement! Thank you.

chrisgrieser commented 4 months ago

glad it helps!