update to .dot-files-laptop

This commit is contained in:
Simon Belmont 2025-04-16 21:03:05 -04:00
parent ae9a611ea6
commit 3bae03e47a
46 changed files with 3332 additions and 0 deletions

View file

@ -0,0 +1,30 @@
#!/bin/sh
get_search_from_EXT_comments (){
_search="${selected_url}"
}
set +f
instances=$(printf "%s\n" "${YTFZF_TEMP_DIR}"/*)
set -f
instance_count=$(echo "$instances" | wc -l)
if [ "$instance_count" -gt 1 ]; then
printf "%s\n" "More than 1 ytfzf instance is running, please select one"
echo "$instances" | sed 's/.*\///' | nl
read -r num
instance="$(echo "$instances" | sed -n "${num}p")"
else
instance="$instances"
fi
read -r selected_url < "${instance}/ids"
[ -z "$selected_url" ] && {
printf "%s\n" "This instance is not playing a video"
}
scrape="comments"
search_source="EXT_comments"