better fzf
This commit is contained in:
parent
af5356f07b
commit
f85e766a5a
@ -371,6 +371,7 @@ if [ "${1:-}" = "--date" ]; then
|
|||||||
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")
|
||||||
|
DISPLAY_POS=$((8 - $(date -d "$DISPLAY_DATE" +"%u")))
|
||||||
DISPLAY_DATE_PREV=$(date -d "$DISPLAY_DATE -1 week" +"%D")
|
DISPLAY_DATE_PREV=$(date -d "$DISPLAY_DATE -1 week" +"%D")
|
||||||
DISPLAY_DATE_NEXT=$(date -d "$DISPLAY_DATE +1 week" +"%D")
|
DISPLAY_DATE_NEXT=$(date -d "$DISPLAY_DATE +1 week" +"%D")
|
||||||
|
|
||||||
@ -390,6 +391,8 @@ selection=$( (
|
|||||||
--no-info \
|
--no-info \
|
||||||
--ansi \
|
--ansi \
|
||||||
--no-clear \
|
--no-clear \
|
||||||
|
--no-scrollbar \
|
||||||
|
--bind="load:pos($DISPLAY_POS)" \
|
||||||
--bind="ctrl-p:become($0 --date '$DISPLAY_DATE_PREV')" \
|
--bind="ctrl-p:become($0 --date '$DISPLAY_DATE_PREV')" \
|
||||||
--bind="ctrl-n:become($0 --date '$DISPLAY_DATE_NEXT')" \
|
--bind="ctrl-n:become($0 --date '$DISPLAY_DATE_NEXT')" \
|
||||||
--bind="ctrl-l:become($0)")
|
--bind="ctrl-l:become($0)")
|
||||||
|
Loading…
Reference in New Issue
Block a user