# Show / hide which file types to be shown in file explorer

**URL:** <https://forum.obsidian.md/t/show-hide-which-file-types-to-be-shown-in-file-explorer/764>\
**Category:** Feature requests\
**Tags:** valuable\
**Created:** [May 29, 2020, 12:55pm UTC](https://forum.obsidian.md/t/show-hide-which-file-types-to-be-shown-in-file-explorer/764 "2020-05-29T12:55:58Z")\
**Posts on this page:** 19\
**Page:** 2

<div class="post-metadata">

**Author:** ![Lise](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/l/898d66/32.png) [@Lise](https://forum.obsidian.md/u/Lise)\
**Post date:** [January 12, 2021, 1:47am UTC](https://forum.obsidian.md/t/show-hide-which-file-types-to-be-shown-in-file-explorer/764/22 "2021-01-12T01:47:09Z")

</div>

### Use case or problem

I don’t use assets folders. Instead I rename all assets the same name as the file ending with a number, and put them in the same folder. If I need to move a file outside Obsidian I instantly know which other files to grab.

In Windows explorer I have a batch file that auto hides everything except the md files, and with Explorer set to “hide files” (the left column in the screenshot)I get a nice clean look of my md files, but it’s just a click of a mouse to display all hidden files if I must (the right column)

 ![20210111_203614](https://forum.obsidian.md/uploads/default/original/2X/8/866791c776db00ffa80bcd5cafaa5f7a41e718fc.png)

I would like a similar “hidden items” type checkbox for my Obsidian navigation pane on the left. I need to display the png and jpg etc files when I first save them in my folder so that I can select them and rename them the same as the relevant md file. But once that’s done, they just all get in the way.

 ![20210111_204049](https://forum.obsidian.md/uploads/default/original/2X/d/dab279b6b45a0af38d285a8f51a7e03358c92760.png)

### Proposed solution

Perhaps this is a plugin issue, in which case I trust the moderators to move my request.

The best solution is to have a simple checkbox at the top of the navigation pane where we currently have the following

![image](https://forum.obsidian.md/uploads/default/original/2X/8/899935a2fa5b50ae1297dc7cc5871f19d20ef1ef.png)

It would just show/hide hidden items. Of course there would be a setting to determine which extensions we want to show/hide.

### Current workaround (optional)

None that I can see.

Just found this similar thread: [Show / hide which file types to be shown in file explorer](https://forum.obsidian.md/t/show-hide-file-types-to-be-shown-in-file-explorer/764)

---

<div class="post-metadata">

**Author:** ![bjensen](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/b/3ec8ea/32.png) [@bjensen](https://forum.obsidian.md/u/bjensen)\
**Post date:** [March 25, 2022, 1:53pm UTC](https://forum.obsidian.md/t/show-hide-which-file-types-to-be-shown-in-file-explorer/764/23 "2022-03-25T13:53:43Z")

</div>

Implementing something like this would be great and I think grow to a large software engineer community

**Use Case**  
Markdown files within a code base that have ReadMe.md in subfolders or projects. I have tried this currently with Obsidian with my Home Lab and personal projects folder but it slows Obsidian way down, almost to unusable levels.

If I could put in a .obignore file just like .gitignore in git, then I could keep everything out that is just extra to the codebase.

The only thing currently available is to ignore a whole folder and that becomes way too cumbersome with multiple projects. This reason alone took me away from using the mobile version as it kept freezing up.

Hopefully this can get some traction!!  
Thanks for an awesome platform thus far!

---

<div class="post-metadata">

**Author:** ![larsderichter](https://forum.obsidian.md/user_avatar/forum.obsidian.md/larsderichter/32/13046_2.png) [@larsderichter](https://forum.obsidian.md/u/larsderichter)\
**Post date:** [April 10, 2022, 11:48am UTC](https://forum.obsidian.md/t/show-hide-which-file-types-to-be-shown-in-file-explorer/764/24 "2022-04-10T11:48:27Z")

</div>

I was going to suggest exactly that: some way to ignore/hide folders/files using a gitignore-like syntax.

---

<div class="post-metadata">

**Author:** ![aknisly](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/a/8dc957/32.png) [@aknisly](https://forum.obsidian.md/u/aknisly)\
**Post date:** [May 12, 2022, 8:57pm UTC](https://forum.obsidian.md/t/show-hide-which-file-types-to-be-shown-in-file-explorer/764/25 "2022-05-12T20:57:04Z")

</div>

I know this is old, but I just spent several hours browsing the forum because I was too dense to find both of these features in settings. I don’t how long they’ve been there, but they work exactly as expected on v. 0.14.6. Wow…what devs–what a product!

---

<div class="post-metadata">

**Author:** ![teoando](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/t/dec6dc/32.png) [@teoando](https://forum.obsidian.md/u/teoando)\
**Post date:** [September 30, 2022, 11:47am UTC](https://forum.obsidian.md/t/show-hide-which-file-types-to-be-shown-in-file-explorer/764/26 "2022-09-30T11:47:37Z")

</div>

So there is a way to do this now? I cannot find it in the settings… Can you advice where to find it?

Thanks!

---

<div class="post-metadata">

**Author:** ![Antony\_Hoang](https://forum.obsidian.md/user_avatar/forum.obsidian.md/antony_hoang/32/34512_2.png) [@Antony\_Hoang](https://forum.obsidian.md/u/Antony_Hoang)\
**Post date:** [October 18, 2022, 9:10am UTC](https://forum.obsidian.md/t/show-hide-which-file-types-to-be-shown-in-file-explorer/764/27 "2022-10-18T09:10:13Z")

</div>

The solution is you make a custom css file to config which kind of file should appear.

```css
div[data-path$='.png']{
	display: none;
}

```

You can read more in this question

> [@How to hide the image section in the Obsidian tree directory section](https://forum.obsidian.md/t/how-to-hide-the-image-section-in-the-obsidian-tree-directory-section/39688/2):
>
> In the Obsidian settings you could define a folder where all attachments go when inserted in a note. So they would be out of the way.

---

<div class="post-metadata">

**Author:** ![limex](https://forum.obsidian.md/user_avatar/forum.obsidian.md/limex/32/36220_2.png) [@limex](https://forum.obsidian.md/u/limex)\
**Post date:** [November 14, 2022, 4:48pm UTC](https://forum.obsidian.md/t/show-hide-which-file-types-to-be-shown-in-file-explorer/764/29 "2022-11-14T16:48:22Z")

</div>

I tweaked the above css to establish the following:

- Paste Screenshots to a Page in a folder.
- The Screenshot File is stored in the root of the vault with Filename like “Pasted image 20221114171851.png”
- Mark the Screenshot File in grey as a candidate for manual move.
- Move this image file manually to the same folder as the page with the embedded folder
- Hide the Screenshot File in the Folder to keep the File Explorer clean.

This is established by adding this css to your themes css file:

```auto
/* Hide Image Files selective */

/* Format Pasted Image in any folder and root */ 
div[data-path*="Pasted image"]{
  display: none;
}

/* Format Pasted Image in the Root */
  div[data-path^="Pasted image"]{
    color: #9999996e;
    display: flex;
  }

```

I am no css expert, feedback for improving the css is always appreciated.

---

<div class="post-metadata">

**Author:** ![DevSimon](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/d/7ba0ec/32.png) [@DevSimon](https://forum.obsidian.md/u/DevSimon)\
**Post date:** [April 17, 2023, 8:07am UTC](https://forum.obsidian.md/t/show-hide-which-file-types-to-be-shown-in-file-explorer/764/30 "2023-04-17T08:07:09Z")

</div>

Same here. I tried to hide all word documents and PDFs (backups after migrating from onenote). I just added the following in my main.css file and turned that on in preferences \> appearance:

```css
div[data-path$="docx"],
div[data-path$="docx"] + div.nav-folder-children {
  display: none;
}

div[data-path$=".pdf"] {
  display: none;
}

```

You can change this for any file/folder/file type! Love the fact that Obsidian is so customizable!

---

<div class="post-metadata">

**Author:** ![LangerNZ](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/l/ecd19e/32.png) [@LangerNZ](https://forum.obsidian.md/u/LangerNZ)\
**Post date:** [August 22, 2023, 11:41pm UTC](https://forum.obsidian.md/t/show-hide-which-file-types-to-be-shown-in-file-explorer/764/31 "2023-08-22T23:41:18Z")

</div>

I found this post because I want to show .txt files in Obsidian. I sometimes have notes with special characters in the contents such as “[”. I don’t want to escape them with \ because I copy/paste the contents. I just don’t want Markdown enabled for the file so that it displays nicely.

I found death-au’s plugin “txt as md” in the Community Plugins, which allows .txt files to show in Obsidian, and doesn’t format them as .md files in the editor.

---

<div class="post-metadata">

**Author:** ![wefefino](https://forum.obsidian.md/user_avatar/forum.obsidian.md/wefefino/32/52433_2.png) [@wefefino](https://forum.obsidian.md/u/wefefino)\
**Post date:** [August 28, 2023, 10:54pm UTC](https://forum.obsidian.md/t/show-hide-which-file-types-to-be-shown-in-file-explorer/764/32 "2023-08-28T22:54:05Z")

</div>

+1! Please, I want to keep some PSD files inside Obsidian (my second brain), I don’t need to Visualize the content of the PSDs in Obsidian, but I would like to see the file and link them, as I need to point those PSDs templates.

---

<div class="post-metadata">

**Author:** ![lhagan](https://forum.obsidian.md/user_avatar/forum.obsidian.md/lhagan/32/54130_2.png) [@lhagan](https://forum.obsidian.md/u/lhagan)\
**Post date:** [September 23, 2023, 3:00am UTC](https://forum.obsidian.md/t/show-hide-which-file-types-to-be-shown-in-file-explorer/764/33 "2023-09-23T03:00:04Z")

</div>

Here’s another CSS variation: this one hides any file that _isn’t_ markdown. In my vault, it leaves behind a number of empty folders – still trying to figure out how to hide those.

```auto
.nav-file-title:not([data-path$='.md']) {
	display: none;
}

```

---

<div class="post-metadata">

**Author:** ![bardbess](https://forum.obsidian.md/user_avatar/forum.obsidian.md/bardbess/32/25142_2.png) [@bardbess](https://forum.obsidian.md/u/bardbess)\
**Post date:** [October 3, 2023, 2:13pm UTC](https://forum.obsidian.md/t/show-hide-which-file-types-to-be-shown-in-file-explorer/764/34 "2023-10-03T14:13:39Z")

</div>

> [@lhagan](#):
>
> “it leaves behind a number of empty folders”

This should work provided you keep the folder expanded.

```auto
.tree-item.nav-folder:not(.is-collapsed):has([data-path$='.md']) {
    display: block;
}
.tree-item.nav-folder:not(.is-collapsed) {
    display: none;

```

> ⚠ Once the folder is collapsed the items inside it are removed from the `dom` so removing the `.is-collapsed` class from this snippet will hide all your folders.

---

<div class="post-metadata">

**Author:** ![Lise](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/l/898d66/32.png) [@Lise](https://forum.obsidian.md/u/Lise)\
**Post date:** [October 16, 2024, 10:37pm UTC](https://forum.obsidian.md/t/show-hide-which-file-types-to-be-shown-in-file-explorer/764/35 "2024-10-16T22:37:43Z")

</div>

There is still no solution to this, is there? I realize there are css solutions, but there still isn’t an easy way of clicking on something in the navigation pane to say “show all files”/“hide all files except md files”.

I can’t use css because I need my images and pdfs to display so that I can slide them over to my new notes.

Changing the settings all the time is too cumbersome. I need a button I can quickly toggle.

---

<div class="post-metadata">

**Author:** ![tuffdog8989](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/t/e0b2c6/32.png) [@tuffdog8989](https://forum.obsidian.md/u/tuffdog8989)\
**Post date:** [October 17, 2024, 5:06pm UTC](https://forum.obsidian.md/t/show-hide-which-file-types-to-be-shown-in-file-explorer/764/36 "2024-10-17T17:06:45Z")

</div>

This was good enough for me. Might not be exactly what you want but worth a try.

Settings → Files and Links → Detect all file extensions (Toggle this on)

---

<div class="post-metadata">

**Author:** ![Lise](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/l/898d66/32.png) [@Lise](https://forum.obsidian.md/u/Lise)\
**Post date:** [October 21, 2024, 5:21pm UTC](https://forum.obsidian.md/t/show-hide-which-file-types-to-be-shown-in-file-explorer/764/37 "2024-10-21T17:21:13Z")

</div>

Thanks for the info.  
I tried it, and there are 2 things that prevent this from being a good solution for me.

1. I can’t create a hotkey to toggle this (it doesn’t appear in the list of things that can be assigned a hotkey)
2. more important, it requires a full reload of the vault to take effect.

So yes, doable, but not as seamless as I need.

---

<div class="post-metadata">

**Author:** ![Obseedee](https://forum.obsidian.md/user_avatar/forum.obsidian.md/obseedee/32/60824_2.png) [@Obseedee](https://forum.obsidian.md/u/Obseedee)\
**Post date:** [December 5, 2024, 12:44pm UTC](https://forum.obsidian.md/t/show-hide-which-file-types-to-be-shown-in-file-explorer/764/38 "2024-12-05T12:44:01Z")

</div>

Another +1 for this feature.

I’ve been using Obsidian for almost one year now. “Attachment files” (.jpg, .png, .pdf, .pptx and so on) getting in the way of regular pages (.md files) could very well be the no. 1 friction problem I encountered after switching from OneNote.

Mind you: being able to see all file types in the File Explorer can be very useful, _but not at all times._ In its most simple form, I can hide non-.md files in the File Explorer with a simple toggle.

However, it would be nice to have an “Excel filter”-like panel to quickly enable/disable file types in the File Explorer. Such a filter could be put behind a single button (that should have an indicator when filtering is applied!).

![20241205_Mock-up_FileExplorer_filterbutton](https://forum.obsidian.md/uploads/default/original/3X/9/5/95702ca681704909c63dc77497ce71f8324df446.png)

I made a little mock-up to illustrate the idea.  
 ![20241205_Mock-up_FileExplorer_filterpanel](https://forum.obsidian.md/uploads/default/original/3X/9/a/9abbe299fe969140838725ba19c2150f6756ef47.png)

You can quickly select all or none of the file types. So only showing folders is a possibility by deselecting all checkboxes in a single click. You can also pin file types within the alphabetically arranged list that you frequently use for filtering (I took inspiration from Firefox’s new tab page). Say you often create links to Excel files, but .xlsx is down the list, then you could pin .xlsx to stay on top of the list.

I think this is a QoL improvement that could benefit many (novice and power) users!  
Thanks for reading!

---

<div class="post-metadata">

**Author:** ![Lise](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/l/898d66/32.png) [@Lise](https://forum.obsidian.md/u/Lise)\
**Post date:** [December 5, 2024, 6:32pm UTC](https://forum.obsidian.md/t/show-hide-which-file-types-to-be-shown-in-file-explorer/764/39 "2024-12-05T18:32:22Z")

</div>

[Obseedee](https://forum.obsidian.md/u/Obseedee)

I love this way of implementing the idea.

The more I use Obsidian the more I need this feature. It is at the point now that it interferes with my workflow.

Too often I have to spend my time expanding the size of the tree on the left to distinguish between filenames in order to find the md vs png.  
 ![image](https://forum.obsidian.md/uploads/default/original/3X/f/0/f0a88b79f7f3b200a1d3c42c9f91059aac8c3ccc.png)

![image](https://forum.obsidian.md/uploads/default/original/3X/4/f/4f22281fb226ebdf366e9c8406d425494fd692af.png)

---

<div class="post-metadata">

**Author:** ![Nocturnal](https://forum.obsidian.md/user_avatar/forum.obsidian.md/nocturnal/32/90440_2.png) [@Nocturnal](https://forum.obsidian.md/u/Nocturnal)\
**Post date:** [February 13, 2026, 6:33pm UTC](https://forum.obsidian.md/t/show-hide-which-file-types-to-be-shown-in-file-explorer/764/40 "2026-02-13T18:33:18Z")

</div>

+1 Would be nice to have this feature.

---

<div class="post-metadata">

**Author:** ![Nocturnal](https://forum.obsidian.md/user_avatar/forum.obsidian.md/nocturnal/32/90440_2.png) [@Nocturnal](https://forum.obsidian.md/u/Nocturnal)\
**Post date:** [February 13, 2026, 6:34pm UTC](https://forum.obsidian.md/t/show-hide-which-file-types-to-be-shown-in-file-explorer/764/41 "2026-02-13T18:34:57Z")

</div>

Precisely looking for these features.

[Previous page](https://forum.obsidian.md/t/show-hide-which-file-types-to-be-shown-in-file-explorer/764.md?page=1)
