diff options
| -rw-r--r-- | README.md | 7 | ||||
| -rwxr-xr-x | fzf-url.sh | 8 | 
2 files changed, 14 insertions, 1 deletions
| @@ -47,6 +47,13 @@ the scrollback history:  set -g @fzf-url-history-limit '2000'  ``` +You can use custom fzf options by defining `@fzf-url-fzf-options`. + +``` +# open tmux-fzf-url in a tmux v3.2+ popup +set -g @fzf-url-fzf-options '-w 50% -h 50% --multi -0 --no-preview --no-border' +``` +  ### 💡 Tips  - Use `tab` to mark multiple urls and open them at once. @@ -4,9 +4,15 @@  #    Email: wenxuangm@gmail.com  #  Created: 2018-04-06 12:12  #=============================================================================== +get_fzf_options() { +    local fzf_options +    local fzf_default_options='-d 35% -m -0 --no-preview --no-border' +    fzf_options="$(tmux show -gqv '@fzf-url-fzf-options')" +    [ -n "$fzf_options" ] && echo "$fzf_options" || echo "$fzf_default_options" +}  fzf_filter() { -    fzf-tmux -d 35% -m -0 --no-preview --no-border +  eval "fzf-tmux $(get_fzf_options)"  }  open_url() { | 
