# How to hide some files (for example by extension or filename)?

**URL:** <https://forum.obsidian.md/t/how-to-hide-some-files-for-example-by-extension-or-filename/45250>\
**Category:** Help\
**Tags:** ui-ux\
**Created:** [October 16, 2022, 10:06am UTC](https://forum.obsidian.md/t/how-to-hide-some-files-for-example-by-extension-or-filename/45250 "2022-10-16T10:06:50Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![rigmarole](https://forum.obsidian.md/user_avatar/forum.obsidian.md/rigmarole/32/29973_2.png) [@rigmarole](https://forum.obsidian.md/u/rigmarole)\
**Post date:** [January 17, 2023, 7:30pm UTC](https://forum.obsidian.md/t/how-to-hide-some-files-for-example-by-extension-or-filename/45250/7 "2023-01-17T19:30:24Z")

</div>

Ryan replied to me, and said “Excluded files” should work. But you might have to use **Regex** to make it work.

Also, any files in this list will still show up in search, but they will be de-prioritized, and show up at the bottom of search results.

An example image below. You’ll have to figure it out for .ini files specifically.

I don’t know, but it might be:

`"/(.ini)/"`  
`"/.ini/"`

 ![CleanShot_2023-01-17_at_15.50.54](https://forum.obsidian.md/uploads/default/original/3X/c/d/cd800bfd81a91b7c85ac28febfe94ba146a6cca4.png)

* * *

Some potentially related threads:

> [@\### The regex in \`Excluded Files\` doesn't work as expected](https://forum.obsidian.md/t/the-regex-in-excluded-files-doesnt-work-as-expected/43648):
>
> Things I have tried Hello everybody, I’m new to obsidian. It is really a fantastic knowledge base app. Since I want to use obsidian as my knowledge base, it will handle a lot of files and folders. So I want filter out some misc files when do search or something. For example, ignore all files under a certain pattern folder like folders preceded by an underscore \_\*, \_folder\_ignored, … I noticed the feature Options -\> Files & Links -\> Excluded Files. What I’m trying to do I have search in th…

> [@Config to ignore/hide select files and folders](https://forum.obsidian.md/t/config-to-ignore-hide-select-files-and-folders/4186):
>
> Would be useful in some cases to be able to have Obsidian ignore specified files/directories, optionally at different scopes too. for example I use Obsidian to manage content on a Jekyll-generated website. This means that in my Vault I have all the templates, assets, plugins, includes as well as the generated site’s files. I can imagine editing .obsidian/config “ignore” directives such as "ignore": { "scopes": { "file\_viewer" : ( "\_site","\_includes","\_layouts","\_assets","\_data" …

---

_[View the full topic](https://forum.obsidian.md/t/how-to-hide-some-files-for-example-by-extension-or-filename/45250)._
