- File type switches: turn a whole type off, such as images or video, for every folder.
- Exclusion rules: written like
.gitignore, they leave out files and folders by name or path.
File type switches
There are 10 types in two groups, Documents and Images, audio and video: PDF, Word documents, Markdown and plain text, web pages, e-books, spreadsheets, presentations, images, audio and video. Each row shows how many files of that type there are now.- Turning a type off: files of that type are no longer scanned, indexed or counted; the ones already in the index are removed after about a minute. You confirm before it happens.
- Turning it back on: the next scan brings the files back and indexes them again. Text already recognized in images and finished transcripts are reused while they’re still cached; otherwise images go through text recognition again and audio and video are transcribed again, which takes a while when there are many.
If you only want to skip recognizing the text in images but still find them by filename, keep the image type on and turn off text recognition (OCR) under Extraction enhancements on the Index tab instead. The other way round, with the image type off, OCR only processes scanned PDFs and the images in the
Notes, Clips and Canvas folders.Exclusion rules
On the Rules tab there is one rule list for All folders and one for each folder. Click Edit or Add rules to open the rule editor. You can also right-click a file or folder in the library and choose Add exclusion rule…: the editor opens with a rule that matches just that item. When the folder already has rules, the menu also offers Edit exclusion rules…. In the library, when a rule names a folder directly, the folder above it shows a funnel icon that opens the editor too.Writing rules
The same as.gitignore, one rule per line:
A few details:
*matches any characters within one level,?matches one character,[abc]matches one of the characters inside, and**on a level of its own matches any number of levels.?and[…]only match plain ASCII characters — unaccented English letters, digits and common symbols; for Chinese, accented letters and the like, use*.- A trailing
/matches folders only. - Rules apply from top to bottom and the last matching rule wins, so an exception goes after the rule it overrides.
- Once a folder is excluded, files inside it can’t be brought back with
!. To leave out a folder but keep one or two of its files, writedrafts/*followed by!drafts/important.md. - Matching ignores the case of the letters A to Z:
*.PNGis the same as*.png. This holds on case-sensitive Linux file systems too, whereDraft/also leaves outdraft/. Other letters, such as accented ones, must match the case of the name:Été/doesn’t leave outété/. \always counts as/, so there’s no backslash escaping; write*,?,[,{and}in a name as[*],[?],[[],[{]and[}]({a,b}matches eitheraorb).- Paths start at the folder’s root; don’t write full disk paths.
All folders and single folders
Each folder applies the All folders rules first and then its own. A folder’s own rules can therefore use! to bring back files that an All folders rule left out.
When folders are nested (say you added both Docs and Docs/Project A), a file is judged only by the rules of the deepest folder that contains it.
The rule editor
- As you type a rule, the line below tells you whether it’s written correctly and how many files it would leave out, and suggests a fix when something is off.
- The preview lists which files exactly. Click a rule in the list to see only the files that rule leaves out.
- You can paste several lines of rules at once; they’re split into rules and checked one by one.
- After you save, a message tells you how many files will leave the index and offers Undo for 10 seconds.
When rules take effect
Excluded files leave the index about a minute after you save, and you can still find them until then. That way, Undo and changing your mind cost no reprocessing. When you lift a rule, the next scan brings the files back and parses them again. If excluded files had been pushed to a cloud library, the next sync deletes them from the cloud as well. With auto sync on, when a lot would be deleted at once, syncing pauses until you confirm by pushing manually; a manual push deletes them right away..ignore files in your folders
Rules can also live in a file: put a file named.ignore in a folder and write it like .gitignore.
- It applies to the folder it sits in and everything below it.
- It doesn’t need a Git repository.
.gitignoreonly works inside Git repositories;.ignoreworks in any folder.- It’s matched exactly like
.gitignore: case-sensitive, and\escapes the next character, so paths use/only. - Editing a
.ignorefile doesn’t start a scan: files already in the index leave it at the next full scan, for example when Linkly AI restarts.
Built-in rules
These always apply and can’t be turned off; they’re also listed at the bottom of the Rules tab:- Hidden files and folders: names starting with
., such as.git,.obsidian,.DS_Store - Folders created by the system and sync apps:
node_modules,__pycache__,#recycle,#SynoRecycle,@eaDir,@Recycle,$RECYCLE.BIN,System Volume Information - Linkly AI’s own data files: the index, settings, logs and other app data (the
ai.linkly.desktopfolder) - Temporary files: the
~$files Office creates while a document is open, andThumbs.db - Files ignored by
.gitignorein a Git repository - Rules written in
.ignorefiles in your folders - Unsupported formats, such as archives, installers and code files
The
Notes, Clips and Canvas folders in the Linkly AI Space are always indexed, whatever the type switches and exclusion rules say — note search, tags and agents reading your notes all rely on them being in the index.Let an agent write rules for you
Rules are saved as plain text in theindexScope field of Linkly AI’s config.json, so an agent can read them.
To have an agent help, tell it what you want to leave out and ask it for the rule text. Then paste the whole text into the rule editor, check the rules and save.
When an agent browses a folder with list and finds nothing indexed in it, the hint mentions that index rules may have left the files out; the explore overview also notes which types aren’t indexed and how many folders have rules.
FAQ
I turned a type off, but its files still show up?
I turned a type off, but its files still show up?
That’s expected. So that you can undo, excluded files leave the index about a minute after the last change to the switches or rules. After that, search and the library no longer show them.
Why doesn't !drafts/important.md work?
Why doesn't !drafts/important.md work?
Because
drafts/ leaves out the whole folder: an excluded folder isn’t scanned anymore, so files inside it can’t be brought back one by one. Write drafts/* followed by !drafts/important.md instead.My rules disappeared after downgrading?
My rules disappeared after downgrading?
Older versions don’t know the rules field and rewrite the config file at startup, so the rules are lost and the excluded files are indexed again. After upgrading again, set them up once more.
Further reading
- Index Settings — every indexing switch and how to troubleshoot
- FAQ — what to do when a file can’t be found even by name
- Linkly AI Space — where notes, clips and canvases are stored

