From e5134fd0a050c4aa6a574d979fefdf674a97f4d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=84min=20Baumeler?= Date: Thu, 5 Jun 2025 23:02:25 +0200 Subject: [PATCH] improved --- src/main.sh | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/src/main.sh b/src/main.sh index 3887b62..bfe7cd5 100755 --- a/src/main.sh +++ b/src/main.sh @@ -236,17 +236,21 @@ fi if [ "${1:-}" = "--day" ]; then DISPLAY_DATE="$2" echo "Jumping to day $DISPLAY_DATE!" - selection=$(__show_day | - $FZF \ - --reverse \ - --ansi \ - --no-sort \ - --no-input \ - --delimiter='|' \ - --with-nth='{2}' \ - --accept-nth='{1}') - fpath="$ROOT/$selection" - echo "$fpath" + selection=$( + __show_day | + $FZF \ + --reverse \ + --ansi \ + --no-sort \ + --no-input \ + --delimiter='|' \ + --with-nth='{2}' \ + --accept-nth='{1}' \ + --bind="backspace:first+accept" + ) + if [ -n "$selection" ]; then + fpath="$ROOT/$selection" + fi fi if [ "${1:-}" = "--date" ]; then