feat(calendar): extend calendar view to show next 4 weeks
Update both the tmux popup title and the `rem` command in `show_calendar.sh` to display events for the next 4 weeks instead of 2 weeks.
This commit is contained in:
@@ -33,7 +33,7 @@ function show_reminders {
|
|||||||
function show_calendar {
|
function show_calendar {
|
||||||
local datetime
|
local datetime
|
||||||
datetime=$(get_datetime)
|
datetime=$(get_datetime)
|
||||||
tmux display-popup -T "#[align=centre]Next 2 Weeks - $datetime" -w 99% -h 99% -x C -y C -E -- "$CURRENT_DIR/show_calendar.sh"
|
tmux display-popup -T "#[align=centre]Next 4 Weeks - $datetime" -w 99% -h 99% -x C -y C -E -- "$CURRENT_DIR/show_calendar.sh"
|
||||||
}
|
}
|
||||||
|
|
||||||
function main {
|
function main {
|
||||||
|
|||||||
@@ -2,4 +2,4 @@
|
|||||||
|
|
||||||
export LESSCHARSET=utf-8
|
export LESSCHARSET=utf-8
|
||||||
TERM_WIDTH=$(tput cols)
|
TERM_WIDTH=$(tput cols)
|
||||||
rem -m -cu+2 -b1 -gaa -q -@2 --hide-completed-todos -w"$TERM_WIDTH" | less -r +g --status-line -PM"Line %lt/%L (%Pb\%)"
|
rem -m -cu+4 -b1 -gaa -q -@2 --hide-completed-todos -w"$TERM_WIDTH" | less -r +g --status-line -PM"Line %lt/%L (%Pb\%)"
|
||||||
|
|||||||
Reference in New Issue
Block a user