ADD $FZF_DIRECTION

This commit is contained in:
Junegunn Choi committed 2025-10-09 00:17:00 +09:00
1 parent e1de29bc40
commit 9ace1351ff
4 files changed
+22

No files matched your search

+5
View File
@@ -1307,6 +1307,11 @@ func (t *Terminal) environImpl(forPreview bool) []string {
env = append(env, "FZF_LIST_LABEL="+t.listLabelOpts.label)
env = append(env, "FZF_INPUT_LABEL="+t.inputLabelOpts.label)
env = append(env, "FZF_HEADER_LABEL="+t.headerLabelOpts.label)
direction := "down"
if t.layout == layoutDefault {
direction = "up"
}
env = append(env, "FZF_DIRECTION="+direction)
if len(t.nthCurrent) > 0 {
env = append(env, "FZF_NTH="+RangesToString(t.nthCurrent))
}