m/fzf
1
0
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:
Junegunn Choi
2024-05-13 23:33:04 +09:00
parent c24256cba3
commit 04dfb14e32
4 changed files with 42 additions and 3 deletions

View File

@@ -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":