Navigating in sections of a large markdown file
- Anmelden oder Registrieren um Kommentare zu schreiben
In Libreoffice, when one opens a document that uses heading styles, it is possible to use the navigation pane (not sure this is the exact name in the English language version) which shows all headings and allows to see where one is and to jump to a particular heading. I attach a screen capture to show how it looks like.
Is there a similar function for markdown files i.e., showing a similar list of headings that shows where one is, and with the option to look into all headings, possibly collapsing/expanding subheadings of a heading, and click on one to jump there in the document, but based on markdown headings rather than on heading styles of an ODF document?
I am asking because I am working with some organization where people are considering adopting markdown for new specifications. Now they use MS word but certain specification files are so large that it is getting very slow and painful to edit them.
I tried opening a large markdown document in LibreOffice but it won't recognize the markdown heading marks as headings. Perhaps a solution would be to have a macro in LibreOffice that applies styles according to markdown heading marks.
Anhang | Größe |
---|---|
navigator.png | 65.54 KB |
> Is there a similar function for markdown files i.e., showing a similar list of headings that shows where one is, and with the option to look into all headings, possibly collapsing/expanding subheadings of a heading, and click on one to jump there in the document, but based on markdown headings rather than on heading styles of an ODF document?
I imagine that such function will come from the text editor.
I found this:
https://community.notepad-plus-plus.org/topic/18808/plugin-request-markdown-navigation-panel
I have not tested it but, according to this page, it looks like you can add a function to the text editor Notepad++ to display a navigation panel of a Markdown document.
I'm new here and this is a slightly older thread but if you're still interested in this look at ghostwriter. I've recently switched to Emacs org mode files but previously used ghostwriter with fairly large markdown files. It offers a sidebar for navigating sections/headings and handled my fairly large markdown file with no problem.
Thanks for the answer. Someone also suggested ghostwriter before, but deleted her username, so the message also disappeared. Indeed, ghostwriter is good at this.
In emacs, I found some command that would collapse a section but never found how to expand it back.
I'm new to Emacs and even newer to using the org mode with .org files. But I'm using Tab to reveal the selected section then Tab again to hide it. Org mode is slightly different than markdown with files ending in .org. It may be worth investigating for your use case. I'm still learning it.
I just looked and in the newest version of Emacs Tab will also collapse and reveal markdown headings. Not sure if it works in older versions.
Shift-Tab can be used globally in a document to reveal or collapse all sections. Great for very long documents. Works in both org mode and markdown.