From 8ec8924cd577f71953f8e420af1cd60da92f3300 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Tue, 15 Sep 2026 13:13:36 -0300 Subject: Add optional tree-sitter declaration context --- docs/config.md | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'docs') diff --git a/docs/config.md b/docs/config.md index 99da2fdd..d986855e 100644 --- a/docs/config.md +++ b/docs/config.md @@ -118,6 +118,16 @@ the current value. A `FocusTint` line in a fresh startup configuration disables the tint; a `SyntaxBold` line enables the stronger keyword weight. Those two appearance controls leave focus, selections and editing behavior unchanged. +`TreeContext` toggles sticky declaration headers for the current source pane. +It is off by default and appears in the default pane tag when a tree-sitter +grammar supports that file. `TreeContext on` and `TreeContext off` set it +explicitly. Scrolling inside a function, type or module keeps its enclosing +declarations above the body, with source line numbers, syntax colors and a +subtle background tint. Clicking a header moves the cursor there without +scrolling; scrolling upward reveals that source line as the headers recede. +`Dump` and `Restore` preserve the setting per pane. Customized tags retain +their text; the command can still be executed from any source pane. + `WindowOpacity ` controls the opacity of everything in the SDL window except text and the cursor, which stay fully opaque. Use `WindowOpacity 85` to see the desktop through the editor, or `WindowOpacity 100` to restore full -- cgit v1.3