This commit is contained in:
Leon Kowarschick 2020-05-14 14:59:12 +02:00
parent 99cfc82a43
commit 05ec12bd99
3 changed files with 6 additions and 2 deletions

View file

@ -307,7 +307,7 @@ colors: *gruvbox
background_opacity: 1 background_opacity: 1
font: font:
size: 12 size: 14
normal: # >>= >= normal: # >>= >=
#family: JetBrainsMono Nerd Font #family: JetBrainsMono Nerd Font
#family: Iosevka #family: Iosevka

View file

@ -4,7 +4,11 @@ last_selection=$(cat /tmp/fzf-open-conf-last 2>/dev/null)
config_files_path="/home/leon/scripts/bookmarks/config_files" config_files_path="/home/leon/scripts/bookmarks/config_files"
config_file_count=$((2+$(cat "$config_files_path" | wc -l))) config_file_count=$((2+$(cat "$config_files_path" | wc -l)))
options="$last_selection\n$(awk '{print $1}' $config_files_path | grep -v "$last_selection")" options=$(awk '{print $1}' $config_files_path)
if [ -n "$last_selection" ] ; then
options="$last_selection\n$(echo "$options" | grep -v "$last_selection")"
fi
selected=$(echo -e "$options" | fzf --history=/tmp/conf-open-history --cycle --reverse --height "$config_file_count") selected=$(echo -e "$options" | fzf --history=/tmp/conf-open-history --cycle --reverse --height "$config_file_count")
test "$selected" = "" && exit 1 test "$selected" = "" && exit 1
echo "$selected" > /tmp/fzf-open-conf-last echo "$selected" > /tmp/fzf-open-conf-last