Sample Header Ad - 728x90

How to show a table of content (TOC) for a text document in KDE's Kate?

0 votes
1 answer
354 views
Is it possible to show a Table of Content (TOC) in Kate for text documents such as txt files or files without filetype? Maybe it's possible with some setting that I haven't found or with some plugin (maybe there's a plugin for it that isn't available in the options you can select under Settings->Configure Kate). If so, please describe how one can enable a TOC. It would be useful to organize notes, todos and other texts into separate sections. Clicking on a section in the TOC would make you jump to it. The text has the syntax "Normal" (this should work with default settings when simply opening a txt file and *not* require you to select the Markdown syntax for example). For example, if you then write "####This is is a header" somewhere in the txt document, it would display just like all the other text in the file (no color-highlighting or necessarily headers that have a larger font-size) but still make this show up as a section in the TOC which is shown in the panel on the left beneath (not instead) the "Documents" tab if you have that view open there. I created **an issue requesting this feature here ** but haven't received a reply yet and it may already be possible with some plugin/option/separate tool/Kate-fork/workaround. I have Kate v20.12.2 in Debian11/KDE.
Asked by mYnDstrEAm (4708 rep)
May 10, 2022, 11:21 AM
Last activity: Dec 16, 2023, 09:29 PM