Compare commits
3 Commits
f025ecd0bb
...
e254463b0e
Author | SHA1 | Date | |
---|---|---|---|
e254463b0e | |||
9291137b94 | |||
ad32fcdb0f |
@ -23,6 +23,9 @@ function hrlines(start, stop, h, starth, stoph, tmp, i) {
|
||||
for (i=h; i < starth + tmp; i++)
|
||||
hrline(i)
|
||||
tmp = substr(stop, 4, 2) == "00" ? 0 : 1
|
||||
if (stoph + tmp < daystart)
|
||||
return daystart
|
||||
else
|
||||
return stoph + tmp
|
||||
}
|
||||
BEGIN {
|
||||
|
@ -11,8 +11,8 @@ BEGIN {
|
||||
OFS = "|"
|
||||
}
|
||||
/^[0-7] 00:00 -- 00:00/ { dayline = dayline " " c(); next }
|
||||
/^[0-7] 00:00 -- / { dayline = dayline " <-|" $4 " " c(); next }
|
||||
/^[0-7] [0-9]{2}:[0-9]{2} -- 00:00/ { dayline = dayline " " $2 "|-> " c(); next }
|
||||
/^[0-7] 00:00 -- / { dayline = dayline " <--" $4 " " c(); next }
|
||||
/^[0-7] [0-9]{2}:[0-9]{2} -- 00:00/ { dayline = dayline " " $2 "--> " c(); next }
|
||||
/^[0-7] [0-9]{2}:[0-9]{2} -- [0-9]{2}:[0-9]{2}/ { dayline = dayline " " $2 " - " $4 " " c(); next }
|
||||
/^[0-7]$/ && dayline { print "+", startofweek " +" $0-1 " days", "", dayline; }
|
||||
/^[0-7]$/ {
|
||||
|
@ -350,7 +350,7 @@ if [ "${1:-}" = "--goto" ]; then
|
||||
fi
|
||||
|
||||
if [ "${1:-}" = "--new" ]; then
|
||||
collection=$(echo "$COLLECTION_LABELS" | tr ';' '\n' | $FZF --delimiter='=' --with-nth=2 --accept-nth=1)
|
||||
collection=$(echo "$COLLECTION_LABELS" | tr ';' '\n' | awk '/./ {print}' | $FZF --margin="30%" --no-info --delimiter='=' --with-nth=2 --accept-nth=1)
|
||||
fpath=""
|
||||
while [ -f "$fpath" ] || [ -z "$fpath" ]; do
|
||||
uuid=$($UUIDGEN)
|
||||
@ -551,9 +551,10 @@ selection=$(
|
||||
--delimiter='|' \
|
||||
--with-nth='{4}' \
|
||||
--accept-nth=1,2 \
|
||||
--no-info \
|
||||
--ansi \
|
||||
--no-scrollbar \
|
||||
--info=right \
|
||||
--info-command='printf "Timezone: ${TZ:-as system} ($(date +"%Z"))"' \
|
||||
--preview-window=up,7,border-bottom \
|
||||
--preview="$0 --preview-week {}" \
|
||||
--expect="ctrl-n" \
|
||||
|
Loading…
Reference in New Issue
Block a user