RegEx for Excluded Files by Filetype?

I am trying to filter out my .base files from the Graph View via Settings → Files and Links → Excluded Files.

What I’m trying to do

I’m trying to include a RegEx expression in the Excluded files setting to hide the .base files from my graph view (since they are linked/embedded in my MOC notes).

Things I have tried

I have tried out a variety of what I believe to be proper RegEx filters that should hide the .base files from the graph view, but none seem to work. Filters I’ve tried include: "*.base", ".base", "/.base/", "/(.base)/", and the above without quotes but the .base files still show up. I have successfully hidden folders using this setting but I can’t seem to get RegEx commands to work as expected. Is there something I’m missing about how this setting interprets RegEx?

Did you try to add -file:.base to the “Filter” in the Graph View?

Side note: Once you configure a graph with a set of filters/options/colors/etc, you can “save it” using a bookmark. This way you can have different saved configurations to see your vault under different criteria.

1 Like

This works but I’m still wondering why the RegEx/settings approach doesn’t? I’d rather not have that filter always on in the Graph View.

It works in the general settings if you write it like this: /.*\.base/

Anyway you can always have several different bookmarks to different “views” of your graph, as I explained in the (edited) previous answer.

1 Like

That worked perfectly, thanks! I guess I was thrown by the example text showing that RegEx commands should be contained within quotation marks.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.