Commit Graph
2269 Commits
Author SHA1 Message Date
Christian Duerr b54d763154 Fix serde tests without default features
Authored-by: James McCoy <jamessan@jamessan.com>
2024-01-06 06:05:55 +00:00
Kirill Chibisov 295ac412de Bump winit to 0.29.9
Fixes #7559.
Fixes #7533.
2024-01-06 04:48:40 +04:00
Kirill Chibisov 213f73e8d6 Ignore null values in alacritty migrate
This should help with broken YAML configurations by throwing nulls
away, which are not representable in toml.
2024-01-05 11:59:05 +04:00
Omar Magdy d47aab93c3 Add vi search paste bindings
Closes #7511.
2024-01-04 17:57:53 +00:00
Christian Duerr 5685ce8bf8 Fix replacing optional fields
This fixes an issue with the default `SerdeReplace` implementation where
it would never recurse through options but always replace the entire
option with the new value.

Closes #7518.
2024-01-02 13:34:57 +00:00
Lars Francke 8f57367ead Fix number-based mouse bindings
The toml migration introduced a regression which stopped numbered key
binding's from working. This patch implements the required number type
to make things work again.

Fixes #7527.
2024-01-02 05:55:02 +00:00
Kirill Chibisov 659550ee34 Bump winit to 0.29.8
Fixes #7514.
Fixes #7502.
Fixes #7494.
Fixes #7474.
Fixes #7472.
2023-12-31 22:12:35 +04:00
Kirill Chibisov c07b65c760 Remove note about versions pre 0.13.0 2023-12-31 21:50:33 +04:00
Kirill Chibisov 2786683e0e Powerline glyphs being cut for narrow fonts
Fixes #7470.
2023-12-31 00:12:41 +04:00
Kirill Chibisov c78c5f6cc0 Send associated text for shifted numbers with kitty
Also fix the wrong ordering of base and shifted keys.

Fixes #7492.
2023-12-30 19:50:35 +04:00
Kirill Chibisov 107c8720c3 Don't substitute \n in char bindings
This broke unintentionally due to routing paste-like input
via paste function.

Fixes #7476.
2023-12-30 19:29:21 +04:00
Hyper b067fcca33 Passthrough potential errors for EventLoopSender 2023-12-30 19:12:00 +04:00
Kirill Chibisov 85d85e49b2 Fix inability to bind Alt+Control on Windows
Fixes #7506.
2023-12-30 09:42:02 +04:00
Kirill Chibisov 6223cabe17 Use pre-composed key for Alt bindings on macOS
Fixes #7475.
2023-12-30 09:42:02 +04:00
Philip Dubé 91e3cd6a40 Remove direct dependency on once_cell
With MSRV 1.70, std now contains the necessary parts.
2023-12-29 01:40:18 +00:00
Christian Duerr 81df32af60 Fix alacritty migrate with nonexistent imports
Fixes #7473.
2023-12-28 21:57:30 +04:00
Hyper 234fea701c Derive Clone for EventLoopSender 2023-12-28 20:05:56 +04:00
Kirill Chibisov ea450f5150 Mark SimpleFullscreen as macOS only startup mode 2023-12-28 14:36:45 +04:00
Kirill Chibisov b6b21f73ea Bump winit to 0.29.7
This also bumps other dependencies along the way.

Fixes #2886.
2023-12-27 23:25:25 +04:00
Kirill Chibisov 187f9ca3e5 Apply modifiers before presses in kitty protocol
While this doesn't handle releases with multiple identical modifiers
pressed, the release can't work reliable anyway, since one modifier
could be pressed before focusing the window, thus tracking modifiers
based on the keysym values won't work as it was suggested by kitty
author.

Links: https://github.com/kovidgoyal/kitty/issues/6913
2023-12-25 18:52:35 +04:00
Kirill Chibisov caf8c7fc7f Keep IME always enabled on X11
Fixes #7195.
2023-12-22 02:27:35 +04:00
Kirill Chibisov 90ec158a94 Bump winit to 0.29.5
Fixes #7449.
2023-12-22 02:04:40 +04:00
Kirill Chibisov 3d7d81c848 Account for option_as_alt when doing kitty protocol
By default `Alt` is not a real `Alt` on macOS, so we shouldn't treat
it as a modifier.

Fixes #7443.
2023-12-20 10:37:21 +04:00
Kirill Chibisov a10fb8adc0 Fix the order of ClearSelection in Vi mode
Fixes #7438.
2023-12-16 14:50:22 +00:00
Christian Duerr 749ddc09e2 Add link to rendered config docs
This adds a link to alacritty.org's rendered configuration file
documentation.
2023-12-14 11:41:09 +04:00
Christian Duerr 8655276f0e Update alacritty versions
This is only an update to the development versions and does not
represent a stable release.
2023-12-14 10:37:25 +04:00
Kirill Chibisov 0fd04c371a Bump crossfont to 0.7.0 2023-12-14 07:15:40 +04:00
Kirill Chibisov c0c267d60e Fix message bar not damaged when the same size
The regression was added due to `y` coordinate in OpenGL differs to
`y` inside the damage rectangles.

Fixes: 40160c5d (Damage only terminal inside `alacritty_terminal`)
2023-12-08 23:25:05 +04:00
Kirill Chibisov e12c750edb Don't emit text for NamedKey without text repr
When the key doesn't have textual representation we shouldn't emit
the text for them, since they are processed via bindings.

Also, fix the logic to handle named keys with disambiguate without
special modes/modifiers.

Fixes #7423.
2023-12-08 09:28:50 +04:00
Kirill Chibisov 1a143d11d3 Fix trigger of normal bindings in mouse mode
We should ensure that the `Shift` is actually pressed when trying to
prefer regular bindings instead of the ones if we had Shift applied.

Fixes: 500b696ca8 (Prefer exact matches for bindings in mouse mode)
Fixes #7415.
2023-12-08 09:09:01 +04:00
Kirill Chibisov e34762beae Update to crossfont 0.6.0 2023-12-08 01:33:33 +04:00
Kirill Chibisov cb03806e2a Implement kitty's keyboard protocol
The protocol enables robust key reporting for the applications, so
they could bind more keys and the user won't have collisions with
the normal control keys.

Links: https://sw.kovidgoyal.net/kitty/keyboard-protocol
Fixes #6378.
2023-12-06 09:26:07 +04:00
Kirill Chibisov 7c9d9f3b16 Fix chars usage inside the mouse bindings
Fixes #7413.
2023-12-06 01:36:28 +04:00
Kirill Chibisov f94f4fd4be Don't use ::* for enum variants in bindings 2023-12-03 08:11:28 +04:00
Kirill Chibisov 28364792b3 Fallback to underline shader when dotted fails
Some hardware is just bad.

Fixes #7404.
2023-12-02 03:52:51 +04:00
Kirill Chibisov 546d5951aa Optimize undercurl shader
This removes the if and lowers amount of operations.
2023-12-01 21:40:20 +04:00
Kirill Chibisov 28d913cfd0 Fix DECRPM reporting
The DECRQM uses `p` to query, but the reply uses `y`.

Fixes #7397.
2023-11-29 01:44:59 +04:00
Kirill Chibisov 5adfc4fb00 Adjust default Vi's SearchBackwards binding
We have the same policy with Shift for numbers.
2023-11-28 03:03:29 +04:00
Cédric Van Rompay b8f6a250e7 Document macOS shortcuts for search 2023-11-27 14:39:52 +00:00
Kirill Chibisov 54889fc4ff Make AA stronger for undercurl
This improves undercurl rendering preserving its original thickness.
This also makes it look not out-of place when places next to other
lines.
2023-11-24 23:57:43 +04:00
Kirill Chibisov 3bb4fb78b4 Bump dependencies
Update dependencies with `cargo update` as well as do explicit update
of winit, crossfont, and regex-automata.
2023-11-24 20:22:01 +04:00
Kirill Chibisov 6017326d82 Fix IME popup positioning
When setting cursor area, the popup will be placed either above or
below not obscuring the supplied region, however we were still
offsetting line with `+1` putting the cursor at the bottom of the line,
and given that area is from the top-left corner, the wrong area
was marked for not being obscured.

It was also discovered that some compositors, like GNOME, position
IME in the bottom right corner of the supplied region, which is wrong,
but it renders IME popup not very useful, since it's far away from
the place it should be, thus try to not obscure just a few characters
near the cursor.

Given that X11 doesn't support area setting, it uses the old logic
with offsetting.

Co-developed-by: lilydjwg <lilydjwg@gmail.com>
Signed-off-by: lilydjwg <lilydjwg@gmail.com>
2023-11-24 19:24:42 +04:00
Kirill Chibisov 1152aea66a Damage entire window on font size change
Font size could change without changing the cell dimensions, like
becoming slightly higher/wider.

Fixes: 40160c5d (Damage only terminal inside `alacritty_terminal`)
2023-11-24 17:14:06 +04:00
Kirill Chibisov 0b41841305 Add migrate to alacritty(1) 2023-11-24 03:01:10 +04:00
Kirill Chibisov 48b1dc8101 Fix default for [[hints.enabled]] in man pages
The default was incomplete, since `command` was missing.
2023-11-24 03:01:10 +04:00
Kirill Chibisov da69839c6b Drop repo link in *SEE ALSO* man sections
The alacritty documentation is fully present inside the man pages, the
repo provides nothing extra other than a way to report issues, which
lives in its own section anyway.
2023-11-24 03:01:10 +04:00
Kirill Chibisov 0a9e40ba73 Add example for [window] section in alacritty(5)
This should give a hint on how to generally tweak things.
2023-11-24 03:01:10 +04:00
Kirill Chibisov 8c1b1b8538 Improve section to TOML section refs
This should give more hints where to put things.
2023-11-24 03:01:10 +04:00
Kirill Chibisov a024822568 Explicitly use = in alacritty(5)
This should help with understanding how to write TOML
without reading too much into specification.
2023-11-24 03:01:10 +04:00
Kirill Chibisov 357c2e0ae4 Make man pages look consistent
Part of the man pages were using _value_, other part were using just
value, thus make everything as _value_.

Also properly dot terminate and add spacing through out the man pages.
2023-11-24 03:01:10 +04:00