improved
This commit is contained in:
parent
558f8330ca
commit
e5134fd0a0
26
src/main.sh
26
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
|
||||
|
Loading…
Reference in New Issue
Block a user