# Section-templates

**URL:** <https://community.silverbullet.md/t/section-templates/827>\
**Category:** Ideas\
**Created:** [August 10, 2024, 9:45pm UTC](https://community.silverbullet.md/t/section-templates/827 "2024-08-10T21:45:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![xeor](https://community.silverbullet.md/user_avatar/community.silverbullet.md/xeor/32/513_2.png) [@xeor](https://community.silverbullet.md/u/xeor)\
**Post date:** [August 10, 2024, 9:45pm UTC](https://community.silverbullet.md/t/section-templates/827/1 "2024-08-10T21:45:32Z")

</div>

In my day to day notes I end up having a lot of the same sections. I don’t however want those sections in all my notes.

Example, a note can start with just a braindump. Then I want an “Info” section, then a “Journal” section, and maybe later a “Resources” section. After a while, a note about a project or a thing ends up looking like

```auto
# Info

* Some hard facts
* More hard facts

# Resources

* Link1
* Phone number

# Journal

## 2024-08-10 #call [[Some Person]]

Some call notes

```

What I would like is a way to have a list of possible sections (section-templates?). That are only added if they are not already there. If they are there, the pointer should move to that section.

A more advanced section is the “Journal” section. If that is called, a new journal entry should be added (including the heading if it is missing).

Is something like this possible to add now? Or is there some core functionality that needs to come first? Any others having a similar workflow?

---

<div class="post-metadata">

**Author:** ![terr-steak](https://community.silverbullet.md/user_avatar/community.silverbullet.md/terr-steak/32/192_2.png) [@terr-steak](https://community.silverbullet.md/u/terr-steak)\
**Post date:** [August 10, 2024, 11:43pm UTC](https://community.silverbullet.md/t/section-templates/827/2 "2024-08-10T23:43:21Z")

</div>

I think what you want here is a [Snippet](https://silverbullet.md/Snippets). Then you can use the slash commands to insert the pieces you want, wherever you want.

---

<div class="post-metadata">

**Author:** ![xeor](https://community.silverbullet.md/user_avatar/community.silverbullet.md/xeor/32/513_2.png) [@xeor](https://community.silverbullet.md/u/xeor)\
**Post date:** [August 11, 2024, 6:58pm UTC](https://community.silverbullet.md/t/section-templates/827/3 "2024-08-11T18:58:36Z")

</div>

Snippets solves some of the problem, but I’m thinking about a more fancy version. Here is a better example

- Start document

```auto
New ikea closet in man-cave.

```

- Trigger the section-info snippet

```auto
New ikea closet in man-cave.

# Info
^ <-- starts writing here

```

- Trigger section-journal

```auto
New ikea closet in man-cave.

# Info
* width: 120cm
* height: 200cm

# Journal

## 2024-08-11

They are out of stock

```

- Trigger section-info again. This time, it doesnt insert anything but just set the cursor at info. Ready to add some more info

```auto
New ikea closet in man-cave.

# Info
* width: 120cm
* height: 200cm<cursor insertet here>

# Journal

## 2024-08-11

They are out of stock

```

- Trigger section-journal. This time, it sees it is already there so it adds a new entry instead

```auto
New ikea closet in man-cave.

# Info
* width: 120cm
* height: 200cm
* depth: 60cm

# Journal

## 2024-08-11

They are out of stock

## 2024-08-12

Got info that they will get back in stock next month.

```

I think sections like this is used by many people, not only info or journal, but probably more. I don’t need them in all notes, but it would be nice to have them handy and standarized when needed.

---

<div class="post-metadata">

**Author:** ![terr-steak](https://community.silverbullet.md/user_avatar/community.silverbullet.md/terr-steak/32/192_2.png) [@terr-steak](https://community.silverbullet.md/u/terr-steak)\
**Post date:** [August 12, 2024, 9:16pm UTC](https://community.silverbullet.md/t/section-templates/827/4 "2024-08-12T21:16:22Z")

</div>

Ahhh I got ya now, yea that use-case would work awesome for me too as my daily page has sections for work and personal and it would be nice to easily insert in the relevant section as I find that my daily page is getting rather large with sections for home-life, work-life and the associated queries that go with it. I’ll fiddle with it a bit and see where I get. Seems doable given the everything has a reference location.
