From 8dad85197f77c352bf2cf1a56a7c52625eaa9c3d Mon Sep 17 00:00:00 2001 From: Joe Lim <50560759+joelim-work@users.noreply.github.com> Date: Thu, 4 Sep 2025 15:38:57 +1000 Subject: [PATCH] Remove padding for text previews (#2131) * Remove offset for text previews * Update `CHANGELOG.md` * reword --- CHANGELOG.md | 1 + ui.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 94d56ec8..cbc2b5f5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), - The `dircache` option has now been removed (#2110). This was previously used as a workaround to disable the directory cache since at the time changes to files were not detected reliably, but this is no longer the case. - The experimental `locale` option has been removed in favor of the recommendation to use `addcustominfo`/`set sortby custom` for custom sorting (#2111). - The existing `doc` command has been renamed to `help` so that it is more natural for users (#2125). +- Text previews are no longer displayed with a padding of two spaces by default (#2131). Instead, a custom padding can be added in the `previewer` script, for example by piping to `sed 's/^/ /'`. ### Added diff --git a/ui.go b/ui.go index 0d807b65..c35b6f99 100644 --- a/ui.go +++ b/ui.go @@ -276,7 +276,7 @@ func (win *win) printReg(screen tcell.Screen, reg *reg, previewLoading bool, sxs break } - st = win.print(screen, 2, i, st, l) + st = win.print(screen, 0, i, st, l) } }