improved
This commit is contained in:
parent
558f8330ca
commit
e5134fd0a0
10
src/main.sh
10
src/main.sh
@ -236,7 +236,8 @@ fi
|
|||||||
if [ "${1:-}" = "--day" ]; then
|
if [ "${1:-}" = "--day" ]; then
|
||||||
DISPLAY_DATE="$2"
|
DISPLAY_DATE="$2"
|
||||||
echo "Jumping to day $DISPLAY_DATE!"
|
echo "Jumping to day $DISPLAY_DATE!"
|
||||||
selection=$(__show_day |
|
selection=$(
|
||||||
|
__show_day |
|
||||||
$FZF \
|
$FZF \
|
||||||
--reverse \
|
--reverse \
|
||||||
--ansi \
|
--ansi \
|
||||||
@ -244,9 +245,12 @@ if [ "${1:-}" = "--day" ]; then
|
|||||||
--no-input \
|
--no-input \
|
||||||
--delimiter='|' \
|
--delimiter='|' \
|
||||||
--with-nth='{2}' \
|
--with-nth='{2}' \
|
||||||
--accept-nth='{1}')
|
--accept-nth='{1}' \
|
||||||
|
--bind="backspace:first+accept"
|
||||||
|
)
|
||||||
|
if [ -n "$selection" ]; then
|
||||||
fpath="$ROOT/$selection"
|
fpath="$ROOT/$selection"
|
||||||
echo "$fpath"
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${1:-}" = "--date" ]; then
|
if [ "${1:-}" = "--date" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user