Update flash
moved CARD_POOL_SIZE down so the CURRENT_DECK variable could be used to get the number of cards. works so far but I know *very little* about bash scripting
This commit is contained in:
parent
47a635a645
commit
30c293419b
3
flash
3
flash
|
|
@ -24,10 +24,10 @@
|
||||||
#==============================================================#
|
#==============================================================#
|
||||||
|
|
||||||
# USER CUSTOMIZABLE VARIABLES
|
# USER CUSTOMIZABLE VARIABLES
|
||||||
CARD_POOL_SIZE=10 ######## How large the pool size is for shuf to draw from
|
|
||||||
SEARCH_DEPTH=999 ######### How many levels to recursively search for .csv's in .local/share/flash
|
SEARCH_DEPTH=999 ######### How many levels to recursively search for .csv's in .local/share/flash
|
||||||
PREVIEWER='bat' ########## What fzf previewer to use when searching through decks
|
PREVIEWER='bat' ########## What fzf previewer to use when searching through decks
|
||||||
CURR_DECK_DISPLAY="file" # Options are 'file' or 'path'
|
CURR_DECK_DISPLAY="file" # Options are 'file' or 'path'
|
||||||
|
######## How large the pool size is for shuf to draw from
|
||||||
|
|
||||||
# ANSI FOREGROUND ESCAPE COLORS
|
# ANSI FOREGROUND ESCAPE COLORS
|
||||||
RED='\033[0;31m'
|
RED='\033[0;31m'
|
||||||
|
|
@ -222,6 +222,7 @@ file) CURRENT_DECK="$(echo "$DECK" | awk -F/ '{print $NF}')" ;;
|
||||||
path) CURRENT_DECK="$DECK" ;;
|
path) CURRENT_DECK="$DECK" ;;
|
||||||
*) CURRENT_DECK="$(echo "$DECK" | awk -F/ '{print $NF}')" ;;
|
*) CURRENT_DECK="$(echo "$DECK" | awk -F/ '{print $NF}')" ;;
|
||||||
esac
|
esac
|
||||||
|
CARD_POOL_SIZE=$(wc -l $CURRENT_DECK | cut -c 1-2)
|
||||||
|
|
||||||
# The top part of the flash display so that code is not duplicated twice
|
# The top part of the flash display so that code is not duplicated twice
|
||||||
print_head() {
|
print_head() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue