Skip to content

Commit

Permalink
Version 0.5.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
philj56 committed Aug 21, 2022
1 parent ca8c2f4 commit aeefb7c
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 11 deletions.
34 changes: 34 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,38 @@
# Changelog

## [0.5.0] - 2022-08-21
### Warning - HiDPI config change
In previous versions of tofi, pixel values were always treated as device
pixels, ignoring the display's scale factor. This allows pixel-perfect sizes,
but means you have to make different configs for differently scaled displays,
and isn't how e.g. Sway does things. Additionally, fonts currently *are* scaled
by the scale factor, making things a little complex.

This release adds a `scale` boolean option, which currently defaults to
`false`. Setting this to `true` will make pixel values scale with the display's
scale factor.

In the next version of tofi, `scale` will default to `true` (but still be
around if you want the old behaviour). Setting `scale` to `false` will also
start causing fonts to not be scaled by the scale factor.

If you use tofi on a HiDPI display, you should explicitly set `scale` to your
desired setting now (or at least be aware that you'll need to change some theme
dimensions in the next version).

### Added
- Fuzzy matching can now be enabled with the `fuzzy_match` option.
- Added `scale` option, as described above.
- Added Ctrl-u and Ctrl-w readline keybindings.
- Added this changelog.

### Changed
- Improved performance when neither `selection-match-color` or
`selection-background-color` are specified.
- Improved performance on systems with Transparent HugePages enabled for shared
memory (none that I know of for now, but may be relevant in the future).


## [0.4.0] - 2022-08-07
### Deprecated
In the [0.3.0] release, the `drun-print-exec` option was added to enable fixed
Expand Down Expand Up @@ -95,6 +128,7 @@ is how it should have been done from the start.
## [0.1.0] - 2022-06-27
Initial release. Good enough to use, but still some jank.

[0.5.0]: https://github.com/philj56/tofi/compare/v0.4.0...v0.5.0
[0.4.0]: https://github.com/philj56/tofi/compare/v0.3.1...v0.4.0
[0.3.1]: https://github.com/philj56/tofi/compare/v0.3.0...v0.3.1
[0.3.0]: https://github.com/philj56/tofi/compare/v0.2.0...v0.3.0
Expand Down
10 changes: 0 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,16 +58,6 @@ executables under the user's `$PATH`.
list of applications found in desktop files as described by the [Desktop Entry
Specification](https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html).

**WARNING**: In the latest version of tofi, the default behaviour of drun mode
has changed. Previously, when a selection was made in drun mode, the filename
of the selected desktop file was printed to stdout. This couldn't be passed
directly to swaymsg exec however, so applications launched in drun mode
wouldn't always stay in the correct workspace. In the current version of tofi,
this has changed to an executable command line, to be passed to swaymsg exec or
similar. The drun-print-exec option is therefore useless and deprecated, and
may be removed from a future version of tofi, so you should remove it from your
configs.

To use as a launcher for Sway, add something similar to the following to your
Sway config file:
```
Expand Down
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
project(
'tofi',
'c',
version: '0.4.0',
version: '0.5.0',
license: 'MIT',
default_options: [
'c_std=c2x',
Expand Down

0 comments on commit aeefb7c

Please sign in to comment.