From 02ea4db25f9802e76112f3b4e69aa75e5a9464dc Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Tue, 15 Sep 2026 18:41:15 -0300 Subject: Default location results to stacked addresses and source previews --- docs/config.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'docs/config.md') diff --git a/docs/config.md b/docs/config.md index 5b5641ba..6f3273b9 100644 --- a/docs/config.md +++ b/docs/config.md @@ -150,7 +150,7 @@ results in an output pane. Execute the printed line to apply it again, or supply just the fields to change: ```text -LocationsConfig context:5 tscontext:on tslocations:off +LocationsConfig context:5 tscontext:on tslocations:off layout:stacked ``` - `context` is the number of source lines above and below each match (default @@ -163,8 +163,11 @@ LocationsConfig context:5 tscontext:on tslocations:off (default `on`); continuation lines keep the same alignment without repeating the location. Declaration headers use the same muted color as locations, with or without their locations visible. +- `layout:stacked` (default) puts each location on its own line, followed by its + source preview. Hidden context locations do not add an empty address line. + Use `layout:inline` to put locations beside the source instead. -Result locations share padding in groups of eight matches, so a long path only +In inline layout, result locations share padding in groups of eight matches, so a long path only widens its own group. Context does not count toward the eight; at group boundaries, it aligns with the nearer match (ties stay with the preceding group). Source indentation is preserved. All visible locations start flush left; `n` and `N` -- cgit v1.3