Commit Graph
2135 Commits
Author SHA1 Message Date
Kirill Chibisov 1a67fc35f0 Change the default colorscheme
The new colorscheme is base16 classic dark with the bright colors
generated with oklab toolkits. The base16 classic dark is less washed
out and represents the current maintainers preference. The motivation
to change it was subjective, though it does look like generic dark
theme.

On a side note, this colorscheme was used for alacritty.org web page for
a long time, however it used different foreground color.
2023-06-29 23:08:18 +04:00
Sonu Bardai df00be25c6 Remove mouse double_click/triple_click options
Fixes #6962.
2023-06-29 17:17:54 +04:00
Christian Duerr 9fcdb059bf Add TOML migration recommendation to warning
This adds a little recommendation to use `alacritty migrate` to
automatically transition configuration files from YAML to TOML.
2023-06-26 02:07:41 +04:00
Kirill Chibisov 43b7c1774c Update wix on the release CI
Fixes #6939.
2023-06-26 01:01:50 +04:00
Pavel Roskin@fredizzimo@grueslayer
b9c886872d Add support for loading conpty.dll
Co-Authored-By: @fredizzimo
Co-Authored-By: @grueslayer
2023-06-19 18:29:17 +00:00
Kirill Chibisov ee93824358 Fix the crash when shrinking scrolled terminal
display_offset was adjusted unconditionally, thus it could go
beyound the history limits, so clamp it to history like we do
in grow_colums.

Fixes #6862.
2023-06-17 21:55:12 +00:00
Christian Duerr cb48ac9207 Add errors for deserializing with unknown fields
Currently there are still some places where `Deserialize` is used rather
than `ConfigDeserialize`, which means that the built-in warning for
unused fields is not emitted automatically.

To ensure users don't have invalid configurations, the
`#[serde(deny_unknown_fields)]` annotation has been added to these
structs, making it a hard error when an unknown field is present.
2023-06-17 20:41:28 +00:00
Pavel Roskin 474ee4bb75 Fix parsing of integer font sizes
Config file conversion broke parsing of the font size value if it's
written as an integer, since TOML integers are always signed.
2023-06-17 19:51:06 +00:00
Kirill Chibisov 727531406c Fix freeze with some drivers when using GLX
Fixes #6972.
2023-06-17 00:58:29 +00:00
Christian Duerr afffdbe612 Fix alacritty msg config toml replacement
This fixes a regression introduced in bd49067 which broke the override
of configuration file variables using `alacritty msg config`.

To fix this the `replace` functionality was rewritten to behave more
like the `serde_utils::merge` where entire values are inserted into the
existing structure rather than separating the keys from the values.

Fixes: bd49067 (Switch to TOML configuration format)
2023-06-15 08:59:12 +00:00
Sonu Bardai be03effdbe Add option to persist hints after selection
Closes #6976.
2023-06-15 00:03:38 +00:00
Christian Duerr cad0cbeca6 Fix warnings for config imports
Closes #6996.
2023-06-14 05:41:33 +00:00
Kirill Chibisov 2ad28b5378 Change the way we refer to IRC chat 2023-06-13 04:54:17 +00:00
Christian Duerr bd4906722a Switch to TOML configuration format
This switches Alacritty's default configuration format from yaml to
toml. While yaml is still supported, it is done by converting it to toml
and should be removed entirely in the future.

All existing features were persisted based on my testing. Behavior
should not change much, though `--option` might have slightly different
behavior since the entire line is not interpreted as one line of toml.

A new `alacritty migrate` subcommand has been added which allows
automatic migration from yaml to toml. This also could be used as a
facility to automatically fix configuration file changes in the future.

Closes #6592.
2023-06-12 00:23:41 +00:00
Christian Duerr ea2c39e65d Add resolver to workspace manifest
This explicitly specifies resolver "2" in the root manifest, to fix a
warning introduced in a recent nightly release.
2023-06-11 18:58:30 +00:00
Pavel RoskinandChristian Duerr 724f3be3c9 Bump dependencies
Co-authored-by: Christian Duerr <contact@christianduerr.com>
2023-06-11 06:31:29 +00:00
Kirill Chibisov 4b92388396 Fix crash on ScaleFactorChange on Windows
Windows is known to send zero sizes from winit in Risezed and now
in ScaleFactorChanged events. They were handled in Resized, but
not in ScaleFactorChanged.

Fixes #6949.
2023-06-02 16:11:43 +03:00
maierdandChristian Duerr d94cb6be99 Fix Makefile manpage generation
Signed-off-by: Dennis Maier <d.maier94@web.de>
Co-authored-by: Christian Duerr <contact@christianduerr.com>
2023-05-29 09:22:15 +00:00
Christian Duerr e3746e49a1 Move manpages to scdoc
This rewrites the existing manpages to use the `scdoc` format, making it
simpler to read and edit the manpages without intricate roff knowledge.

Some minor changes to the manpages were made in the process, mostly
focusing on correcting some of the wording. The list of maintainers has
also changed to ensure people not involved in the project anymore aren't
unnecessarily contacted for support.
2023-05-28 10:13:09 +00:00
Kirill Chibisov 32ea98deeb Fix hyperlink preview for 2 lines terminal (#6953)
The intention was to show it, however it was hidden due to wrong
comparisson check.
2023-05-25 07:52:15 +03:00
Christian Duerr 65a5bed2e1 Fix 216-color cube generation
This fixes a regression introduced in cb7ad5b which swapped the green
and blue values when constructing the 216-color RGB cube.

Fixes #6951.
2023-05-25 05:04:21 +03:00
Anhad SinghandChristian Duerr cb7ad5b7e6 Switch to VTE's built-in ansi feature
Co-authored-by: Christian Duerr <contact@christianduerr.com>
2023-05-23 20:35:58 +00:00
Kirill Chibisov f0379f2da7 Add version 0.12.1 to CHANGELOG 2023-05-22 03:06:19 +03:00
Kirill Chibisov 36301e4195 Improve renderer debuggability
Make the renderer more debuggable by adding extra logging and using
`GL_KHR_debug` when running with the debug log level.
2023-05-21 04:06:15 +03:00
Kirill Chibisov 6e7f466c68 Update patch dependencies 2023-05-17 08:36:41 +03:00
Kirill Chibisov 6f6ad2b2ee Update clap to v4.2.7
Fixes #6879.
Fixes #6874.
2023-05-17 08:36:41 +03:00
Kirill Chibisov 04811c674b Update xdg and dirs crate
The recent version on xdg crate moved to home crate which is used
by cargo. Thus to query for home directory we can use the home
dependency instead which is smaller.
2023-05-17 08:36:41 +03:00
Kirill Chibisov b1feba6916 Update bitflags to 2.2.1 2023-05-17 08:36:41 +03:00
Kirill Chibisov a6488a3e5e Fix upload from CI on windows 2023-05-16 08:35:02 +03:00
Kirill Chibisov 0b32cfbb59 Update glutin to 0.30.8 and winit to 0.28.6
Fixes #6920.
Fixes #6824.
2023-05-16 03:03:11 +03:00
K.B.Dharun Krishna 828fdab747 Bump actions/checkout to v3
Fix Node 12 deprecation warnings in action runs.
2023-05-10 16:36:40 +03:00
Kirill Chibisov 9a5b4850f8 Fix very long startup time on some Wayland systems
This is not a real fix for the issue given that dbus method sctk-adwaita
is using will being called anyway. The proper fix will be available
with the winit's 0.29.0 release.

Right now the delay reduced from around 20 seconds to 100ms on a
systems with broken xdg-desktop-portal setup.
2023-05-07 23:05:23 +03:00
Kirill Chibisov 9910d650d7 Bump winit to 0.28.5
The 0.28.4 was yanked.
2023-05-06 22:32:13 +03:00
Kirill Chibisov 3636383b26 Add ALACRITTY_EXTRA_LOG_TARGETS env variable
This should help with troubleshooting the dependency crates like winit.
2023-05-04 23:59:55 +03:00
Kirill Chibisov 934d6a2dd7 Bump winit to 0.28.4
Fixes #6817.
2023-05-04 21:17:37 +03:00
Kirill Chibisov ead65221eb Omit urgency hint focused window 2023-04-15 19:21:10 +00:00
Christian Duerr 586f982a26 Allow mode-exclusive bindings in any mode
This patch enables binding chains that go beyond mode changes by
allowing bindings to be defined for modes they do not usually have an
effect in.
2023-04-15 03:09:27 +03:00
Christian Duerr 8b0305d3f0 Use paste for ESC action and IME commit
Route string terminal input through 'ActionContext::paste'
instead of char by char write improving performance by
utilizing bracketed paste mode when it's reasonable.
2023-04-15 03:09:27 +03:00
Christian Duerr f89d3bb659 Reset char suppression for every key binding
Previously the character suppression was only reset whenever a key was
released. However this did not take key repetition into account.

Now every key down also resets the character suppression. This should
work since the `ReceivedCharacter` is always received immediately after
the `KeyboardInput` without the chance of a racing condition where
another keyboard event interrupts the two.
2023-04-15 03:09:27 +03:00
Christian Duerr d40198da53 Add missing terminfo capabilities
This adds capabilities for focus in/out (XF, kxIN, kxOUT) and bracketed
paste (BD, BE, PE, PS).
2023-04-08 17:33:12 +00:00
Christian Duerr 2df8f860b9 Fix selection rotation on the last line
This fixes an issue with terminal resizes when the selection is on the
last line. Alacritty would fail to rotate lines and keep the selection
in the same line index whenever the terminal line count was grown or
shrunk.

This issue occurred due to the range passed to the selection's rotate
function still being based on the old terminal size, which caused the
initial or target state of the rotation to be outside of the terminal
bounds.

Closes #6698.
2023-03-24 23:07:20 +00:00
Christian Duerr ef8cc5d63f Bump CHANGELOG development version to 0.13.0-dev
This is only an update to the development version and does not represent
a stable release.

The original bump to 0.13.0-dev was made in 9cf2c89, but did not make
any changes to the changelog. This adds a 0.13.0-dev changelog entry to
master so new changes are properly added to the correct place.
2023-03-22 07:28:18 +03:00
Kirill Chibisov 4b91a1dbe9 Fix ; character in URI OSC 8 payload
The special character `;` can be not URL-encoded, thus it'll add
extra parameter in the payload. Handle it joining extra parameters
with the `;` as a separator.
2023-03-19 18:16:28 +03:00
Kirill Chibisov 2377c0a728 Bump winit to 0.28.3
Fix macOS leak when closing the window.
2023-03-17 13:51:27 +00:00
CRATO LABSandKirill Chibisov 0a1743758b Improve fish completions installation instructions
Co-authored-by: Kirill Chibisov <contact@kchibisov.com>
2023-03-16 16:02:21 +00:00
Kirill Chibisov d0078ffc21 Use thin instead of fat LTO
The performance between `thin` and `fat` is in the margin of error,
however `thin` LTO is way faster to build.
2023-03-11 23:16:49 +03:00
Kirill Chibisov 53322bef61 Bump x11-clipboard to v0.7.1
Fixes #6760.
2023-03-09 14:49:03 +00:00
Kirill Chibisov f5e41d967a Bump winit to 0.28.2
This also bumps copypasta and sctk-adwaita.

Fixes #6744.
Fixes #6702.
Fixes #6696.
Fixes #2741.
2023-03-05 06:21:04 +00:00
Kirill ChibisovandChristian Duerr 66d742d059 Fix busy rendering when the same warning persists
When the same warning is thrown on the each rendering iteration, it'll
force alacritty to always render.

Co-authored-by: Christian Duerr <contact@christianduerr.com>
2023-03-02 21:49:42 +03:00
Christian Duerr bf58748055 Send D&D input through paste action
Treating D&D like paste allows using D&D to input text into areas other
than the PTY, like the search bar.
2023-02-27 10:30:39 +03:00