Commit Graph
2430 Commits
Author SHA1 Message Date
Christian Duerr 00a516abc7 Fix search for fullwidth chars in the last column
This fixes an issue for fullwidth characters where the `WRAPLINE` flag
would be checked for the cell containing the wide character, ignoring
the spacer after it.

To work around this, the wrapline character is now always checked based
on the cell *after* fullwidth expansion, instead of the original cell.

Closes #8586.
2025-05-26 17:58:59 +09:00
Christian Duerr b02e4fce05 Add changelog entry for 71feeee 2025-05-21 15:34:10 +09:00
Christian Duerr 4db89382f6 Fix hint binding IPC overrides
This fixes an issue where changes made to the bindings of a hint through
IPC were completely ignored, since the hint key bindings were only
generated on config load without regeneration on IPC config override.

While it would be possible to just filter out remove hint key bindings
based on their action and then repopulate them on IPC config reload,
this solution would be quite hacky.

To have a better distinction between traditional and hint key bindings,
the two have been entirely separated and hint bindings are just
converted to key bindings on demand. This allows easily replacing the
entire hint array without any post-processing, making it simpler to
maintain for future changes.

Closes #8568.
2025-05-21 00:51:48 +00:00
Christian DuerrandFletcher Gornick 71feeeeccc Add * # { } vi motions
This patch adds Vi's semantic search and paragraph motion.

The semantic search uses either the selection or the semantic word under
the cursor and jumps to the next match in the desired direction.

Paragraph motion jumps to just above or below the current paragraph.

Closes #7961.

Co-authored-by: Fletcher Gornick <fletcher@gornick.dev>
2025-05-20 23:53:03 +00:00
Derek V. Schmalenberger 2bc1bb49e9 Add missing build dependency to zypper docs 2025-05-20 23:38:45 +00:00
Rafael Ortega Estévez cd2be6663e Remove libfreetype6-dev from Debian build deps
Closes #8115.
2025-05-19 05:39:38 +00:00
Kirill Chibisov def47a5dd5 Fix disambiguation for Enter/Tab/Backspace
The keys were not disambiguated, but they should be. Was just an
oversight.
2025-05-03 07:05:22 +09:00
Nathan Lilienthal a0c4dfe962 Update yanked 0.5.13 crossbeam-channel version 2025-04-11 02:08:21 +00:00
Travis Harmon d716fe4e83 Apply glyph offset to strikeout position 2025-04-08 00:07:29 +00:00
Kirill Chibisov 15f1278d69 Clamp offscreen damage
This could happen if the terminal is very small and cell is not entirely
visible, thus having bounds outside the terminal width/height.
2025-03-23 19:44:43 +03:00
frazou 5a68e98db0 Fix selection clearing in kitty keyboard mode
When Kitty's keyboard protocol is used and Report all keys as escape
codes flag (8) is enabled, modifier key escape codes trigger the usual
"write something to the terminal" code path, which clears the selection
/ scrolls down etc.

This behavior is mostly unexpected, and makes some actions more painful
to perform (for instance copying text becomes harder: hitting CTRL to
begin the CTRL+SHIFT+C sequence clears the selection).

This patch clears the selection only if the key event is not a modifier
key, which aligns with Alacritty's usual behavior.

Fixes #8509.
2025-03-15 22:14:35 +00:00
03c2907b44 Hide macOS login message with ~/.hushlogin present
On macOS every shell is a login shell, which will always print
information about the last login when the terminal is started. The macOS
standard for disabling this is to place a `.hushlogin` file in the
user's home directory, but this did not work with Alacritty since
`login` only looks for this file in the current directory.

To ensure the login message is properly suppressed, Alacritty's default
shell will now check for the presence of the `.hushlogin` file in the
user's home directory and append `-q` to the `login` arguments if it is
present, which will behave as if a `.hushlogin` file was found by
`login`.

Co-authored-by: Thomas <thomas@zed.dev>
Co-authored-by: Anthony <anthony@zed.dev>
2025-02-20 02:12:29 +00:00
Christian Duerr be911fead8 Add latest release to changelog
This is only an update to the development version and does not represent
a stable release.
2025-02-17 14:27:54 +00:00
Kirill Chibisov 6fefa78eaf Don't report unshifted key when Shift was not pressed 2025-02-09 08:39:01 +03:00
3c7a323ef5 Dont fail exec() on deleted directories
Use the `std::env::set_current_dir` from the `pre_exec` and ignore
error, since not changing working directory is a side effect which
shouldn't break spawning a program or block window creation.

Signed-off-by: Tycho Andersen <tycho@tycho.pizza>
Co-authored-by: Kirill Chibisov <contact@kchibisov.com>
Co-authored-by: Christian Duerr <contact@christianduerr.com>
2025-02-08 11:01:56 +03:00
Kirill Chibisov 441c9c6eb3 Bump winit to 0.30.9
Fixes #7916.
2025-02-06 20:37:40 +03:00
Kirill Chibisov 463a867984 Bump vte to 0.15.0 2025-02-04 18:23:07 +03:00
Kaylem Brown-Malone 5b189bca68 Add backslash to invalid characters for URL regex
This adds the `\` character to the list of characters which will
terminate matches in Alacritty's default hint for URL recognition.
2025-01-29 01:29:22 +00:00
Andrew Borg (Kashin) 5e78d20c70 Add option to drain PTY on shutdown
This patch removes the `hold` option on `alacritty_terminal` in favor of
a `drain_on_exit` option, which will drain the PTY before shutdown. The
hold logic is instead handled in `alacritty`.
2025-01-16 15:04:21 +00:00
Christian Duerr c9c41e637a Fix OpenGL reset changelog entry 2025-01-14 09:41:35 +03:00
Kirill Chibisov bc3b7a2c1f Error when failed to create socket with --daemon
The daemon without socket is not that useful.
2025-01-14 00:03:52 +03:00
Kirill Chibisov 05368ea6a7 Bump vte to 0.14.1
This fixes a crash with partial utf8 input and also speeds up parsing
in some cases.
2025-01-13 02:32:42 +03:00
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