mrjackphil / obsidian-text-expand

A simple text expand plugin for Obsidian.md
186 stars 12 forks source link

$searchresult sequence broken in obsidian 1.0 #78

Open pete-may opened 1 year ago

pete-may commented 1 year ago

In new Obsidian release (+1.0) I tried to use $searchresult in a query but didn't obtain any results. Then saw this in the developer tools:

Screenshot 2022-12-09 at 6 52 27 AM

The error came from this line: https://github.com/mrjackphil/obsidian-text-expand/blob/d896e5aff557b37daa566c55c147a6b81fee5717/src/sequences/sequences.ts#L276

I changed the line to:

return results.vChildren.children.map(matchedFile => { 

and that restored functionality.

wenbopeng commented 8 months ago

Thank you, saved my confusion