chrisgrieser / shimmering-obsidian

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

[Bug]: scratchpad_append_prefix doesn't pass datetime placeholder #75

Closed iys32164 closed 1 year ago

iys32164 commented 2 years ago

Bug Description

At the moment I setup the workflow for my first vault, scratchpad_append_prefix properly passed datetime using dynamic placeholder. After I setup second vault, appending a text to scratchpad fails to write datetime for both vaults. Meanwhile, 'append_prefix' and 'daily_note_append_prefix' still work well.

Result in the scratchpad file looks like:

(2022-04-30, 05:46) via o, fn+enter, manual, while debugging ({date:yyyy-MM-dd}, {time:HH:mm}) via oo, while debugging

Relevant Screenshot

No response

To Reproduce

No response

Debugging Log

[05:46:03.651] Shimmering Obsidian[Script Filter] Processing complete
[05:46:03.662] Shimmering Obsidian[Script Filter] Passing output 'Instant.md' to Call External Trigger
[05:46:03.665] Shimmering Obsidian[External] Processing complete
[05:46:03.667] Shimmering Obsidian[External] Passing output 'Instant.md' to Arg and Vars
[05:46:03.669] Shimmering Obsidian[Arg and Vars] Processing complete
[05:46:03.671] Shimmering Obsidian[Arg and Vars] Passing output '' to Conditional
[05:46:03.673] Shimmering Obsidian[Conditional] Processing complete
[05:46:03.675] Shimmering Obsidian[Conditional] Passing output '' to Keyword
[05:46:24.887] Shimmering Obsidian[Keyword] Processing complete
[05:46:24.890] Shimmering Obsidian[Keyword] Passing output 'via o, fn+enter, manual, while debugging' to Write Text File
[05:46:24.893] Shimmering Obsidian[Write Text File] Processing complete
[05:46:24.896] Shimmering Obsidian[Write Text File] Passing output '/Users/ysim/Library/CloudStorage/OneDrive-개인/Journals/Instant.md' to Conditional
[05:46:24.898] Shimmering Obsidian[Conditional] Processing complete
[05:46:24.900] Shimmering Obsidian[Conditional] Passing output '/Users/ysim/Library/CloudStorage/OneDrive-개인/Journals/Instant.md' to Post Notification
[05:46:40.864] Shimmering Obsidian[Script Filter] Queuing argument '(null)'
[05:47:06.697] Shimmering Obsidian[Keyword] Processing complete
[05:47:06.700] Shimmering Obsidian[Keyword] Passing output 'via oo, while debugging' to Arg and Vars
[05:47:06.702] Shimmering Obsidian[Arg and Vars] Processing complete
[05:47:06.704] Shimmering Obsidian[Arg and Vars] Passing output 'via oo, while debugging' to Run Script
[05:47:06.874] Shimmering Obsidian[Run Script] Processing complete
[05:47:06.890] Shimmering Obsidian[Run Script] Passing output 'Instant
' to Conditional
[05:47:06.893] Shimmering Obsidian[Conditional] Processing complete
[05:47:06.895] Shimmering Obsidian[Conditional] Passing output 'Instant
' to Post Notification

Workflow Configuration

스크린샷 2022-04-30 오전 6 03 34

Version & System Information

-------------------------------
Metadata JSONs: 3/3
-------------------------------
INSTALLED VERSION
macOS: 12.3.1
Alfred: 4.6.5

Obsidian: .asar file missing
This Workflow: 2.22.6
Advanced URI Plugin: 1.21.1
Metadata Extractor: 1.0.1
-------------------------------
LATEST VERSION
Obsidian: 0.14.6 (Insider: 0.14.7)
This Workflow: 2.22.6
Advanced URI Plugin: 1.21.1
Metadata Extractor: 1.0.1
-------------------------------

Make sure you have done the following

EugeneTarasenko commented 2 years ago

What is "scratchpad" and where to find it (how to open it)?

saxasmu commented 2 years ago

I have same issue: scratchpad_append_prefix does NOT pass daytime but ocr_prefix does!

bramses commented 2 years ago

Facing a similar issue w/

Screen Shot 2022-07-16 at 8 24 03 PM
gtewary1 commented 1 year ago

Is there no fix for this issue yet?

chrisgrieser commented 1 year ago

Hi, sorry I didn't have much time to work on this, since I had to look after a lot of other issues (like a complete rewrite of my theme due to Obsidian 1.0).

Should be fixed now.

joshsarvesh commented 1 year ago

Was this actually fixed? For me this still doesn't work in V3.3.3. By the way, there are user configuration and environment variables where the same scratchpad_append_prefix shows. Environment variable scratchpad_append_prefix has no effect on the behavior and user configuration seems to over-ride the environment variable values and user configuration doesn't support datetime placeholder for scratchpad_append_prefix.

image image

chrisgrieser commented 1 year ago

If there are duplications with user config and environment vars, something went wrong when migrating from the Alfred 4 version of the workflow to the Alfred 5 version. You should try a clean install, meaning completely removing the workflow and then installing it again, which should fix that issue.

if the issue still persists then, please open a new bug report, since the form asks for various kinds of information that I need then