mirror of
https://github.com/junegunn/fzf.git
synced 2026-10-13 00:20:20 +08:00
ADD $FZF_DIRECTION
This commit is contained in:
1 parent
e1de29bc40
commit
9ace1351ff
4 files changed
+22
No files matched your search
@@ -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))
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user