chrisgrieser / shimmering-obsidian

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

[Bug]: o keyword in Alfred not giving option to search Obsidian #47

Closed shawnduggan closed 2 years ago

shawnduggan commented 2 years ago

Bug Description

When I trigger Alfred and type o, followed by a space and my search term, only the default search options are available.

I do see the option to search Obsidian flash by, but it is replaced by all the default search options. Using a different keyword, like oos doesn't change what happens.

I have run the setup, and the od command works to open my daily note. So I think the workflow is installed and mostly configured.

Is this a configuration issue with Alfred? Any advice is appreciated.

Relevant Screenshot

Screen Shot 2022-01-22 at 12 04 05 PM Screen Shot 2022-01-22 at 11 58 23 AM

To Reproduce

  1. Trigger Alfred
  2. Type o followed by a space then a search term

Debugging Log

[12:00:53.791] Logging Started... [12:01:00.416] Shimmering Obsidian[Script Filter] Queuing argument '(null)' [12:01:00.727] Shimmering Obsidian[Script Filter] Script with argv '(null)' finished [12:01:00.730] ERROR: Shimmering Obsidian[Script Filter] Code 1: /Users/shawn/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.AAABE307-D7C7-4EEA-92C5-7E71386A21EB/scripts/o_search.js: execution error: Error: SyntaxError: JSON Parse error: Unexpected EOF (-2700)

Version Information

v2.18

Make sure you have done the following

chrisgrieser commented 2 years ago

please provide the information you have skipped (version information, debugging log, screenshot, etc.) – they are there for a reason. I cannot help you without them. ("only default search options" could mean anything, depending on how you set Alfred up)

shawnduggan commented 2 years ago

I have added the requested information. Thanks for getting back to me.

chrisgrieser commented 2 years ago

Could you post a screenshot of your Alfred workflow environment variables?

And run oversions and paste the result here?

shawnduggan commented 2 years ago

Metadata JSONs: 1/3 Metadata not found. Please run osetup and retry.

INSTALLED VERSION macOS: 12.1 Obsidian: 0.13.21 Alfred: 4.6.1 Workflow: 2.18.0 Advanced URI Plugin: 1.17.0 Metadata Extractor: 0.2.4

LATEST VERSION Obsidian: 0.13.19 Obsidian (Insider): 0.13.21 Workflow: 2.18.1 Advanced URI Plugin: 1.17.0 Metadata Extractor: 0.2.4

Screen Shot 2022-01-22 at 12 43 05 PM Screen Shot 2022-01-22 at 12 43 19 PM
chrisgrieser commented 2 years ago

Metadata JSONs: 1/3 Metadata not found.

Yeah, there seems to be some issue with the metadata writing, for whatever reason. Could you run oupdateManually Refresh Metadata and try again?

shawnduggan commented 2 years ago

That fixed it! Thank you. Great workflow - thank you for sharing it.

chrisgrieser commented 2 years ago

Thanks 😊