As my vault grows of daily, work, and project-related notes grows, I have more and more notes that begin with the same string, like project or initiative notes that all start with the same client or department name.
When I enter double brackets and start typing a client name, I have ti type more and more characters before the autocomplete will surface the link I need. And many of the autocomplete options are no longer relevant.
Proposed solution
Provide a way to exclude files from appearing in the link auto-complete. Possible ideas:
allow YAML tag where you can exclude an individual file from the index
add index settings where you can list directories to exclude (could also allow exclusions from search or quick switcher)
Current workaround (optional)
Previously, I removed the files from my vault, but then it was a pain when I needed to reference something.
I’d love this too. I currently have a massive folder of pdfs that I use to link notes, but would only like any of them to appear in autocomplete if I specifically type their folder ‘docs/’ first, as I reference them less than 1% of the time when I autocomplete.
+1. I have a bunch of attachments with long/random filenames and whenever I start to enter a tag, invariably there are dozens of useless attachments popping up in the suggestions box. Logseq and Remnote ignore the attachments and it results in a much cleaner interface.
AS far as I understand , this can be defined currently by regex, which has very difficult syntax for beginners. After hours of research I could not find a working solution for my pretty simple problem, where I want to exclude all files containing “~” or “~$” at the beginning. Could there be implemented an easier solution to define the file criteria?
This might work: /^~.+|.+\/~.+/ (I’ve assumed the regex needs to match a whole path). This should match “a path starting with ~ followed by 1 or more of any characters” or a path starting with 1 or more of any character followed by a slash followed by a ~ followed by 1 or more of any characters. Or you could split it into 2 regexes: /^~.+/ and /.+\/~.+/.
Thanks a lot for the help! Unfortunately, It does not work. I have tried some variations as well (see image below). But still, wenn entering [[randomfilename.docx]], then also temporary office files are included like ~$ndomfilename.docx.
But I did not want to hijack a 2 year old thread. This was by accident, sorry. We could continue in my active help thread here:
There I had a similar issue when someone suggested me a solution via CSS snippets. Although the code worked for the helper, it did not in my case. Therefore I guess a plugin is changing the way filenames are indexed.