From e3498abfd8d95dbd083ccfd1d386f9ad37044a43 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Sat, 26 Apr 2025 17:46:28 +0300 Subject: support folding via F1 and clicks in the folding margin * Set up the folding margin in the currently empty margin column after the line number. On Gtk, this meant resetting all the marker symbols and their foreground/background colors as well as the margin's colors themselves. This looks like a bug. It's not necessary on Scinterm, which apparently uses the default/linenumber styles by default. Perhaps we should try upgrading Scintilla? * The folding state is considered not to be directly controlled by the language (just like the scroll position and zoom level). That's why we can directly control it by clicking on the margin column. * F1 can be used to toggle all folds globally. * The only support within the C core necessary for folding is to make sure that the current line is unfolded after every keypress. * We might add custom folding commands to the language later on (e.g. F+, F-). In this case, the key macros will have to be changed of course. --- fallback.teco_ini | Bin 2118 -> 2148 bytes 1 file changed, 0 insertions(+), 0 deletions(-) (limited to 'fallback.teco_ini') diff --git a/fallback.teco_ini b/fallback.teco_ini index edd8b7f..954b070 100644 Binary files a/fallback.teco_ini and b/fallback.teco_ini differ -- cgit v1.2.3