Commit Graph
2387 Commits
Author SHA1 Message Date
Christian Duerr 0ccac0f99d Alacritty version 0.14.1-rc1 v0.14.1-rc1 alacritty_terminal_v0.24.2-rc1 2024-12-22 23:22:32 +00:00
Kirill Chibisov b45d2dbe5f Bump winit to 0.30.7
Fixes double input on X11 after update to 0.30.6.
2024-12-22 23:22:32 +00:00
Kirill Chibisov ccbabc9035 Bump winit to 0.30.6
Fixes #8268.
2024-12-22 23:22:32 +00:00
Kirill Chibisov 025a4a84a8 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-22 23:22:32 +00:00
Kirill Chibisov bf77ac5218 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-12-22 23:22:32 +00:00
Kirill Chibisov 21657d2d4b Fix recursion limit not working for toml migrate 2024-12-22 23:22:32 +00:00
Christian Duerr 86b9b3f81d 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-12-22 23:22:32 +00:00
Christian Duerr 1460e185ab 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-12-22 23:22:32 +00:00
Christian Duerr fdc1eccb30 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-12-22 23:22:32 +00:00
Finn2708 9658aa6dfd Add g++ dependency to Debian install docs 2024-12-22 23:22:32 +00:00
Christian Duerr 22a447573b Alacritty version 0.14.0 alacritty_terminal_v0.24.1 v0.14.0 2024-10-22 23:10:01 +00:00
YizhePKU 35549130aa Do not pull serde without serde feature
alacritty_terminal was pulling `serde` via vte even though
serde feature was disabled.
2024-10-22 23:10:01 +00:00
Christian Duerr 948fd7e250 Revert "Add unicode 16 support"
This reverts commit 5dca7a85e7.
2024-10-22 23:10:01 +00:00
Kirill Chibisov 4cf18432c1 Fix pipe FD leak on X11
The pipe was not using O_CLOEXEC, so it was leaked into the child.

Fixes #8249.
2024-10-22 23:10:01 +00:00
Christian Duerr 7552ae7973 Alacritty version 0.14.0-rc2 alacritty_terminal_v0.24.1-rc2 v0.14.0-rc2 2024-10-15 20:12:21 +00:00
Nathan Lilienthal 392e24cd11 Remove dbg! in migration command 2024-10-15 20:12:21 +00:00
Christian Duerr f5add2b77c 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 20:12:21 +00:00
Christian Duerr a720a765b4 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 20:12:21 +00:00
Kirill Chibisov b56a0e86b7 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 20:12:21 +00:00
Christian Duerr 6b3a85606b Alacritty version 0.14.0-rc1 v0.14.0-rc1 alacritty_terminal_v0.24.1-rc1 2024-10-11 16:05:13 +00: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
Neil Stewart c899208e15 Fix app icon in alt+tab view on Windows 2024-09-30 19:07:12 +00:00
Christian Duerr 4a7728bf7f Fix fullwidth semantic escape characters
Semantic escape characters occupying two two grid cells were always
skipped over, making it impossible to have functional fullwidth
characters as part of semantic escape characters.

This patch fixes this by only skipping over fullwidth spacer cells,
rather than skipping those cells entirely.

Closes #8188.
2024-09-22 17:58:16 +03:00
Christian Duerr c74b5fa857 Ignore cursor color request with default colors
Currently when the cursor colors are requested for the default cursor
color, Alacritty always responds with #000000. Since this is most likely
incorrect, this response is misleading.

Realistically there's very little reason why any application would need
to know the color of the (often dynamically changing) default cursor. So
instead of always reporting an incorrect black value, this patch just
stops reporting values unless the cursor color was explicitly changed.

Closes #8169.
2024-09-22 14:34:14 +00:00
Kirill Chibisov 8dfd2e56ad Make alacritty(1) config paths resemble alacritty(5)
This also fixes the escaping in alacritty(5) page.
2024-09-10 17:13:37 +03:00
Dimitri Sabadie 68f04024a3 Improve TermMode bitflags initialization 2024-09-07 00:25:56 +00:00
Hamir Mahal b125b99dd3 Update checkout CI action 2024-08-31 08:35:48 +00:00
philomathic_life 5abb4b7393 Remove duplicate clip-path from logo 2024-08-18 02:10:55 +00:00
张小白 91d034ff8b Make ConPty creation fallible 2024-08-16 17:37:34 +00:00
Kirill Chibisov 102b89a8d9 Fix description in alacritty-bindings(5)
Man pages use the man page name as the first word in description. This
also aligns with other man pages we have.
2024-08-11 17:56:52 +03:00
Hamir Mahal d021a7b6f8 Unify string formatting 2024-07-24 01:37:35 +00:00
Christian Duerr 6bd1674bd8 Restart config monitor on import change
This patch checks the hash of the import paths on every config change
and restarts the config monitor whenever the current monitor's hash
diverges from the updated config's list of imports.

Closes #7981.
2024-07-21 11:49:47 +03:00
Kirill Chibisov c3075f189c Document options which are not working everywhere yet
This includes `window.position` and `window.resize_increments`.
2024-07-18 21:52:18 +03:00
Kirill Chibisov f5e02862ff Bump dependencies
Update winit and clap to latest versions.
2024-07-17 11:02:31 +03:00
Kirill Chibisov 3504246c3f Bump MSRV to 1.74.0 2024-07-17 11:02:31 +03:00
Christian Duerr b3f0f68184 Fix search bug with wrapline on first character
This fixes an issue where an inline search in the left direction would
incorrectly assume that the first cell searched would not contain the
`WRAPLINE` flag, causing the second search for the match end to
terminate prematurely.

Fixes #8060.
2024-07-05 13:12:15 +03:00
Joshua CaoandChristian Duerr 5e6b92db85 Support relative imports in config file
Co-authored-by: Christian Duerr <contact@christianduerr.com>
2024-07-02 19:14:25 +00:00
Kirill Chibisov 138ac426bf Use latest macOS image on CI (#8072)
Old macOS images are deprecated resulting in often failures, thus use 
latest macOS images available.

Also given that macOS is arm64 by default check x86_64 as extra job
and not arm64.
2024-07-02 19:55:26 +03:00
Kirill Chibisov da554e41f3 Bump winit to 0.30.3
Fixes #8046.
2024-06-23 17:56:19 +03:00
Kirill Chibisov 0d4ab7bca4 Bump winit to 0.30.2
Fixes #7969.
2024-06-16 10:37:33 +03:00
Kirill Chibisov 64ba0b8e91 Bump glutin to 0.32.0 2024-06-08 15:28:51 +03:00
Josh Soref cacdb5bb3b Fix spelling errors 2024-05-24 17:32:11 +00:00