# Folder line in template keeps auto expanding when using ":excluding"

**URL:** https://discourse.notenik.app/t/folder-line-in-template-keeps-auto-expanding-when-using-excluding/826
**Category:** Bug Reports
**Created:** [March 31, 2026, 1:42am UTC](https://discourse.notenik.app/t/folder-line-in-template-keeps-auto-expanding-when-using-excluding/826 "2026-03-31T01:42:05Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![rkp135](https://discourse.notenik.app/letter_avatar_proxy/v4/letter/r/ec9cab/32.png) [@rkp135](https://discourse.notenik.app/u/rkp135)
#### Post date: [March 31, 2026, 1:42am UTC](https://discourse.notenik.app/t/folder-line-in-template-keeps-auto-expanding-when-using-excluding/826/1 "2026-03-31T01:42:05Z")

</div>

The folder field line in the template file is suggested to be :  
`Folder: <folder: excluding: sub 2, sub 3, >￼`

However, after some use of the collection with this template, this line changes to :  
folder:

```auto
Folder: <folder: excluding: (key: ““sub 2”)”, value: ““sub 2”)”), (key: "“sub 3"”, value: "“sub 3"”), (key: ““sub 3”)”, value: ““sub 3”)”), (key: "“sub 2"”, value: "“sub 2"”),> 

```

and so on. Having said that, the functionality remains.

---

<div class="post-metadata">

### Author: ![rkp135](https://discourse.notenik.app/letter_avatar_proxy/v4/letter/r/ec9cab/32.png) [@rkp135](https://discourse.notenik.app/u/rkp135)
#### Post date: [April 6, 2026, 3:25am UTC](https://discourse.notenik.app/t/folder-line-in-template-keeps-auto-expanding-when-using-excluding/826/2 "2026-04-06T03:25:34Z")

</div>

> [@rkp135](#):
>
> `sub`

After many uses, the template file becomes unmanageably large, so that Typora can’t open it.

---

<div class="post-metadata">

### Author: ![hbowie](https://discourse.notenik.app/user_avatar/discourse.notenik.app/hbowie/32/6_2.png) [@hbowie](https://discourse.notenik.app/u/hbowie)
#### Post date: [April 8, 2026, 2:54pm UTC](https://discourse.notenik.app/t/folder-line-in-template-keeps-auto-expanding-when-using-excluding/826/3 "2026-04-08T14:54:01Z")

</div>

Sorry, let me look into this. I should have a beta with a fix soon.

---

<div class="post-metadata">

### Author: ![hbowie](https://discourse.notenik.app/user_avatar/discourse.notenik.app/hbowie/32/6_2.png) [@hbowie](https://discourse.notenik.app/u/hbowie)
#### Post date: [April 8, 2026, 7:40pm UTC](https://discourse.notenik.app/t/folder-line-in-template-keeps-auto-expanding-when-using-excluding/826/4 "2026-04-08T19:40:32Z")

</div>

See the [latest beta](https://discourse.notenik.app/t/notenik-18-8-2-available-for-beta-testing-on-april-8th-2026/828) and let me know if this helps. (You may have to manually edit the template file once to get it back to its original intended state, but hopefully the same error won’t then recur any longer.)

---

<div class="post-metadata">

### Author: ![rkp135](https://discourse.notenik.app/letter_avatar_proxy/v4/letter/r/ec9cab/32.png) [@rkp135](https://discourse.notenik.app/u/rkp135)
#### Post date: [April 9, 2026, 7:11pm UTC](https://discourse.notenik.app/t/folder-line-in-template-keeps-auto-expanding-when-using-excluding/826/5 "2026-04-09T19:11:33Z")

</div>

Yes, the bug seems to be fixed in this beta. Thanks a lot!
