summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-11-19Fix sorting in normal tofi mode with history.Phil Jones
By using a hash table rather than binary search to find existing items, we can avoid the need to sort the input.
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-11-19Add --history-file option.Phil Jones
2022-11-19Add missing errno.h include.Phil Jones
2022-11-19Add support for pasting from clipboard.Phil Jones
2022-11-19Fix misnamed header guards in color.h.Phil Jones
2022-11-16Add placeholder text options.Phil Jones
2022-11-13lock: add missing include after 68587e2920b5Jan Beich
This is required on e.g. FreeBSD to define S_IRUSR / S_IWUSR.
2022-11-01Version 0.7.0.Phil Jones
2022-11-01Update documentation warnings.Phil Jones
2022-11-01Add alternative key binding to delete a word.Maksim
2022-10-25Add Fedora build dependencies to readme.godalming123
2022-10-25Add --multi-instance option.Phil Jones
2022-10-25Disallow multiple simultaneous tofi instances.Phil Jones
2022-10-23Synchronise rendering with surface update.Phil Jones
This fixes an issue where receiving multiple keypresses in the time taken to draw a frame could cause input to be out of sync with the display.
2022-10-23Replace wchar and friends with Unicode handling.Phil Jones
All text handling should now be explicitly UTF-8 or UTF-32, removing the ambiguity around wchar_t and related functions.
2022-10-23Add tests to GitHub actions workflow.Phil Jones
2022-10-22Add warning when no terminal is set.Phil Jones
2022-10-22Add --terminal option.Phil Jones
2022-10-22Limit max line length for perfect fuzzy matching.Phil Jones
Fuzzy matching could previously take a very long time for long input lines, as the number of possible matches quickly explodes. This commit sets a line length limit of 100 characters - longer lines will only return the first fuzzy match, rather than the best one.
2022-10-21Initial input handling cleanup.Phil Jones
Also changed keyboard shortcuts to use physical keycodes, rather than XKB keysyms. This means shortcuts don't shift when keyboard layout is changed.
2022-10-18Fix --exclusive-zone=-1 not working.Phil Jones
2022-10-18Add beginnings of test framework.Phil Jones
Just contains a couple of very simple UTF-8 tests for now.
2022-10-18Improve UTF-8 handling.Phil Jones
This should allow case-insensitive matching for non-Latin characters, and fix matching for characters with diacritics.
2022-10-18Make actions run on all branches.Phil Jones
2022-10-18Clean up meson deprecation warnings.Phil Jones
2022-10-18Set the minimum required meson version to 0.61Birger Schacht
The `install_symlink` was only introduced in version 0.61 of meson https://mesonbuild.com/Release-notes-for-0-61-0.html#install_symlink-function
2022-10-14Add --exclusive-zone option.Phil Jones
2022-10-14Change default layer to overlay.Phil Jones
This allows tofi to show up on top of fullscreen windows.
2022-10-12Add Shift-Tab keybinding.Phil Jones
Also fix unbound keys and modifiers resetting the selection.
2022-10-12Fix crash when moving selection with no results.Phil Jones
2022-10-11Fix Pango bug when deleting hidden characters.Phil Jones
2022-10-05Add options to hide input for passwords etc.Phil Jones
2022-09-29Fix appearing on the wrong output on Hyprland.Phil Jones
This isn't a great workaround, but the "correct" solution (implement proper resizing logic and don't parse the config until our window is shown) would incur significant extra complexity.
2022-09-27Add --include option.Phil Jones
This allows config files to include other files, so you can e.g. split style and behaviour options into different files.
2022-09-13Update AUR link in README.Phil Jones
2022-09-08Version 0.6.0.Phil Jones
2022-09-08Add dark paper theme.Phil Jones
2022-09-08Make --scale default to true.Phil Jones
This also stops font sizes from scaling when --scale=false is set.
2022-09-08Add GitHub actions workflow to test build process.Phil Jones
2022-09-08Fix unused function warning.Phil Jones
2022-09-07Fix failure to link tofi-compgen without LTO.Phil Jones
This was caused by an unused (but included) function not being linked. LTO was able to determine that the missing function didn't need to be linked, so didn't complain, leading to this bug being missed.
2022-09-07Allow space-separated, per-word matches.Phil Jones
2022-08-22Split manpage options into style and behaviour.Phil Jones
2022-08-22Add --prompt-padding option.Phil Jones
2022-08-21Add --require-match option.Phil Jones
2022-08-21Version 0.5.0.Phil Jones
2022-08-20Fix double scaling of min-input-width.Dima Krasner
2022-08-20Add Ctrl-u and Ctrl-w readline bindings.Phil Jones
Ctrl-u is just a whole line delete for now, as there's no sense of a cursor position in tofi (so the whole line is "left" of the cursor).