diff options
author | Euro20179 <f> | 2021-03-01 22:10:29 -0800 |
---|---|---|
committer | Euro20179 <f> | 2021-03-01 22:10:29 -0800 |
commit | 6484cf0cee4f48aeae2c73e5b0c09ed725fed1d4 (patch) | |
tree | 29e84e48d6b987c8070329b3aade30bdae9704d6 | |
parent | c3b08e1116996bf5793362b8d7aafdf498fddcd1 (diff) | |
download | ytfzf-6484cf0cee4f48aeae2c73e5b0c09ed725fed1d4.tar.gz |
env variable for FZF_DEFAULT_OPTS
-rwxr-xr-x | ytfzf | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -10,6 +10,7 @@ [ -z "$YTFZF_PREF" ] && YTFZF_PREF="" [ -z "$YTFZF_EXTMENU" ] && YTFZF_EXTMENU='dmenu -i -l 30 -p Search:' [ -z "$YTFZF_EXTMENU_LEN" ] && YTFZF_EXTMENU_LEN=220 +[ -z "$YTFZF_ENABLE_FZF_DEFAULT_OPTS" ] && YTFZF_ENABLE_FZF_DEFAULT_OPTS=0 ## files and directories history_file="$YTFZF_CACHE"/ytfzf_hst @@ -23,6 +24,9 @@ thumb_dir="$YTFZF_CACHE"/thumb player="mpv" player_format="mpv --ytdl-format=" +## misc +[ $YTFZF_ENABLE_FZF_DEFAULT_OPTS -eq 0 ] && 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"; @@ -55,6 +59,7 @@ printf " YTFZF_CUR=1 For status bar bodules\n"; printf " YTFZF_EXTMENU=' dmenu -i -l 30'\n"; printf " To use rofi\n"; printf " YTFZF_EXTMENU=' rofi -dmenu -fuzzy -width 1500'\n"; +printf " YTFZF_ENABLE_FZF_DEFAULT_OPTS=0 1 : fzf will use FZF_DEFAULT_OPTS\n"; printf "\n"; printf " For more details refer https://github.com/pystardust/ytfzf\n"; } |