diff options
author | Euro20179 <f> | 2021-03-01 18:05:34 -0800 |
---|---|---|
committer | Euro20179 <f> | 2021-03-01 18:05:34 -0800 |
commit | c3b08e1116996bf5793362b8d7aafdf498fddcd1 (patch) | |
tree | df2fada4074390d87e17fb9a4c8b0fb2831b4e14 | |
parent | ff22b6e59004e57a7bd8a8f1024d9dda49c9b92d (diff) | |
download | ytfzf-c3b08e1116996bf5793362b8d7aafdf498fddcd1.tar.gz |
impliments FZF_DEFAULT_OPTS
-rwxr-xr-x | ytfzf | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -23,9 +23,6 @@ thumb_dir="$YTFZF_CACHE"/thumb player="mpv" player_format="mpv --ytdl-format=" -## misc -FZF_DEFAULT_OPTS="" - helpinfo () { printf "Usage: %bytfzf %b<search query>%b\n" "\033[1;32m" "\033[1;33m" "\033[0m"; printf " -h Show this help text\n"; @@ -119,7 +116,7 @@ format_fzf () { format_menu () { if [ $is_ext_menu -eq 0 ]; then dep_ck "fzf" - prompt_menu='fzf -m --bind change:top --tabstop=1 --layout=reverse --delimiter="$(printf "\t")" --nth=1,2' + prompt_menu='fzf -m --bind change:top --tabstop=1 --layout=reverse --delimiter="$(printf "\t")" --nth=1,2 $FZF_DEFAULT_OPTS' if [ $is_stdin -eq 0 ] ; then format_fzf else @@ -141,7 +138,7 @@ video_menu () { } video_menu_img () { title_len=400 - format_awk | fzf -m --tabstop=1 --bind change:top --delimiter="$(printf "\t")" --nth=1,2 \ + format_awk | fzf -m --tabstop=1 --bind change:top --delimiter="$(printf "\t")" --nth=1,2 $FZF_DEFAULT_OPTS \ --layout=reverse --preview "sh $0 -U {}" \ --preview-window "left:50%:noborder:wrap" } |