# Structured numbered headers and nested files/notes in navigaton/file explorer part

**URL:** <https://forum.obsidian.md/t/structured-numbered-headers-and-nested-files-notes-in-navigaton-file-explorer-part/11839>\
**Category:** Feature requests\
**Created:** [January 22, 2021, 3:42pm UTC](https://forum.obsidian.md/t/structured-numbered-headers-and-nested-files-notes-in-navigaton-file-explorer-part/11839 "2021-01-22T15:42:17Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![prezmyl](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/p/41988e/32.png) [@prezmyl](https://forum.obsidian.md/u/prezmyl)\
**Post date:** [January 22, 2021, 3:42pm UTC](https://forum.obsidian.md/t/structured-numbered-headers-and-nested-files-notes-in-navigaton-file-explorer-part/11839/1 "2021-01-22T15:42:17Z")

</div>

### Use case or problem
 It would be a great thing to ease up comprehension and orientation within the text of the note itself in order to use Obsidian also as knowledge base app that would eventually replace a pan and notebook on daily bases
### Proposed solution
 Structured numbered headers and nested files/notes in navigation/file explorer part 
### Current workaround (optional)

### Related feature requests (optional)

> [@Header counter](https://forum.obsidian.md/t/header-counter/3525):
>
> Now that we have this fabulous outline feature, which will allow me transfer a substantial part of my notes to Obsidian, I would like to have the headers and subheaders numbered, like header 1.1. subheader 1.1.1. subsubheader header etc. For Typora someone once pointed me to the css as per the attachment here. It does not work in Obsidian. Can anyone tell me what to change in there? [Header-counter.css](https://forum.obsidian.md/uploads/short-url/r763spaqUoCiRpR9XPsG5nNtEBX.css) (7.7 KB)

---

<div class="post-metadata">

**Author:** ![AtrusRiven](https://forum.obsidian.md/user_avatar/forum.obsidian.md/atrusriven/32/15270_2.png) [@AtrusRiven](https://forum.obsidian.md/u/AtrusRiven)\
**Post date:** [May 17, 2021, 9:20pm UTC](https://forum.obsidian.md/t/structured-numbered-headers-and-nested-files-notes-in-navigaton-file-explorer-part/11839/2 "2021-05-17T21:20:58Z")

</div>

I’d also like to see the possibility to toggle numbered headers. At the moment, if you have different and multiple header levels orientation can get a bit difficult.

**Workarounds** :

- Manual numbering is a workaround but no long-term solution.
- Numbering via CSS (e.g. see [here](https://2ality.com/2012/01/numbering-headingshtml.html)) is possible and easy but has to be set for every vault and does not affect the Outline pane.

Thus, an option in the preferences with a few possible settings (suffixes etc.) would be very nice.

---

<div class="post-metadata">

**Author:** ![AtrusRiven](https://forum.obsidian.md/user_avatar/forum.obsidian.md/atrusriven/32/15270_2.png) [@AtrusRiven](https://forum.obsidian.md/u/AtrusRiven)\
**Post date:** [June 11, 2021, 10:40am UTC](https://forum.obsidian.md/t/structured-numbered-headers-and-nested-files-notes-in-navigaton-file-explorer-part/11839/3 "2021-06-11T10:40:56Z")

</div>

Since the manual implementation of numbered headers via custom CSS is not trivial (e.g. due the doubling in preview and editor mode and the complex nesting of html classes) a core plugin you can toggle the numbering of the headers with is a very important feature for working with structured notes. Is there any planning for implementing this?

---

<div class="post-metadata">

**Author:** ![onlyafly](https://forum.obsidian.md/user_avatar/forum.obsidian.md/onlyafly/32/18149_2.png) [@onlyafly](https://forum.obsidian.md/u/onlyafly)\
**Post date:** [August 8, 2021, 3:34pm UTC](https://forum.obsidian.md/t/structured-numbered-headers-and-nested-files-notes-in-navigaton-file-explorer-part/11839/4 "2021-08-08T15:34:23Z")

</div>

I also missed having numbered headings, so I solved this by writing a plugin.

The plugin works by going through all the headings in your document and numbering them.

Should be available in Obsidian’s community plugins list soon, but until then, you can get it from [GitHub - onlyafly/header-numbering-obsidian: Automatically number headings in a document in Obsidian](https://github.com/onlyafly/header-numbering-obsidian)

---

<div class="post-metadata">

**Author:** ![AtrusRiven](https://forum.obsidian.md/user_avatar/forum.obsidian.md/atrusriven/32/15270_2.png) [@AtrusRiven](https://forum.obsidian.md/u/AtrusRiven)\
**Post date:** [August 10, 2021, 4:51pm UTC](https://forum.obsidian.md/t/structured-numbered-headers-and-nested-files-notes-in-navigaton-file-explorer-part/11839/5 "2021-08-10T16:51:53Z")

</div>

Thanks a lot for creating this plugin! 🥳 Unfortunately, the »How to install« section in Github is not completely clear. It reads that you have to unzip the release but the only zipped file is the source code. When I copy the three non-zipped files to a new plugin folder in my vault the plugin appears, however some settings doesn’t seem to be available (e.g. there’s no button to activate/deactivate the automatic numbering. The whole settings window seems incomplete. Did I do something wrong?

 ![2021-08-10 18_51_00-Zettelkasten - Obsidian v0.12.12](https://forum.obsidian.md/uploads/default/original/3X/a/7/a71487d22264ff77ddc17b753cb54b39826e3fe1.png)

---

<div class="post-metadata">

**Author:** ![AtrusRiven](https://forum.obsidian.md/user_avatar/forum.obsidian.md/atrusriven/32/15270_2.png) [@AtrusRiven](https://forum.obsidian.md/u/AtrusRiven)\
**Post date:** [August 10, 2021, 4:55pm UTC](https://forum.obsidian.md/t/structured-numbered-headers-and-nested-files-notes-in-navigaton-file-explorer-part/11839/6 "2021-08-10T16:55:22Z")

</div>

Does the plugin add text to the text of a note or simply displays the numbering of headings?

---

<div class="post-metadata">

**Author:** ![onlyafly](https://forum.obsidian.md/user_avatar/forum.obsidian.md/onlyafly/32/18149_2.png) [@onlyafly](https://forum.obsidian.md/u/onlyafly)\
**Post date:** [August 10, 2021, 5:21pm UTC](https://forum.obsidian.md/t/structured-numbered-headers-and-nested-files-notes-in-navigaton-file-explorer-part/11839/7 "2021-08-10T17:21:35Z")

</div>

Hi @AtrusRiven: In order to apply the numbering, you have to run the command “Number all headings in document”. Press CMD+P (on Mac) or the equivalent on Windows/Linux, and then start typing the command “Number all headings in document”. It should auto-complete for you.

---

<div class="post-metadata">

**Author:** ![AtrusRiven](https://forum.obsidian.md/user_avatar/forum.obsidian.md/atrusriven/32/15270_2.png) [@AtrusRiven](https://forum.obsidian.md/u/AtrusRiven)\
**Post date:** [August 10, 2021, 5:39pm UTC](https://forum.obsidian.md/t/structured-numbered-headers-and-nested-files-notes-in-navigaton-file-explorer-part/11839/8 "2021-08-10T17:39:01Z")

</div>

Thanks for the clarification. Does the plugin add “hard” text to my existing note text or just display a numbering before each heading?

---

<div class="post-metadata">

**Author:** ![onlyafly](https://forum.obsidian.md/user_avatar/forum.obsidian.md/onlyafly/32/18149_2.png) [@onlyafly](https://forum.obsidian.md/u/onlyafly)\
**Post date:** [August 11, 2021, 11:17am UTC](https://forum.obsidian.md/t/structured-numbered-headers-and-nested-files-notes-in-navigaton-file-explorer-part/11839/9 "2021-08-11T11:17:46Z")

</div>

Hi @AtrusRiven : The plugin adds actual text to the note along with each heading. There is also a command to remove the numbering afterwards if you decide you don’t want the numbering any more. Type CMD+P and then type “header numbering” to see the three commands.

Also, make sure to get the most recent version, as I’ve just fixed some bugs found by other users.

---

<div class="post-metadata">

**Author:** ![AtrusRiven](https://forum.obsidian.md/user_avatar/forum.obsidian.md/atrusriven/32/15270_2.png) [@AtrusRiven](https://forum.obsidian.md/u/AtrusRiven)\
**Post date:** [August 11, 2021, 11:59am UTC](https://forum.obsidian.md/t/structured-numbered-headers-and-nested-files-notes-in-navigaton-file-explorer-part/11839/10 "2021-08-11T11:59:58Z")

</div>

Thanks, @onlyafly, for the explanation! It were very useful to be able to decide whether just to display the header numbering or to add “hard” numbering to the text. But that’s an issue for another plugin or a feature, I suppose.

Do you know when your plugin will be available in Obsidian’s community plugins? Thanks again!

---

<div class="post-metadata">

**Author:** ![onlyafly](https://forum.obsidian.md/user_avatar/forum.obsidian.md/onlyafly/32/18149_2.png) [@onlyafly](https://forum.obsidian.md/u/onlyafly)\
**Post date:** [August 12, 2021, 6:13am UTC](https://forum.obsidian.md/t/structured-numbered-headers-and-nested-files-notes-in-navigaton-file-explorer-part/11839/11 "2021-08-12T06:13:05Z")

</div>

Should be available in a few days on the community list!

I’ve just renamed the plugin as requested by Obsidian’s authors, so you can now find it here: [GitHub - onlyafly/number-headings-obsidian: Automatically number headings in a document in Obsidian\</t](https://github.com/onlyafly/number-headings-obsidian)
