Add --preview-window=next position (#4801)

Places preview adjacent to input on the list side: above input in the
default layout, below it in --layout=reverse.

  fzf --preview 'cat {}' --preview-window=next

Close #4798
This commit is contained in:
Junegunn Choi authored and GitHub committed 2026-05-23 10:32:19 +09:00
1 parent 67319aed0b
commit 677e854850
5 files changed
+397 -172

No files matched your search

+1
View File
@@ -16,6 +16,7 @@ CHANGELOG
else echo accept
fi'
```
- New `--preview-window=next` position that places the preview adjacent to the input section, on the list side: above the input in the default layout, below it in `--layout=reverse` (#4798).
- Bug fixes
- `change-preview-window` no longer resets `wrap` / `wrap-word` state set via `toggle-preview-wrap` / `toggle-preview-wrap-word`. Layout fields still snap to the preset, so cycling and the empty-token reset behave as before. The new spec can still override by including `wrap` or `nowrap` explicitly. (#4791)