imporved fzf dayview info

This commit is contained in:
Ämin Baumeler 2025-06-10 13:28:11 +02:00
parent f85e766a5a
commit 6e2df59c93

View File

@ -332,7 +332,6 @@ fi
if [ "${1:-}" = "--day" ]; then if [ "${1:-}" = "--day" ]; then
DISPLAY_DATE="$2" DISPLAY_DATE="$2"
echo "Jumping to day $DISPLAY_DATE!"
selection=$( selection=$(
__show_day | __show_day |
$FZF \ $FZF \
@ -342,7 +341,7 @@ if [ "${1:-}" = "--day" ]; then
--no-input \ --no-input \
--margin='20%' \ --margin='20%' \
--border='double' \ --border='double' \
--border-label="🗓️ $(date -d "$DISPLAY_DATE" +"%a %e %b %Y")" \ --border-label="🗓️ $(date -d "$DISPLAY_DATE" +"%A %e %B %Y")" \
--color=label:bold:green \ --color=label:bold:green \
--border-label-pos=3 \ --border-label-pos=3 \
--delimiter='|' \ --delimiter='|' \
@ -367,7 +366,6 @@ fi
if [ "${1:-}" = "--date" ]; then if [ "${1:-}" = "--date" ]; then
DISPLAY_DATE="$2" DISPLAY_DATE="$2"
echo "Jumping to date $2!"
fi fi
DISPLAY_DATE=${DISPLAY_DATE:-today} DISPLAY_DATE=${DISPLAY_DATE:-today}
DISPLAY_DATE=$(date -d "$DISPLAY_DATE" +"%D") DISPLAY_DATE=$(date -d "$DISPLAY_DATE" +"%D")