added fzf-thumb script. config edits. more fugitive setup. telescope rg setup. disabled auto dapui.

This commit is contained in:
2025-06-20 17:08:09 -05:00
parent 8c809c40db
commit 3252a201c1
4 changed files with 77 additions and 17 deletions

25
env/.local/bin/scripts/fzf-thumb vendored Executable file
View File

@@ -0,0 +1,25 @@
#!/bin/bash
FZF_PREVIEW_LINES=50
FZF_PREVIEW_COLUMN=50
script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
Preview_file="$script_dir/preview-image-typed.sh"
[ "$1" ] && view_dir="$1"
if [ ! "$view_dir" ]; then
echo NO DIR
exit 1
fi
cd "$view_dir"
while :; do
open_file=$(fzf --preview "$Preview_file {} $FZF_PREVIEW_LINES $FZF_PREVIEW_COLUMN")
if [ "$open_file" ]; then
vlc "$open_file" & disown
else
break
fi
done

17
env/.local/bin/scripts/preview-image-typed.sh vendored Executable file
View File

@@ -0,0 +1,17 @@
preview() {
# chafa "$@" -f sixel -s "$(($2-2))x$3" | sed 's/#/\n#/g'
chafa "$1" --clear -f iterm -s $2x$3
}
thumbnail="/tmp/thumbnail.png"
file="$1"; shift
case "$file" in
*.avi|*.gif|*.mp4|*.mkv|*.webm|*.mov)
ffmpegthumbnailer -i "$file" -s 0 -q 5 -o "/tmp/thumbnail.png"
preview "$thumbnail" "$@"
;;
*)
preview "$file" "$@"
esac