Recursive outlines #27970
lnay
started this conversation in
Feature Ideas / Enhancements
Recursive outlines
#27970
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Some languages have a way to include the contents of another file, differing semantically from imports in the sense that the author is interested in the full contents of this other file as opposed to just accessing certain exposed items. Some examples are:
\input{otherfile}
or\include{dir}{otherfile}
include other.mk
)@other_script.sql
)%include 'other.sas';
... more niche)In these cases having some sort of collapsible part of the outlines panel which includes the outlines of the included file could be useful.
In the case of LaTeX, this addresses a user request, and in other LaTeX editing tools something similar is present, usually referred to as a "table of contents" feature. For other editors the burden is entirely on the corresponding LaTeX extension but it would be interesting to achieve this feature in a LaTeX-agnostic way in the main editor.
I would imagine having extra capture group names in
outline.scm
which capture the location where the include is done as well as the path to the file included. Ideally there would also be a way to process the latter capture in order to give a valid path in the cases where, say, the file extension is optional in the code, or certain characters need to be escaped in the code (something like a substitute directive might be sufficient).Beta Was this translation helpful? Give feedback.
All reactions