added fzf-thumb script. config edits. more fugitive setup. telescope rg setup. disabled auto dapui.
This commit is contained in:
25
env/.local/bin/scripts/fzf-thumb
vendored
Executable file
25
env/.local/bin/scripts/fzf-thumb
vendored
Executable 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
|
||||
Reference in New Issue
Block a user