How I manage my tasks and appointments
The application of my choice, as it’s nice looking, light weight and easy to use, is Calcurse, which makes handling all my tasks and appointments a breeze. Specific queries, however, I do directly via terminal and for this I have written a small script, which I would like to present to you briefly.
The scripts possibilities
The script allows me the following query options:
- search for a string
- upcoming events of the next n days
- appointments in a defined period of time
Contents of the shell script
If you are interessted in it, here comes the script I wrote to perform those queries:
case $1 in
string*) calcurse -d365 --filter-pattern $ARG1 ;;
next*) calcurse -r$ARG1 --format-apt='%S -> %E \t%m\n' ;;
range*) calcurse -d365 --filter-start-from $ARG1 --filter-start-before $ARG2 ;;
*) printf "Frank's Calcurse query script\\n\\nUsage:\\nTo search for a string comming up the next 365 days use: \e[31mqcc string your_string_here\e[0m\\nTo see which appointments come up the next n days use: \e[31mqcc next 7\e[0m\\nTo see the appointments comming up the next 365 days for a custom range use: \e[31mqcc range dd/mm/yyyy\e[0m\\n" ;;
Executed without any parameters it outputs a small usage information which is realized within the case statement. So you, and me too, see how to use it.
Download from my git repo
If you are interested, you can download the script directly from my sourcehut repository, just run
curl https://git.sr.ht/~hmbrg/blogrefs/blob/main/qcc -o qcc.
This page was last updated on: 15. May 2022