Age | Commit message (Collapse) | Author |
|
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.
|
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
This is required on e.g. FreeBSD to define S_IRUSR / S_IWUSR.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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.
|
|
All text handling should now be explicitly UTF-8 or UTF-32, removing the
ambiguity around wchar_t and related functions.
|
|
|
|
|
|
|
|
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.
|
|
Also changed keyboard shortcuts to use physical keycodes, rather than
XKB keysyms. This means shortcuts don't shift when keyboard layout is
changed.
|
|
|
|
Just contains a couple of very simple UTF-8 tests for now.
|
|
This should allow case-insensitive matching for non-Latin characters,
and fix matching for characters with diacritics.
|
|
|
|
|
|
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
|
|
|
|
This allows tofi to show up on top of fullscreen windows.
|
|
Also fix unbound keys and modifiers resetting the selection.
|
|
|
|
|
|
|
|
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.
|
|
This allows config files to include other files, so you can e.g. split
style and behaviour options into different files.
|
|
|
|
|
|
|
|
This also stops font sizes from scaling when --scale=false is set.
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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).
|
|
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.
|