chrisgrieser / shimmering-obsidian

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

[Bug]: Fallback search not working #121

Closed Hamzablm closed 1 year ago

Hamzablm commented 1 year ago

Bug Description

I can't use fallback search on alfred. When I try to invoke the search using o and type random_search and I hit enter, it doesn't do anything.

Relevant Screenshot

No response

To Reproduce

No response

Debugging Log

[11:46:52.604 PM] Shimmering Obsidian[Fallback Search] Processing complete
[11:46:52.661 PM] Shimmering Obsidian[Fallback Search] Passing output 'o reddit' to Script Filter
[11:46:52.662 PM] Shimmering Obsidian[Script Filter] Queuing argument '(null)'
[11:46:52.874 PM] Shimmering Obsidian[Script Filter] Script with argv '(null)' finished
[11:46:52.883 PM] STDERR: Shimmering Obsidian[Script Filter] excludeFilter: undefined
recentFiles length: 30
canvasArray length: 0
starredFiles length: 0
superIconList length: 0
[11:46:52.884 PM] Shimmering Obsidian[Script Filter] {"items":[{....

Workflow Configuration

image image image

Version & System Information

-------------------------------
INTERNAL WORKFLOW CONFIGURATION
Vault Path: /Users/hamzabelmellouki/Documents/second_brain
.obsidian: exists
Metadata JSONs: 4/4
metadata.json String Length: 64037
-------------------------------
WORKSPACE DATA
'workspace.json' exists
-------------------------------
SYSTEM
macOS: 13.1
Alfred: 5.0.6
-------------------------------
INSTALLED VERSION
Obsidian: 1.1.15
This Workflow: 3.6.5
Advanced URI Plugin: 1.33.0
Metadata Extractor: 1.1.0
-------------------------------
LATEST VERSION
Obsidian: 1.1.15 (Insider: 1.1.15)
This Workflow: 3.6.5
Advanced URI Plugin: 1.33.0
Metadata Extractor: 1.1.0
-------------------------------

Last working version

No response

Make sure you have done the following

chrisgrieser commented 1 year ago

From your debugging log, I suspect you are misunderstanding how the fallback search is supposed to work.

Given you have a note named "reddit", you can find it via o reddit, or you can find it by typing reddit and then select the fallback search, which will then also show the reddit note.

If you search for o foobar and the note does not exist, selecting the fallback search also will not show anything, does nothing else than running o foobar again

Hamzablm commented 1 year ago

I see, I thought it would do a search like so :

image

How can I search for text inside the whole vault?

chrisgrieser commented 1 year ago

You don't. A full search through the vault would require indexing the vault, which an external app cannot do easily. There are plugins like omnisearch who do that job already better anyway