summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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).
2022-08-20Add scale option.Phil Jones
Previously, tofi wouldn't scale pixel values by the output's scale factor. This allows pixel-perfect sizes on displays with scale factors >1, but means that configs need to be changed on a per-monitor basis, and is at odds with how other applications (notable Sway) behave. This commit adds a new option, --scale, to scale pixel values by the output's scale factor. For backwards compatibility, this currently defaults to false, and font scaling is performed regardless (the existing behaviour). In the next release, this will default to true, and font scaling will follow the same behaviour as everything else.
2022-08-14Improve fuzzy matcher.Phil Jones
It will now always find the best score possible.
2022-08-12Add note about fuzzy matching highlight colour.Phil Jones
2022-08-12Add --fuzzy_match option.Phil Jones
This enables some simple fuzzy matching logic for searches.
2022-08-09Add note about hugepages to the readme.Phil Jones
2022-08-09Improve performance for some themes.Phil Jones
When not highlighting matches or drawing a selection background box, we can skip a bunch of slow code to improve performance.
2022-08-09Add Transparent HugePage support on Linux.Phil Jones
Currently, this is unlikely to be enabled for shared memory mappings on any user's system, so will not make a difference. If `/sys/kernel/mm/transparent_hugepage/shmem_enabled` is set to `advise` or higher, however, this commit should enable the use of hugepages. This can greatly speed up startup for large windows - for a 2880x1800 fullscreen window on my laptop, enabling hugepages halves startup time. From the kernel mailing lists, it looks like there's some work towards allowing applications to opt-in to THP support regardless of whether they're enabled, via `madvise(MADV_COLLAPSE)`, so this may be more useful in future.
2022-08-08Add changelog.Phil Jones
2022-08-07Version 0.4.0.Phil Jones
2022-08-07Delay scaling of percentage values.Phil Jones
The config file code now delays calculation of percentage values until `config_fix_percentages()` is called. This allows the config file to be parsed before output configuration is complete, thus allowing `--output` and `--late-keyboard-init` to be specified in the config file.
2022-08-05Correct selection background for slanted fonts.Phil Jones
Previously the selection background didn't really wrap text correctly, especially if the font was very slanted. This fixes that, so the width is tightly wrapped around any font.
2022-08-04Improve pagination.Phil Jones
Pagination was broken in horizontal mode before, and in general tried to render too many results (leading to a cut-off last result). This commit fixes both of those, with the minor caveat that you can no longer scroll straight to the last result.
2022-08-03Make --drun-print-exec always be true.Phil Jones
The option is now deprecated, and a warning will be printed if it's used. It may be removed in a future version of tofi, so it should be removed from any configs now.
2022-08-03Add pagination of results.Phil Jones
2022-08-03Add key repeat.Phil Jones
2022-08-02Add a few more function attributes.Phil Jones
2022-08-02Remove tofi-compgen from install.Phil Jones
This was really just a utility for testing, and isn't needed by users.