diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2025-04-26 17:46:28 +0300 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2025-04-27 02:55:06 +0300 |
commit | e3498abfd8d95dbd083ccfd1d386f9ad37044a43 (patch) | |
tree | 16c0aee01d9eb728ad13ef529da92e0110d41498 /tests | |
parent | cd4437c0de7382899dab7de465c7a899cabe12ed (diff) | |
download | sciteco-e3498abfd8d95dbd083ccfd1d386f9ad37044a43.tar.gz |
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.
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions