chrisgrieser / shimmering-obsidian

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

[Bug]: Append to note doesn't work for headings #122

Closed kenanmike closed 1 year ago

kenanmike commented 1 year ago

Bug Description

Append to note works for full notes but doesn't work when a heading is selected

Relevant Screenshot

Shimmering Obsidian mizah Mar-12-2023 09-50-34

To Reproduce

No response

Debugging Log

22:23:40.408] Shimmering Obsidian[Hotkey] Processing complete
[22:23:40.414] Shimmering Obsidian[Hotkey] Passing output '' to Script Filter
[22:23:40.427] Shimmering Obsidian[Script Filter] Queuing argument '(null)'
[22:23:43.569] Shimmering Obsidian[Script Filter] Script with argv '(null)' finished
[22:23:43.573] STDERR: Shimmering Obsidian[Script Filter] excludeFilter: undefined
recentFiles length: 10
canvasArray length: 1
starredFiles length: 22
superIconList length: 0
[22:23:43.574] Shimmering Obsidian[Script Filter] {"items":[{"title":"BBC's_100_Greatest_Films_of_the_21st_Century","match":"BBC's 100 Greatest Films of the 21st Century BBC's_100_Greatest_Films_of_the_21st_Century filename name title","subtitle":"▸ wiki","arg":"wiki/BBC's_100_Greatest_Films_of_the_21st_Century.md","quicklookurl":"/Users/michaelbaldwin/Library/Mobile Documents/iCloud~md~obsidian/Documents/Zettelkasten/wiki/BBC's_100_Greatest_Films_of_the_21st_Century.md","type":"file:skipcheck","uid":"wiki/BBC's_100_Greatest_Films_of_the_21st_Century.md","icon":{"path":"icons/note.png"},"mods":{"shift":{"valid":true,"subtitle":"⇧: Browse Links in Note"}}},{"title":"null","match":"null null filename name title","subtitle":"▸ /","arg":"null.md","quicklookurl":"/Users/michaelbaldwin/Library/Mobile Documents/iCloud~md~obsidian/Documents/Zettelkasten/null.md","type":"file:skipcheck","uid":"null.md","icon":{"path":"icons/note.png"},"mods":{"shift":{"valid":true,"subtitle":"⇧: Browse Links in Note"}}},{"title":"empty files","match":"empty files empty files filename name title","subtitle":"▸ /","arg":"empty files.md","quicklookurl":"/Users/michaelbaldwin/Library/Mobile Documents/iCloud~md~obsidian/Documents/Zettelkasten/empty files.md","type":"file:skipcheck","uid":"empty files.md","icon":{"path":"icons/note.png"},"mods":{"shift":{"valid":true,"subtitle":"⇧: Browse Links in Note"}}},{"title":"Zotero","match":"Zotero Zotero filename name title","subtitle":"▸ /","arg":"Zotero.md","quicklookurl":"/Users/michaelbaldwin/Library/Mobile Documents/iCloud~md~obsidian/Documents/Zettelkasten/Zotero.md","type":"file:skipcheck","uid":"Zotero.md","icon":{"path":"icons/note.png"},"mods":{"shift":{"valid":true,"subtitle":"⇧: Browse Links in Note"}}},{"title":"Worship choices","match":"Worship choices Worship choices filename name title","subtitle":"▸ /","arg":"Worship choices.md","quicklookurl":"/Users/michaelbaldwin/Library/Mobile Documents/iCloud~md~obsidian/Documents/Zettelkasten/Worship choices.md","type":"file:skipcheck","uid":"Worship choices.md","icon":{"path":"icons/note.png"},"mods":{"shift":{"valid":true,"subtitle":"⇧: Browse Links in Note"}}},{"title":"Workbench","match":"Workbench Workbench filename name title","subtitle":"▸ /","arg":"Workbench.md","quicklookurl":"/Users/michaelbaldwin/Library/Mobile Documents/iCloud~md~obsidian/Documents/Zettelkasten/Workbench.md","type":"file:skipcheck","uid":"Workbench.md","icon":{"path":"icons/note.png"},"mods":{"shift":{"valid":true,"subtitle":"⇧: Browse Links in Note"}}},
[truncated]
[22:23:50.653] Shimmering Obsidian[Hotkey] Processing complete
[22:23:50.681] Shimmering Obsidian[Hotkey] Passing output '' to Script Filter
[22:23:50.683] Shimmering Obsidian[Script Filter] Queuing argument '(null)'
[22:23:52.762] Shimmering Obsidian[Script Filter] Script with argv '(null)' finished
[22:23:52.787] STDERR: Shimmering Obsidian[Script Filter] excludeFilter: undefined
recentFiles length: 10
canvasArray length: 1
starredFiles length: 22
superIconList length: 0
[22:23:52.788] Shimmering Obsidian[Script Filter] {"items":[{"title":"BBC's_100_Greatest_Films_of_the_21st_Century","match":"BBC's 100 Greatest Films of the 21st Century BBC's_100_Greatest_Films_of_the_21st_Century filename name title","subtitle":"▸ wiki","arg":"wiki/BBC's_100_Greatest_Films_of_the_21st_Century.md","quicklookurl":"/Users/michaelbaldwin/Library/Mobile Documents/iCloud~md~obsidian/Documents/Zettelkasten/wiki/BBC's_100_Greatest_Films_of_the_21st_Century.md","type":"file:skipcheck","uid":"wiki/BBC's_100_Greatest_Films_of_the_21st_Century.md","icon":{"path":"icons/note.png"},"mods":{"shift":{"valid":true,"subtitle":"⇧: Browse Links in Note"}}},{"title":"null","match":"null null filename name title","subtitle":"▸ /","arg":"null.md","quicklookurl":"/Users/michaelbaldwin/Library/Mobile Documents/iCloud~md~obsidian/Documents/Zettelkasten/null.md","type":"file:skipcheck","uid":"null.md","icon":{"path":"icons/note.png"},"mods":{"shift":{"valid":true,"subtitle":"⇧: Browse Links in Note"}}},{"title":"empty files","match":"empty files empty files filename name title","subtitle":"▸ /","arg":"empty files.md","quicklookurl":"/Users/michaelbaldwin/Library/Mobile Documents/iCloud~md~obsidian/Documents/Zettelkasten/empty files.md","type":"file:skipcheck","uid":"empty files.md","icon":{"path":"icons/note.png"},"mods":{"shift":{"valid":true,"subtitle":"⇧: Browse Links in Note"}}},{"title":"Zotero","match":"Zotero Zotero filename name [truncated]

[22:24:00.490] Shimmering Obsidian[Script Filter] Processing complete
[22:24:00.507] Shimmering Obsidian[Script Filter] Passing output '60 Languages/62 Turkish/Tömer/Komposizson.md' to Call External Trigger
[22:24:00.509] Shimmering Obsidian[External] Processing complete
[22:24:00.510] Shimmering Obsidian[External] Passing output '60 Languages/62 Turkish/Tömer/Komposizson.md' to Arg and Vars
[22:24:00.512] Shimmering Obsidian[Arg and Vars] Processing complete
[22:24:00.513] Shimmering Obsidian[Arg and Vars] Passing output '' to Conditional
[22:24:00.515] Shimmering Obsidian[Conditional] Processing complete
[22:24:00.516] Shimmering Obsidian[Conditional] Passing output '' to Arg and Vars
[22:24:00.518] Shimmering Obsidian[Arg and Vars] Processing complete
[22:24:00.520] Shimmering Obsidian[Arg and Vars] Passing output 'Append to note doesn't work for headings' to Run Script
[22:24:00.782] Shimmering Obsidian[Run Script] Processing complete
[22:24:00.801] Shimmering Obsidian[Run Script] Passing output '' to Conditional
[22:24:00.803] Shimmering Obsidian[Conditional] Processing complete
[22:24:00.805] Shimmering Obsidian[Conditional] Passing output '' to Post Notification

Workflow Configuration

image

image image

Version & System Information

-------------------------------
INTERNAL WORKFLOW CONFIGURATION
Vault Path: /Users/michaelbaldwin/Library/Mobile Documents/iCloud~md~obsidian/Documents/Zettelkasten
.obsidian: exists
Metadata JSONs: 4/4
metadata.json String Length: 2978931
-------------------------------
WORKSPACE DATA
'workspace' exists
'workspace.json' exists
-------------------------------
SYSTEM
macOS: 12.6.2
Alfred: 5.0.6
-------------------------------
INSTALLED VERSION
Obsidian: 1.1.16
This Workflow: 3.7.1
Advanced URI Plugin: 1.33.0
Metadata Extractor: 1.1.0
-------------------------------
LATEST VERSION
Obsidian: 1.1.16 (Insider: 1.1.16)
This Workflow: 3.7.1
Advanced URI Plugin: 1.33.0
Metadata Extractor: 1.1.0
-------------------------------

Last working version

3.6.4/5

Make sure you have done the following

chrisgrieser commented 1 year ago

thx, fixed.