summaryrefslogtreecommitdiff
path: root/src/compgen.c
AgeCommit message (Collapse)Author
2022-11-19Make vector finding functions names clearer.Phil Jones
This adds `_sorted` to the names of `string_vec_find` and `desktop_vec_find`, to make it clear that these functions require their input to already be sorted. Also fix a potential bug from not sorting the list of desktops in drun mode.
2022-11-19Cleanup some potentially flaky logic.Phil Jones
Some of the string vec code was still assuming that it was just a list of `char *`s, rather than `struct scored_string`s. Correcting that makes future changes a little less error prone, and allows significantly simpler history sorting for tofi-run.
2022-11-19Sort items in normal tofi mode when using history.Phil Jones
This is a short-term workaround for history sorting not working, due to the binary search used to find exiting items relying on the input already being sorted.
2022-07-24Add drun mode.Phil Jones
This is a pretty simple implementation, but it should work for most use cases. Notably, generic application names aren't used (though that could be added without too much hassle), and neither are keywords (that would be more difficult).
2022-07-05Sort results by match position.Phil Jones
Search results will now be sorted by history first, then by the position of the match, such that a match at the start of a result will appear before a match later in the result.
2022-06-21Add config file handling.Phil Jones
Single letter style arguments have been removed.
2022-06-11Add compgen caching.Phil Jones
A list of commands is now stored in $XDG_CACHE_HOME/.cache/tofi-compgen, and regenerated as necessary.
2022-06-10Various small changes.Phil Jones
- Split the compgen and history sorting parts of compgen(), for future dmenu-like work. - Add a separate tofi-compgen executable. - Remove harfbuzz-glib usage, as we shouldn't be doing any complicated unicode stuff.
2022-06-10Add indents to log functions.Phil Jones
2021-11-17Add sorting by run frequency.Phil Jones
This implements a rofi-like run cache. Other smaller changes include simplification of resize logic now that there's only one surface.
2021-11-15Multiple smaller changes.Phil Jones
- Remove the background image and libpng dependency - Add a prompt - Add xmalloc with out-of-memory handling - Add beginnings of a rofi-like run cache
2021-11-06Start conversion to tofi.Phil Jones