Age | Commit message (Collapse) | Author | |
---|---|---|---|
2022-11-28 | Improve performance of tofi-run history sorting. | Phil Jones | |
2022-11-28 | Refactor string vector code. | Phil Jones | |
Previously, string vectors were built by reading input line-by line, and multiple copies of string vectors were made when searching. Now, input is read into one big buffer, and string vectors only contain references to the strings in this buffer. This both speeds up reading of input, and avoids unnecessary copying of strings in various places. The main downside currently is that input read from stdin is no longer UTF-8 normalised. This means, for example, that a search for `e` won't necessarily match `é`. Normalisation is very slow relative to the rest of tofi, however, and not needed for most use-cases. This could either be solved by accepting the slowdown, or making this an option, such as --unicode or --unicode-normalize. | |||
2022-06-11 | Add compgen caching. | Phil Jones | |
A list of commands is now stored in $XDG_CACHE_HOME/.cache/tofi-compgen, and regenerated as necessary. | |||
2022-06-10 | Various 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. | |||
2021-11-17 | Add 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-06 | Start conversion to tofi. | Phil Jones | |