# List of files inside folder

**URL:** <https://forum.obsidian.md/t/list-of-files-inside-folder/24009>\
**Category:** Basement\
**Tags:** templater\
**Created:** [September 11, 2021, 12:59pm UTC](https://forum.obsidian.md/t/list-of-files-inside-folder/24009 "2021-09-11T12:59:57Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![imed](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/i/e99b99/32.png) [@imed](https://forum.obsidian.md/u/imed)\
**Post date:** [September 11, 2021, 12:59pm UTC](https://forum.obsidian.md/t/list-of-files-inside-folder/24009/1 "2021-09-11T12:59:57Z")

</div>

### Things I have tried

I’m using this [plugin](https://github.com/SilentVoid13/Templater) and from what I found on the documentation, I can only get the name of the folder with this `<% tp.file.folder() %>`

I already asked for help in the [discussion tab](https://github.com/SilentVoid13/Templater/discussions/364#discussion-3566537), I wanted to know if I could also get some help here.

### What I’m trying to do

I want a template to display a bulleted list of all the files included in a specific folder in this format

```
- [[name of file 1]]
- [[name of file 2]]

```

The folder doesn’t include subfolders, only text files. Is this possible ?

---

<div class="post-metadata">

**Author:** ![mnvwvnm](https://forum.obsidian.md/user_avatar/forum.obsidian.md/mnvwvnm/32/9766_2.png) [@mnvwvnm](https://forum.obsidian.md/u/mnvwvnm)\
**Post date:** [September 11, 2021, 1:25pm UTC](https://forum.obsidian.md/t/list-of-files-inside-folder/24009/2 "2021-09-11T13:25:18Z")

</div>

I’m not sure, but I doubt Templater can do that.  
But you can try another plugins, e.g., [Dataview](https://github.com/blacksmithgu/obsidian-dataview).

---

<div class="post-metadata">

**Author:** ![imed](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/i/e99b99/32.png) [@imed](https://forum.obsidian.md/u/imed)\
**Post date:** [September 11, 2021, 2:05pm UTC](https://forum.obsidian.md/t/list-of-files-inside-folder/24009/3 "2021-09-11T14:05:30Z")

</div>

Dataview give me a list in preview mode, but I need to edit the list, so I need it in edit mode.  
Thank you for your opinion. With all the functions, variables and commands in templater, I thought for sure it would have something like this, guess I was wrong.

---

<div class="post-metadata">

**Author:** ![jwl](https://forum.obsidian.md/user_avatar/forum.obsidian.md/jwl/32/64519_2.png) [@jwl](https://forum.obsidian.md/u/jwl)\
**Post date:** [September 11, 2021, 3:42pm UTC](https://forum.obsidian.md/t/list-of-files-inside-folder/24009/4 "2021-09-11T15:42:24Z")

</div>

Try [Zoottelkeeper](https://github.com/akosbalasko/zoottelkeeper-obsidian-plugin)

---

<div class="post-metadata">

**Author:** ![mnvwvnm](https://forum.obsidian.md/user_avatar/forum.obsidian.md/mnvwvnm/32/9766_2.png) [@mnvwvnm](https://forum.obsidian.md/u/mnvwvnm)\
**Post date:** [September 11, 2021, 3:53pm UTC](https://forum.obsidian.md/t/list-of-files-inside-folder/24009/5 "2021-09-11T15:53:39Z")

</div>

If you want to “edit” the list, then your intent is that the list is not ‘dynamic’, i.e., the list doesn’t update automatically when you add a new file to your target folder.  
In this case, you want a list in a specific moment (when created). For this you can make that list without any plugin:

1. In file explorer select all the files inside your target folder and “drag and drop” them in your note;
2. In Obsidian general search, write `path:yourfolder` and use the function “Copy search results” in the search menu.

---

<div class="post-metadata">

**Author:** ![imed](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/i/e99b99/32.png) [@imed](https://forum.obsidian.md/u/imed)\
**Post date:** [September 11, 2021, 3:53pm UTC](https://forum.obsidian.md/t/list-of-files-inside-folder/24009/6 "2021-09-11T15:53:40Z")

</div>

Thank you for the suggestion @jwl , but this plugin auto-generates that list in one file per folder, I need to manually generate this list in multiple files.

---

<div class="post-metadata">

**Author:** ![imed](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/i/e99b99/32.png) [@imed](https://forum.obsidian.md/u/imed)\
**Post date:** [September 11, 2021, 4:01pm UTC](https://forum.obsidian.md/t/list-of-files-inside-folder/24009/7 "2021-09-11T16:01:32Z")

</div>

The idea was that it will dynamically generate the files under the folder whenever I use the template, but after that yes, it doesn’t update because I need to edit it.

I didn’t know about the drag and drop part. Thank you @mnvwvnm , it’s easy enough to solve my problem.

---

<div class="post-metadata">

**Author:** ![Obsidandnancy](https://forum.obsidian.md/user_avatar/forum.obsidian.md/obsidandnancy/32/17913_2.png) [@Obsidandnancy](https://forum.obsidian.md/u/Obsidandnancy)\
**Post date:** [September 11, 2021, 7:38pm UTC](https://forum.obsidian.md/t/list-of-files-inside-folder/24009/8 "2021-09-11T19:38:49Z")

</div>

There is an amazing plugin called “text {{expand}}” that auto generates lists of notes as links based on a search.

For example, the following snippet (with the plugin installed and activated), creates a list (IN EDIT MODE AND IN PREVIEW MODE) of note links for my notes with the tag “cognitive\_bias” that are not template files with “\_TP” in the file name, and are not files with “000” in the name which I use for auto-generated MoC notes.

Again, the big draw here is that the links populate in Edit Mode, unlike Dataview that only shows output in Preview Mode.

```expander  
cognitive\_bias -\_TP -000  
```

---

<div class="post-metadata">

**Author:** ![imed](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/i/e99b99/32.png) [@imed](https://forum.obsidian.md/u/imed)\
**Post date:** [September 11, 2021, 8:10pm UTC](https://forum.obsidian.md/t/list-of-files-inside-folder/24009/9 "2021-09-11T20:10:35Z")

</div>

Wow, exactly what I needed, thank you so much @Obsidandnancy

---

<div class="post-metadata">

**Author:** ![system](https://forum.obsidian.md/uploads/default/original/3X/b/e/bec35fbd23ab28909bb6bfe62cb32eb82dd34019.png) [@system](https://forum.obsidian.md/u/system)\
**Post date:** [September 12, 2021, 8:10pm UTC](https://forum.obsidian.md/t/list-of-files-inside-folder/24009/10 "2021-09-12T20:10:54Z")

</div>

Closed on September 12, 2021, 8:10pm UTC

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
