diff --git a/src/main.sh b/src/main.sh index 3986ffa..d46dfa0 100755 --- a/src/main.sh +++ b/src/main.sh @@ -168,25 +168,29 @@ while true; do )+transform( [ -n \"\${TZ:-}\" ] && echo \"change-list-label:\$WHITE\$ITALIC(\$TZ)\$OFF\" )+transform( - [ -n \"\$(echo {} | cut -f 5)\" ] && echo show-preview + [ -n {5} ] && echo show-preview )" \ --bind="start:hide-preview" \ - --bind="j:down+hide-preview+transform([ -n \"\$(echo {} | cut -f 5)\" ] && echo show-preview)" \ - --bind="k:up+hide-preview+transform([ -n \"\$(echo {} | cut -f 5)\" ] && echo show-preview)" \ - --bind="ctrl-j:down+hide-preview+transform([ -n \"\$(echo {} | cut -f 5)\" ] && echo show-preview)" \ - --bind="ctrl-k:up+hide-preview+transform([ -n \"\$(echo {} | cut -f 5)\" ] && echo show-preview)" \ - --bind="down:down+hide-preview+transform([ -n \"\$(echo {} | cut -f 5)\" ] && echo show-preview)" \ - --bind="up:up+hide-preview+transform([ -n \"\$(echo {} | cut -f 5)\" ] && echo show-preview)" \ - --bind="l:hide-preview+reload:$0 --reload-day {1} '+1 day'" \ - --bind="h:hide-preview+reload:$0 --reload-day {1} '-1 day'" \ - --bind="right:hide-preview+reload:$0 --reload-day {1} '+1 day'" \ - --bind="left:hide-preview+reload:$0 --reload-day {1} '-1 day'" \ - --bind="ctrl-l:hide-preview+reload:$0 --reload-day {1} '+1 week'" \ - --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="j:down" \ + --bind="k:up" \ + --bind="l:reload:$0 --reload-day {1} '+1 day'" \ + --bind="h:reload:$0 --reload-day {1} '-1 day'" \ + --bind="right:reload:$0 --reload-day {1} '+1 day'" \ + --bind="left:reload:$0 --reload-day {1} '-1 day'" \ + --bind="ctrl-l:reload:$0 --reload-day {1} '+1 week'" \ + --bind="ctrl-h:reload:$0 --reload-day {1} '-1 week'" \ + --bind="alt-l:reload:$0 --reload-day {1} '+1 month'" \ + --bind="alt-h:reload:$0 --reload-day {1} '-1 month'" \ + --bind="ctrl-r:reload:$0 --reload-day today" \ --bind="ctrl-s:execute($SYNC_CMD ; printf 'Press 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="ctrl-d:preview-down" \ --bind="ctrl-u:preview-up"