-
Notifications
You must be signed in to change notification settings - Fork 407
Request: Configurability of vimtex#fold#text() via vimtex_fold_types_defaults #2083
Description
Is your feature request related to a problem? Please describe it.
When folding a LaTeX document with lots of titled environments and little text in-between, you get something that looks like:
Preamble
\begin{document}
\begin{defn}-------------------------
\begin{anki}-------------------------
\begin{defn}-------------------------
\begin{anki}-------------------------
\begin{defn}-------------------------
\begin{defn}-------------------------
\begin{anki}-------------------------
\begin{thm}-------------------------
\begin{cor}-------------------------
\begin{anki}-------------------------
\end{document}
Depending on the level of plaintext in-between, this is difficult to pore through.
Describe the solution you'd like
Increased configurability of the vimtex function vimtex#fold#text() , i.e. a setting that allows folding to instead look like:
Preamble
\begin{document}
\begin{defn}[Open Disc]-------------------------
\begin{anki}[Open Disc]-------------------------
\begin{defn}[Interior, Exterior, and Boundary Points]-------------------------
\begin{anki}[Interior, Exterior, and Boundary Points]-------------------------
\begin{defn}[Closure]-------------------------
\begin{defn}[Open and Closed Sets]-------------------------
\begin{anki}[Open and Closed Sets]-------------------------
\begin{thm}[Fundamental Theorem 1]-------------------------
\begin{anki}[Fundamental Theorem 1]-------------------------
\begin{cor}[Consequence of Fundamental Theorem]-------------------------
\end{document}
Describe alternatives you've considered
Adding comments before the environment with the title of the environment is a temporary workaround, but clutters the document unnecessarily, and obviously won't work for pre-written documents.
Additional context
There is some talk within the documentation about various levels of concealment of certain environments via cmd, but I can't seem to figure out how to use this for my case! In particular, it seems that it is often used to conceal further, but I'd like to show -more- instead.
In general, stuff like the foldtext() is very useful to modify for various reasons, and increased configurability of the function would be nice.