mirror of
https://github.com/junegunn/fzf.git
synced 2026-10-13 00:20:20 +08:00
Add $FZF_RAW for conditional actions
This commit is contained in:
1 parent
0eefcf348e
commit
8f0c91545d
4 files changed
+35
-1
No files matched your search
@@ -1305,6 +1305,13 @@ func (t *Terminal) environImpl(forPreview bool) []string {
|
||||
if len(t.nthCurrent) > 0 {
|
||||
env = append(env, "FZF_NTH="+RangesToString(t.nthCurrent))
|
||||
}
|
||||
if t.raw {
|
||||
val := "0"
|
||||
if t.isCurrentItemMatch() {
|
||||
val = "1"
|
||||
}
|
||||
env = append(env, "FZF_RAW="+val)
|
||||
}
|
||||
inputState := "enabled"
|
||||
if t.inputless {
|
||||
inputState = "hidden"
|
||||
|
||||
Reference in new issue
Block a user