Currently we have the "Symbol Viewer" plugin. It could be better named, e.g. "Outline View". Or - depending of the code quality - a new plugin could be created.
Ideas for outlining:
Markdown
See here: https://bugs.kde.org/show_bug.cgi?id=402216, see also https://github.com/loh-tar/KatePlugin-IndexView ("A fork from Kate's plugin SymbolViewer with a couple of improvements"). (@loh.tar: Thanks for the hint, I havn't tried it yet but I will! "Index View" is not the best name because it could refer to a code index etc.).
CMake
- there is an old CMake plugin (see this video: https://steveire.wordpress.com/2016/01/24/cmake-daemon-for-user-tools/ and this non-maintained Kate plugin: https://github.com/steveire/cmakekate/tree/master/plugin)
The outline could be
- add_library and add_executable lines
- links to other CMake files (add_directory calls). This would put the requirement on the Outline View to also be able to link to other files.
- Deeper inspection: Show a list of all files which will be compiled but do not reside in the source tree (because they were auto-generated, like moc files), this list can be retrieved by compile_commands.json. This can be helpful to get an overview over new/unknown projects and for debugging. (Maybe this could be another plugin with a separate view)
With the VariableInterface one could set a variable "CMAKE_BINARY_DIR" once which could be picked up by the OutlineView. The variable points to the build root from where one could read CMakeCache files and then:
- Display a list of currently used variables in the CMakeLists.txt along with their actual value
- Display other variables found in CMakeCache