feat:tab/shift-tab in dayview + simplified actions

This commit is contained in:
Ämin Baumeler 2025-06-20 09:53:46 +02:00
parent 8509f17889
commit 9097874854

View File

@ -168,25 +168,29 @@ while true; do
)+transform( )+transform(
[ -n \"\${TZ:-}\" ] && echo \"change-list-label:\$WHITE\$ITALIC(\$TZ)\$OFF\" [ -n \"\${TZ:-}\" ] && echo \"change-list-label:\$WHITE\$ITALIC(\$TZ)\$OFF\"
)+transform( )+transform(
[ -n \"\$(echo {} | cut -f 5)\" ] && echo show-preview [ -n {5} ] && echo show-preview
)" \ )" \
--bind="start:hide-preview" \ --bind="start:hide-preview" \
--bind="j:down+hide-preview+transform([ -n \"\$(echo {} | cut -f 5)\" ] && echo show-preview)" \ --bind="j:down" \
--bind="k:up+hide-preview+transform([ -n \"\$(echo {} | cut -f 5)\" ] && echo show-preview)" \ --bind="k:up" \
--bind="ctrl-j:down+hide-preview+transform([ -n \"\$(echo {} | cut -f 5)\" ] && echo show-preview)" \ --bind="l:reload:$0 --reload-day {1} '+1 day'" \
--bind="ctrl-k:up+hide-preview+transform([ -n \"\$(echo {} | cut -f 5)\" ] && echo show-preview)" \ --bind="h:reload:$0 --reload-day {1} '-1 day'" \
--bind="down:down+hide-preview+transform([ -n \"\$(echo {} | cut -f 5)\" ] && echo show-preview)" \ --bind="right:reload:$0 --reload-day {1} '+1 day'" \
--bind="up:up+hide-preview+transform([ -n \"\$(echo {} | cut -f 5)\" ] && echo show-preview)" \ --bind="left:reload:$0 --reload-day {1} '-1 day'" \
--bind="l:hide-preview+reload:$0 --reload-day {1} '+1 day'" \ --bind="ctrl-l:reload:$0 --reload-day {1} '+1 week'" \
--bind="h:hide-preview+reload:$0 --reload-day {1} '-1 day'" \ --bind="ctrl-h:reload:$0 --reload-day {1} '-1 week'" \
--bind="right:hide-preview+reload:$0 --reload-day {1} '+1 day'" \ --bind="alt-l:reload:$0 --reload-day {1} '+1 month'" \
--bind="left:hide-preview+reload:$0 --reload-day {1} '-1 day'" \ --bind="alt-h:reload:$0 --reload-day {1} '-1 month'" \
--bind="ctrl-l:hide-preview+reload:$0 --reload-day {1} '+1 week'" \ --bind="ctrl-r:reload:$0 --reload-day today" \
--bind="ctrl-h:hide-preview+reload:$0 --reload-day {1} '-1 week'" \
--bind="alt-l:hide-preview+reload:$0 --reload-day {1} '+1 month'" \
--bind="alt-h:hide-preview+reload:$0 --reload-day {1} '-1 month'" \
--bind="ctrl-r:hide-preview+reload:$0 --reload-day today" \
--bind="ctrl-s:execute($SYNC_CMD ; printf 'Press <enter> to continue.'; read -r tmp)" \ --bind="ctrl-s:execute($SYNC_CMD ; printf 'Press <enter> to continue.'; read -r tmp)" \
--bind='tab:down' \
--bind='shift-tab:up' \
--bind='focus:hide-preview+transform(
[ "$FZF_KEY" = "tab" ] && [ -z {5} ] && [ "$FZF_POS" -lt "$FZF_TOTAL_COUNT" ] && echo down
[ "$FZF_KEY" = "shift-tab" ] && [ -z {5} ] && [ "$FZF_POS" -gt "1" ] && echo up
)+transform(
[ -n {5} ] && echo show-preview
)' \
--bind="w:toggle-preview-wrap" \ --bind="w:toggle-preview-wrap" \
--bind="ctrl-d:preview-down" \ --bind="ctrl-d:preview-down" \
--bind="ctrl-u:preview-up" --bind="ctrl-u:preview-up"