Excalidraw files cause unwanted search results

The excalidraw files will be compressed into base64 strings, which include a lot of letters. When I want to search some short words, the short words are usually included in the base64 strings.

Do I remember right that Excalidraw files have their own filename extension? If so, as a workaround you can add -file:.excalidraw (or whatever it is) to your searches to exclude them. You could bookmark a search containing only that to potentially save some typing (or just always leave it in the search box).

That’s not elegent at all :rofl:

I’m not an Excalidraw user, so you’ll have to check on your end, but if all the .excalidraw files are in one folder you could try excluding that folder, or a regex for all .excalidraw files.

Settings > Files and links → Excluded files

1 Like

Thank you, yeah, it’s partially useful but not perfect. :thinking:

Hi,

I tried both .excalidraw and *.excalidraw filters, and it just doesn’t work for me: drawings’ garbage still appears in the search results even after restarting Obsidian app. Is it a bug, or am I “holding it wrong”?

Meanwhile, -file:.excalidraw inline filter works fine.

Excluded Files doesn’t support asterisk wildcards. I believe this regex should work:

/.*\.excalidraw$/

This didn’t work for me. I have restarted Obsidian. :clinking_glasses:

Can you describe “didn’t work” in more detail?