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: add a setting for tags cache TTL #169

Closed curldivergence closed 4 months ago

curldivergence commented 4 months ago

Feature Requested

Hi, first of all, thanks a lot for this awesome plugin, I'm loving it! One small suggestion for improvement though: maybe the seconds: 600 parameter in scripts/tag-search.js deserves its own setting? For me personally, it was not immediately obvious why the newly added tags didn't appear in the search results even though they had been written to tags.json, and to make this delay customizable, currently it's necessary to edit the workflow's script (for comparison, Metadata Extractor does expose the update period in settings). Thanks!

Relevant Screenshot

No response

Checklist

chrisgrieser commented 4 months ago

thank you for the kind words!

Yeah, I also contemplated doing so, but problem being the workflow already has quite a lot of settings, and having an option for cache refreshing, on top of the metadata refreshing from metadata extractor, likely creates more confusion than being helpful.

Since the metadata extractor works every 30 minutes (without manual refreshing), I set 5 minutes for the Alfred cache, which should be enough for the vast majority of users.

If it helps, you can manually refresh the Alfred cache via:

-- applescript
tell application id "com.runningwithcrayons.Alfred" to reload workflow "de.chris-grieser.shimmering-obsidian"
curldivergence commented 4 months ago

Got it, thanks!