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]: [SOLVED] Screenshot file always created at root of vault #50

Closed seishonagon closed 2 years ago

seishonagon commented 2 years ago

Bug Description

Whatever value the screenshot path variable {var: screenshot_path} takes, the screenshot OCR files OCR_screenshot.md is always generated at the root of the vault.

Turns out the path description in the workflow omits the variable altogether(see screenshot)

The path in the append to file action is: {var:vault_path}/OCR-Screenshot.md

It should be: {var:vault_path}/{var:screenshot_path}/OCR-Screenshot.md

Relevant Screenshot

No response

To Reproduce

Create a screenshot and check it out.

Debugging Log

Not necessary, the fix is in the bug description

Workflow Configuration

not necessary, one variable is affected

Version & System Information

-------------------------------
Metadata JSONs: 3/3
-------------------------------
INSTALLED VERSION
macOS: 12.1
Obsidian: 0.13.21
Alfred: 4.6.1
Workflow: 2.18.6
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.6
Advanced URI Plugin: 1.17.0
Metadata Extractor: 0.3.1
-------------------------------

Make sure you have done the following

chrisgrieser commented 2 years ago

actually not a bug, the setting screenshot_path was simply only meant for image screenshot :P

I have added a separate setting to set the target file for OCR to release 2.19.0 though