Érico Rolim
1e42b5527e
Add sort_entries, make filter_entries(a, 0) set a.m[i]=true.
...
- sorting the entries is just better UI
- filter_entries() is used to initialize a.ms to a.n, but it can lead to
weird things if all a.m members aren't also initialized
2021-01-07 20:59:33 -03:00
Érico Rolim
472337a477
Support case insensitive search.
...
Enabled only if there is an upper string character in the search tokens.
Also call setlocale() in main() to guarantee correct behavior.
2021-01-07 18:44:12 -03:00
Érico Rolim
dba748f593
Add xmalloc and xrealloc wrappers.
2021-01-07 18:23:36 -03:00
Érico Rolim
ef21f16b54
Implement token search.
...
- only shows results that match all tokens
- tokens are generated by adding a space to the query
2021-01-07 18:17:20 -03:00
Érico Rolim
ab99ea260b
Switch to using a pad for the list, add working navigation.
2021-01-07 17:36:12 -03:00
Érico Rolim
4ae24894e7
Split implementation into multiple files.
...
Also add comments for improvements.
2021-01-07 16:07:16 -03:00