Commit Graph
2266 Commits
Author SHA1 Message Date
Lars Francke a00cb3edc6 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-06 08:59:54 +01:00
Kirill Chibisov f5ed831c30 Bump winit to 0.29.8
Fixes #7514.
Fixes #7502.
Fixes #7494.
Fixes #7474.
Fixes #7472.
2024-01-06 08:59:54 +01:00
Kirill Chibisov 3d858c7c8d Remove note about versions pre 0.13.0 2024-01-06 08:59:54 +01:00
Kirill Chibisov 22abb78c35 Powerline glyphs being cut for narrow fonts
Fixes #7470.
2024-01-06 08:59:54 +01:00
Kirill Chibisov e297c6bf0c Send associated text for shifted numbers with kitty
Also fix the wrong ordering of base and shifted keys.

Fixes #7492.
2024-01-06 08:59:54 +01:00
Kirill Chibisov 53927d686a Don't substitute \n in char bindings
This broke unintentionally due to routing paste-like input
via paste function.

Fixes #7476.
2024-01-06 08:59:54 +01:00
Hyper 1bed41fc76 Passthrough potential errors for EventLoopSender 2024-01-06 08:59:54 +01:00
Kirill Chibisov 1991496eb1 Fix inability to bind Alt+Control on Windows
Fixes #7506.
2024-01-06 08:59:54 +01:00
Kirill Chibisov 9957597e22 Use pre-composed key for Alt bindings on macOS
Fixes #7475.
2024-01-06 08:59:54 +01:00
Philip Dubé 01d7640569 Remove direct dependency on once_cell
With MSRV 1.70, std now contains the necessary parts.
2024-01-06 08:59:54 +01:00
Christian Duerr 047152acb8 Fix alacritty migrate with nonexistent imports
Fixes #7473.
2024-01-06 08:59:54 +01:00
Hyper 8465c2e6df Derive Clone for EventLoopSender 2024-01-06 08:59:54 +01:00
Kirill Chibisov 882954cb48 Mark SimpleFullscreen as macOS only startup mode 2024-01-06 08:59:54 +01:00
Christian Duerr 78fa4d6feb Alacritty version 0.13.0 v0.13.0 alacritty_terminal_v0.20.0 2023-12-27 22:13:35 +01:00
Kirill Chibisov 34d170c963 Bump winit to 0.29.7
This also bumps other dependencies along the way.

Fixes #2886.
2023-12-27 22:13:35 +01:00
Kirill Chibisov 38fcdb600a 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-27 22:13:35 +01:00
Christian Duerr b8acfdae19 Alacritty version 0.13.0-rc2 alacritty_terminal_v0.20.0-rc2 v0.13.0-rc2 2023-12-22 10:42:02 +01:00
Kirill Chibisov c75cda36f2 Keep IME always enabled on X11
Fixes #7195.
2023-12-22 10:42:02 +01:00
Kirill Chibisov 476bebdadc Bump winit to 0.29.5
Fixes #7449.
2023-12-22 10:42:02 +01:00
Kirill Chibisov 813c8394de 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-22 10:42:02 +01:00
Kirill Chibisov 5d94e9ebee Fix the order of ClearSelection in Vi mode
Fixes #7438.
2023-12-22 10:42:02 +01:00
Christian Duerr 53290c9e10 Add link to rendered config docs
This adds a link to alacritty.org's rendered configuration file
documentation.
2023-12-22 10:42:02 +01:00
Christian Duerr ada35aeb70 Alacritty version 0.13.0-rc1 v0.13.0-rc1 alacritty_terminal_v0.20.0-rc1 2023-12-14 03:46:34 +00: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
Kirill Chibisov b79b1d747d Fix SelectLastTab in alacritty-bindings(5) 2023-11-24 03:01:10 +04:00
Kirill Chibisov b54747ce5e Make sections the same case in man pages 2023-11-24 03:01:10 +04:00
Kirill Chibisov b34a5e439a Create only one branch per major release
Having a separate branch for each release makes it harder to maintain
without an actual benefit, since every release from the major version
is linear, so creating branches doesn't make any sense.

They also collapse with the tag names leading to ambiguous refs.
2023-11-24 02:33:14 +04:00