Commit Graph
2408 Commits
Author SHA1 Message Date
Kirill Chibisov 2290afff02 Bump glutin to 0.32.2
This cleans up context managing.
2025-01-12 22:30:27 +03:00
Kirill Chibisov cd884c984b Try to recover from GPU resets
Use context robustness to get notified about GPU resets
and try to recover from them by rebuilding the rendering
pipeline.
2025-01-11 08:47:32 +03:00
Kirill Chibisov 28910e3adc Fix cut off wide characters in preedit string
The wide char spacers must not be drawn, like we do for regular wide
characters.
2025-01-10 10:59:07 +03:00
Christian Duerr 8ab406d3fd Bump VTE to 0.14.0
Since this is a breaking change, it also bumps the alacritty_terminal
development version to 0.25.0-dev.
2025-01-09 10:02:20 +00:00
Kirill Chibisov 8833551b0d Fix crash during live output search
Sometimes points could end up outside of viewport, thus the screen
will need to be invalidated. The default unwrapping does handle both
cases.

Fixes: a1ed79bd2c (Fix highlight invalidation on grid scroll)
2025-01-09 05:25:53 +03:00
Kirill Chibisov a26174890e Bump development version to 0.16.0-dev
This is only an update to the development version and does not represent
a stable release.
2025-01-06 08:34:20 +03:00
Kirill Chibisov f0e5ec4d05 Fix changelog entries being in past release 2025-01-05 11:42:00 +03:00
Kirill Chibisov e79f4b22d8 Pass activation token in alacritty msg create-window
Fixes #8337.
2025-01-04 12:16:42 +03:00
Kirill Chibisov 8cb359ad02 Bump winit to 0.30.8 2025-01-04 12:16:42 +03:00
Kirill Chibisov 7bda13b8aa Fix report of Enter/Tab/Backspace in kitty keyboard
The behavior changed and now it actually makes sense.

Fix #8385.
2025-01-04 08:40:17 +03:00
Kirill Chibisov c5fccfd980 Rewrite appdata.xml file
This also changes its license to MIT along the way.
2025-01-04 01:29:56 +03:00
Christian DuerrandKirill Chibisov 427d811cb0 Bump VTE to 0.13.1
This updates the VTE crate to the latest version, bringing in a nice SGR
performance boost.

Co-authored-by: Kirill Chibisov <contact@kchibisov.com>
2025-01-04 00:50:25 +03:00
Nathan Lilienthal 8c8d1aad07 Switch readme to absolute image links
This should fix the screenshot image on crates.io.

https://github.com/rust-lang/crates.io/issues/5318
2025-01-03 05:38:29 +00:00
AsciiWolf 0a1e735cf6 Add launchable option to AppStream metadata 2025-01-02 18:57:51 +00:00
Kirill Chibisov 7bd3b8991c Don't switch semantic/line selection when control is pressed
Changing block selection to regular semantic one doesn't feel intuitive,
thus don't switch to it when user has control pressed.
2024-12-29 00:47:47 +03:00
Kirill Chibisov 62d5b134b3 Add CSI Ps I support
The implementation is the same as CSI Ps Z, but forward.
2024-12-28 08:53:18 +03:00
Christian Duerr d45eca8268 Fix window options for initial daemon window
This fixes an issue with daemon mode where the first spawned window
would not use the window options passed to the `create-window`
subcommand, but would instead use the options passed during creation of
the original daemon.

Closes #8371.
2024-12-22 21:05:45 +00:00
Kirill Chibisov 39a7834e57 Bump winit to 0.30.7
Fixes double input on X11 after update to 0.30.6.
2024-12-22 23:30:30 +03:00
Kirill Chibisov def2d488de Bump winit to 0.30.6
Fixes #8268.
2024-12-21 19:00:26 +03:00
Kirill Chibisov 8591a9421d Always explicitly emit 1 without modifiers in kitty encoding
While this doesn't change much with how parsers are implemented, it
improves consistency with how key release is handled.
2024-12-20 00:51:36 +00:00
Christian Duerr 39daaffff9 Apply non-breaking dependency bumps
This fixes a GitHub security alert about hashbrown, which has no
significant impact on Alacritty but still seems wise to fix since it's
so simple.
2024-12-16 19:53:04 +03:00
Integral 8731d157be Remove unnecessary statics 2024-12-09 22:04:43 +00:00
Kirill Chibisov 713e89a6c5 Don't error on nonexistent TOML imports in migrate
YAML import migration was already properly ignoring nonexistent imports,
it was only missed for TOML ones.

Fixes #8330.
2024-11-28 18:41:23 +03:00
Kirill Chibisov 1be20fbe4a Fix recursion limit not working for toml migrate 2024-11-28 18:41:23 +03:00
David Horner 6e9a19fd83 Add window.level config option 2024-11-23 19:20:56 +00:00
Christian Duerr 3ac4904eb5 Fix vi motion with wide semantic escape chars
This patch fixes an issue where the semantic vi motion commands
`SemanticRight` and `SemanticLeft` were not behaving as expected when a
fullwidth character was used as a semantic character.

Closes #8314.
2024-11-22 01:07:08 +00:00
Mads Marquart 4f739a7e2b Switch to new objc2 crates 2024-11-21 00:36:25 +00:00
Christian Duerr 1063706f8e Bump all dependencies
This patch applies all major and minor version bumps, with the exception
of `unicode-width` since it will need to be handled separately for
Unicode version 16.
2024-11-02 21:43:47 +00:00
Christian Duerr fd745a9f4c Fix racing condition in hint triggering
This fixes an issue with hints where it was possible that the terminal
content of highlighted hints changed between the highlighted hint update
and the activation of the hint.

This patch always validates the hint's text content against the hint
itself to ensure that the content is still valid for the original hint
which triggered the highlight.

Closes #8277.
2024-11-02 20:05:51 +00:00
Chris 39ea7271e3 Focus new windows on macOS 2024-11-02 19:23:33 +00:00
Chris Kaiser d552c6b251 Fix shell manpage example 2024-10-31 16:36:27 +00:00
Christian Duerr 0542d9f4f5 Fix hint highlight invalidation
This fixes a couple issues with hint highlight invalidation, which would
cause hints to lose their underline highlight despite the terminal
itself not having changed since the highlight started.

Closes #8270.
2024-10-29 07:02:42 +03:00
Finn2708 c2782ad619 Add g++ dependency to Debian install docs 2024-10-24 17:53:26 +00:00
YizhePKU 2112e90f0d Do not pull serde without serde feature
alacritty_terminal was pulling `serde` via vte even though
serde feature was disabled.
2024-10-21 14:35:17 +00:00
Christian Duerr 6dbd785bc0 Bump development version to 0.15.0-dev
This is only an update to the development version and does not represent
a stable release.
2024-10-18 22:25:57 +00:00
Christian Duerr f90d2964a6 Revert "Add unicode 16 support"
This reverts commit 5dca7a85e7.
2024-10-18 13:47:26 +00:00
Kirill Chibisov 674635c27c Fix pipe FD leak on X11
The pipe was not using O_CLOEXEC, so it was leaked into the child.

Fixes #8249.
2024-10-17 18:10:31 +03:00
Nathan Lilienthal 1cc08ebbf8 Remove dbg! in migration command 2024-10-15 19:21:09 +00:00
Christian Duerr 2a2db5b6fd Add headless mode
This patch adds a daemon mode to Alacritty which allows starting the
Alacritty process without spawning an initial window.

While this does not provide any significant advantage over the existing
behavior of always spawning a window, it does integrate nicer with some
setups and is a pretty trivial addition.
2024-10-15 18:32:50 +00:00
Christian Duerr 6ba69f8dd4 Add IME support to inline search
This changes the behavior of inline search from only accepting direct
key inputs, to also accepting IME and paste. The additional characters
are still being discarded, matching the existing behavior.

This also fixes an issue where inline search wouldn't work for
characters requiring modifiers, since the modifier press was interpreted
as the search target instead.

Closes #8208.
2024-10-15 17:06:59 +03:00
Kirill Chibisov a5bb567c0a Implement multi-char cursor highlight
Use `end` of the cursor to draw a `HollowBlock` from `start` to `end`.
When cursor covers only a single character, use `Beam` cursor instead
of `HollowBlock`.

Fixes #8238.
Fixes #7849.
2024-10-15 11:41:08 +03:00
Kirill Chibisov a2653293a8 Fix panic on missing general config section
Fixes #8230.
2024-10-10 23:23:43 +00:00
Christian Duerr 5dca7a85e7 Add unicode 16 support
This fixes issues in width calculation for symbols added in Unicode
version 16.

Since the upstream unicode-width crate has not been updated yet, this
makes use of the temporary unicode-width-16 version to support Unicode
16 with Alacritty 0.14.0.
2024-10-10 22:56:55 +00:00
Kirill Chibisov c032c89f1c Change ctrl+shift+u to ctrl+shift+o
Avoid collisions with IMEs by using ctrl+shift+o. ctrl+shift+u is bound
to open unicode input in a lot of IMEs by default meaning that users
won't ever see the url hints UI.
2024-10-10 21:01:44 +03:00
Christian Duerr a1ed79bd2c Fix highlight invalidation on grid scroll
This fixes an issue where hints highlighted by vi or mouse cursor would
produce an underline on the incorrect line since the highlights only
store the initial match boundaries without accounting for new content
scrolling the terminal.

To accurately invalidate the hint highlights, we use existing damage
information of the current frame. The existing logic to damage hints for
the next frame to account for removal has been changed, since the hints
would otherwise be cleared immediately. Instead we now mark the terminal
as fully damaged for the upcoming frame whenever the hints are cleared.

Closes #7737.
2024-10-07 01:02:10 +02:00
Christian Duerr 709738f7b5 Remove unused Clone requirements 2024-10-07 01:02:10 +02:00
Kirill Chibisov 6067787763 Remove startup notify variables only for shell
This will prevent issues when `setup_env` from `alacritty_terminal` will
remove potentially useful variables for users of the library.

Fixes #8202.
2024-10-03 01:10:42 +03:00
Kirill Chibisov 58383f4e46 Restructure message bar log message
The first line is not really useful for the user, so move it to the
bottom.
2024-10-02 23:58:14 +03:00
Christian Duerr 3db09595f3 Add migration support for TOML config changes
This patch allows running `alacritty migrate` to automatically apply
configuration changes made to the TOML format, like moving `ipc_socket`
to `general.ipc_socket`.

This should reduce the friction of moving around individual options
significantly, while also persisting the format of the existing TOML
file thanks to `toml_edit`.

The YAML migration has been simplified significantly to only switch the
format of the file from YAML to TOML. The new TOML features are used for
everything else.
2024-10-02 21:38:07 +02:00
Christian Duerr 51089cfeed Move root config fields to [general] section
Some users struggle with TOML, since root options must always be at the
top of the file, since they're otherwise associated with the last table.

To avoid misunderstandings, all root-level fields have been removed. A
new `general` section was added to allow housing configuration options
that do not fit into any more specific groups.

Closes #7906.
2024-10-02 21:38:07 +02:00