Search in Calendar

A missing feature that bites me from time to time is search functionality in the calendar.
If I know about the content of a certain appointment (typically a word in its title), but not its date and time, searching it in the calendar really is a lot a manual labour.
A search function would come in handy.

10 Likes

Yes! That would come handy.
And was asked 5y ago (indeed 7y when you follow mentioned global search link).

I did not check the python stuff provided there (maybe it is much more convenient :wink: ).

But here is a small cli / shell workaround to find something in calendar and get the date…

devel-su
ST="*SearchText*" sqlite3 /home/nemo/.local/share/system/privileged/Calendar/mkcal/db "select Summary, Location, Description, DateStart, DateStartLocal from Components where Summary like '%$ST%' or Location like '%$ST%' or Description like '%$ST%';"

or (as one-liner)
ST="*SearchText*"; devel-su -c sqlite3 /home/nemo/.local/share/system/privileged/Calendar/mkcal/db "select Summary, Location, Description, DateStart, DateStartLocal from Components where Summary like '%$ST%' or Location like '%$ST%' or Description like '%$ST%';"

Find your item in the output, grab the last column (local timestamp) and issue
date @*FoundTimeStamp*

Now you will know the date/time and can easily find it…

7 Likes