1
0
Fork 0
mirror of https://github.com/alacritty/alacritty.git synced 2025-06-16 19:02:00 -04:00
Commit graph

459 commits

Author SHA1 Message Date
Kirill Chibisov
9eb68039dc Bump all dependencies 2025-05-28 14:16:36 +09:00
Kirill Chibisov
ee48fad2cf Fix clippy warnings 2025-05-28 14:16:36 +09:00
Kirill Chibisov
1fb1fd225e Bump MSRV to 1.81.0
Also use workspace to specify that.
2025-05-28 14:16:36 +09:00
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
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
Mikayla Maki
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
Tycho Andersen
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
463a867984
Bump vte to 0.15.0 2025-02-04 18:23:07 +03: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
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
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
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
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
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
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
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
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
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
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
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
Dimitri Sabadie
68f04024a3
Improve TermMode bitflags initialization 2024-09-07 00:25:56 +00:00
张小白
91d034ff8b
Make ConPty creation fallible 2024-08-16 17:37:34 +00: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
Josh Soref
cacdb5bb3b
Fix spelling errors 2024-05-24 17:32:11 +00:00
Jakob Hellermann
e9d4ac2a6b
Fix IO safety violation from consequent dropping OwnedFd
This was not a _real_ violation and was _expected_, though for rust
to not complain clone FD properly...
2024-05-23 18:03:28 +04:00
Christian Duerr
f04b16161b
Fix FD leak after closing child windows
This patch fixes an issue with signal handling where Alacritty would
permanently create one signal handling FD for each alacritty window
created by an instance. This FD was never released, causing a leak of
the FD.

Closes #7983.
2024-05-22 12:25:50 +00:00
Nathan Lilienthal
3cd35dfe7e
Ignore shell RCs for macOS zsh wrapper
Closes #7886.
2024-05-15 22:38:13 +00:00
Kirill Chibisov
48c088a50c
Bump winit to 0.30.0 2024-05-04 20:51:56 +04:00
Christian Duerr
82f41ed65c
Bump alacritty_terminal to 0.24.1-dev
This is only an update to the development version and does not represent
a stable release.
2024-05-03 19:47:41 +00:00
Owen Law
ed3fac8a03
Add from_file_descriptors() to tty::unix 2024-05-01 05:27:54 +00:00
Kirill Chibisov
d28868855a
Fix window being focused by default
Winit explicitly states that the window is not focused by default and
the `Focused` event will deliver the state later on.

Also start adding notable changes to alacritty_terminal in its own
CHANGELOG.

Closes #7866.
2024-04-18 22:58:15 +04:00
Foorack / Max Faxälv
d4f2f8577f
Update homepage and repository in Cargo manifests 2024-03-31 01:57:09 +00:00
Kirill Bulatov
fe88aaa085
Allow setting terminal env vars via PTY options
Closes #7778.
2024-03-18 01:15:39 +00:00
Christian Duerr
5b4e9c9a09 Bump dependencies
This bumps all dependencies that can be updated without introducing a
build failure.
2024-03-18 02:04:54 +01:00
Christian Duerr
275726f784
Fix hint Select action for hyperlink escape
This fixes an issue where the `Select` action for hyperlink escape text
would select the entire line, instead of selecting only the hyperlink
itself.

It also changes the way hyperlinks with the same ID are highlighted,
removing the restriction of being on consecutive lines and instead
highlighting all visible cells that correspond to the matching
hyperlink.

Closes #7766.
2024-03-12 15:15:00 +04:00
Kirill Chibisov
41d2f1df45
Set PTY's pixel size on startup
117719b3 removed the extra call for TIOCSWINSZ, however the initial
`openpty` call itself did not set the pixel size, which caused issues
with some clients.
2024-03-09 21:58:12 +00:00
Kirill Bulatov
f5646ba352
Send exit code events on child process exit
Fixes #7753.
2024-03-09 15:32:32 +04:00
Small White
992011a4cd
Expose more process info on Windows 2024-03-07 12:56:21 +04:00
huajin tong
6dbb3ff900
Fix log typos 2024-03-06 22:55:41 +00:00
Dimitris Apostolou
93e3de7c31
Fix feature = "cargo-clippy" deprecation 2024-02-28 22:09:07 +04:00
Christian Duerr
f1853a031d
Fix regional scrolling leaking into history
This fixes an issue where a scrolling region that does not start at the
top of the screen would still rotate lines into history when scrolling
the content "upwards".
2024-02-14 04:59:56 +04:00
Alexandru Placinta
5c4469ffa7
Fix row indexing with inclusive ranges 2024-02-11 22:53:57 +00:00
Kirill Chibisov
117719b321
Remove extra TIOCSWINSZ ioctl on startup
The openpty call already performs it, thus no need to call it one more
with the exact same size since it confuses some applications.
2024-02-08 15:32:55 +04:00