mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-15 06:43:47 -05:00
Do not 'become' inside a tmux popup
fzf --tmux center --bind 'enter:become:vim {}'
This commit is contained in:
@@ -381,6 +381,7 @@ type Options struct {
|
||||
Input chan string
|
||||
Output chan string
|
||||
Tmux *tmuxOptions
|
||||
TmuxScript string
|
||||
Bash bool
|
||||
Zsh bool
|
||||
Fish bool
|
||||
@@ -1882,6 +1883,10 @@ func parseOptions(opts *Options, allArgs []string) error {
|
||||
}
|
||||
case "--no-tmux":
|
||||
opts.Tmux = nil
|
||||
case "--tmux-script":
|
||||
if opts.TmuxScript, err = nextString(allArgs, &i, ""); err != nil {
|
||||
return err
|
||||
}
|
||||
case "-x", "--extended":
|
||||
opts.Extended = true
|
||||
case "-e", "--exact":
|
||||
|
||||
Reference in New Issue
Block a user