better fzf

This commit is contained in:
Ämin Baumeler 2025-06-10 13:26:01 +02:00
parent af5356f07b
commit f85e766a5a

View File

@ -371,6 +371,7 @@ if [ "${1:-}" = "--date" ]; then
fi
DISPLAY_DATE=${DISPLAY_DATE:-today}
DISPLAY_DATE=$(date -d "$DISPLAY_DATE" +"%D")
DISPLAY_POS=$((8 - $(date -d "$DISPLAY_DATE" +"%u")))
DISPLAY_DATE_PREV=$(date -d "$DISPLAY_DATE -1 week" +"%D")
DISPLAY_DATE_NEXT=$(date -d "$DISPLAY_DATE +1 week" +"%D")
@ -390,6 +391,8 @@ selection=$( (
--no-info \
--ansi \
--no-clear \
--no-scrollbar \
--bind="load:pos($DISPLAY_POS)" \
--bind="ctrl-p:become($0 --date '$DISPLAY_DATE_PREV')" \
--bind="ctrl-n:become($0 --date '$DISPLAY_DATE_NEXT')" \
--bind="ctrl-l:become($0)")