How do I exclude a folder from logseq indexing

I’m trying to use both obsidan and logseq at the same vault. So to store my obsidian notes, I create a new folder called obsidianNote then start writing new files into it.

In obsidian there is setting to ignore folder, but it doesn’t seem to be the case with logseq, it still pickup all the pages from that folder.

How do I hide folders from logseq? Should I file a feature request?

This is possible in Logseq, although the setting is a bit hidden.

In config.edn (under ... > General), find the following line:

:hidden []

Within the square brackets, add any folders or files you want to hide in Logseq, wrapped in double quotes and separated by a space. For example:

:hidden ["/archived" "/test.md"]

I hope this helps!

2 Likes

Thank you! It works after I edit the file then do a re-index

1 Like

Is there a way to do this that ignores a pattern, such as any file called readme.md?

My use case - I have several git submodules within the pages folder as subdirectories, each with readme files, and logseq gets throws warning messages about name clashes.

I have tried :hidden ["*/readme.md" "*/README.md"] but this does not seem to work.

1 Like

It works with manual re-indexing but Logseq keeps re-indexing all folders when I restart the app. The same behavior has been reported in this GitHub issue.

I have many libraries stored in assets/ folder which shouldn’t be indexed anyway, because these libs are large and contains many README.md files in different subfolders.

I exclude it with

:hidden ["assets"]

and re-index manually, then it works… But just restarting the Logseq app, then it automatically re-index all folders including the huge assets/ which costs me a long time and many warnings of duplication of README.md.

I tried moving these libs out to another folder libs/ instead of assets/ and set :hidden ["libs"], but the result is still the same.

I see the example in config.edn says "../assets/archived", so I tried :hidden ["../assets"] but it doesn’t work at all.

3 Likes