From d4d9b99879d7f870264d4e2e9358c81b5e59981d Mon Sep 17 00:00:00 2001 From: jaydee-coder <187227976+jaydee-coder@users.noreply.github.com> Date: Mon, 4 Nov 2024 05:27:59 -0800 Subject: Allow specifying '{n}' as the OFFSET in the preview-window flag (#4079) * fzf: Allow '{n}' to be used as the OFFSET in the preview-window flag * man: Document using '{n}' as the OFFSET in the preview-window flag --- man/man1/fzf.1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'man') diff --git a/man/man1/fzf.1 b/man/man1/fzf.1 index 9547d3db..2e4bb92f 100644 --- a/man/man1/fzf.1 +++ b/man/man1/fzf.1 @@ -805,7 +805,7 @@ e.g. \fBborder\-rounded\fR (border with rounded edges, default), * \fB[:+SCROLL[OFFSETS][/DENOM]]\fR determines the initial scroll offset of the preview window. - - \fBSCROLL\fR can be either a numeric integer or a single-field index expression that refers to a numeric integer. + - \fBSCROLL\fR can be either a numeric integer or a single-field index expression that refers to a numeric integer or {n} to refer to the zero-based ordinal index of the current item. - The optional \fBOFFSETS\fR part is for adjusting the base offset. It should be given as a series of signed integers (\fB\-INTEGER\fR or \fB+INTEGER\fR). -- cgit v1.2.3