Search | Running | Sailfish OS | All Posts | About Me

Use case insensitive search in Taskwarrior

July 29, 2024 — Nico Cartron

Context

As anything with Taskwarrior, everytime I feel like I'm missing something, I'm proven wrong.

The last example is with case insensitive search: by default, when searching TW with task _search_, you have to input it correctly, e.g. an entry with "Example" will not show if you search for "example".

Solution

The taskwarrior doc has a section about Filters.

There's just a typo in the example, which says:

task rc.seach.case.sensitive:no <search>

when it should be:

task rc.search.case.sensitive:no

Making it the default

Just add the below to your taskrc to make case insensitive search the default:

search.case.sensitive=no

Tags: IT


I don't have any commenting system, but email me (nicolas at ncartron dot org) your comments!
If you like my work, you can buy me a coffee!