feat: add tmux popup commands for reminders and calendar

- Refactor `main.sh` to support `reminders` and `calendar` commands,
  displaying tmux popups with localized titles and current date/time.
- Add `show_reminders.sh` and `show_calendar.sh` scripts to render
  reminders and 2-week calendar views using `rem`.
- Update `tmux-remind.tmux` to bind `prefix + r` for reminders and
  `prefix + c` for calendar popups.
- Improve script robustness with `set -euo pipefail` and dynamic script
  directory resolution.
This commit is contained in:
2025-12-24 12:40:59 +01:00
parent da8e79a23c
commit e2ab9e839a
4 changed files with 39 additions and 11 deletions

5
scripts/show_reminders.sh Executable file
View File

@@ -0,0 +1,5 @@
#!/usr/bin/env bash
export LESSCHARSET=utf-8
TERM_WIDTH=$(tput cols)
rem -m -b1 -gaa -q -aa -iinclude_todo=1 -@2 -w"$TERM_WIDTH" | less -r -S +g --status-line -PM"Riga %lt/%L (%Pb\%)"