aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEuro20179 <f>2021-03-01 18:05:34 -0800
committerEuro20179 <f>2021-03-01 18:05:34 -0800
commitc3b08e1116996bf5793362b8d7aafdf498fddcd1 (patch)
treedf2fada4074390d87e17fb9a4c8b0fb2831b4e14
parentff22b6e59004e57a7bd8a8f1024d9dda49c9b92d (diff)
downloadytfzf-c3b08e1116996bf5793362b8d7aafdf498fddcd1.tar.gz
impliments FZF_DEFAULT_OPTS
-rwxr-xr-xytfzf7
1 files changed, 2 insertions, 5 deletions
diff --git a/ytfzf b/ytfzf
index 516cfd7..5528493 100755
--- a/ytfzf
+++ b/ytfzf
@@ -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"
}
Un proyecto texto-plano.xyz