Commit Graph
2171 Commits
Author SHA1 Message Date
Kirill Chibisov bfcebbcd38 Add bindings for macOS tabs
This doesn't represnet the movement to add tabs on any other platform,
unless winit could add a similar API for them.
2023-09-04 03:01:12 +04:00
Kirill Chibisov a189861880 Update winit to 0.29.1-beta
Make use of new winit frame throttling mechanism used in RedrawRequested,
which removes the need for having Wayland queue to ask for the frame
callbacks.

Fixes #7011.
2023-09-04 03:01:12 +04:00
Kirill Chibisov bbc02004b8 Add examples to more sections
Some sections were provided without a default, so provide an example for
them.
2023-09-04 02:25:53 +04:00
Kirill Chibisov bcc90872de Quote None consistently inside the man page
`None` must be inside the `"`, since it's a string value.
2023-09-04 02:25:53 +04:00
Arhum Jain a6a47257a3 Change window.padding from u8 to u16
Fixes #6900.
2023-09-02 10:54:48 +04:00
Christian Duerr c83f963eaa Fix crash with anchored searches
While this does **not** enable the use of anchors (`^`) in user regexes,
it does prevent Alacritty from crashing when attempting to do so.
2023-08-31 04:10:17 +04:00
Christian Duerr 73276b6207 Update regex-automata to v0.3.6
This seems like a sensible first step before looking into #7097.
2023-08-27 16:48:55 +00:00
Max Brunsfeld 3330614219 Remove winit dependency from alacritty_config 2023-08-17 17:33:29 +00:00
Pavel Roskin 6143b3f4eb Fix decorations_theme_variant spelling in manpage 2023-08-13 23:38:04 +00:00
Christian Duerr bbe3174381 Copy global IPC options for new windows
This patch stores all options set for the Window ID `-1` and
automatically applies them to new windows after their creation.

This in theory makes it possible to have a fully dynamic "default
config" without having to reapply it for every new window.

Closes #7128.
2023-08-08 01:14:53 +04:00
Sonu Bardai 35e1bb128b Apply transparent background colors to "UI" cells 2023-08-07 01:41:38 +00:00
tv 34b3be775d Ignore scrolling multiplier on touchscreens 2023-08-05 19:08:38 +00:00
Kirill Chibisov 7b9f32300e Use ahash instead of fnv and regular hash function
After evaluation of the ahash with the data alacritty uses it was
discovered that it's 1.5-2x times faster when getting the already
hashed values, which is the primary cases for alacritty's renderer.

Given that ahash is generally faster, all the HashSet and HashMap's
inside the alacritty were changed to use it as a hasher function.
2023-07-24 06:11:25 +00:00
Kirill Bulatov d20cce9401 Make URL_REGEX more strict 2023-07-22 19:58:52 +00:00
Kirill Chibisov 67a433ceed Skip whitespaces for wide chars in preedit
While we skip the spacers for the wide characters in the grid due to
them having a proper flags, the draw_string method was generating the
cells with incorrect flags leading to wide chars being cut off.
2023-07-22 19:05:12 +00:00
Kirill ChibisovandChristian Duerr 0c94e4ae7b Add terminal config section to control OSCs
Some environments demand certain OSC sequences to be disabled or
some escape sequence could require handling which is out of scope
of alacritty, but could be done by external script (OSC 777).

Added section for now just handles the `OSC 52` sequence and changes
its default to be `OnlyCopy`, which is handy for remote copy, but
`Paste` is redundant because normal `Paste` hotkey could be used as
well.

Fixes #3386.

Co-authored-by: Christian Duerr <contact@christianduerr.com>
2023-07-22 18:31:35 +00:00
Kirill Chibisov f2e543880f Mention Forward/Back mouse buttons in man page
They were mentioned only in the changelog, but forgotten in the man
page.
2023-07-21 09:57:47 +00:00
Kirill Chibisov 2101d5ac37 Fix keys like + not working on neo layouts
The key_without_modifier removes all the modifiers including the
multiple shift levels, which is not desired. In alacritty we
just wanted to treat uppercase and lowercase latters the same,
which we can with the help of builtin functions.
2023-07-20 17:42:47 +00:00
Christian DuerrandKirill Chibisov bf671412ce Fix manpage docs for shell section
Closes #7087.

Co-authored-by: Kirill Chibisov <contact@kchibisov.com>
2023-07-20 13:27:31 +00:00
Kirill Chibisov 044d922601 Use bracketed paste only for multi-char IME input
Some IME setups do only `commit` single char input, like fcitx5 when
doing ru input.
2023-07-20 08:21:47 +00:00
Andrea Frigido 52a004cce4 Fix license syntax
This patch updates the license field to follow the SPDX 2.1 license
expression standard.
2023-07-19 23:07:55 +00:00
Pavel Roskin 395ad40bc1 Remove unnecessary mutable references 2023-07-18 20:42:35 +00:00
Kirill Chibisov 31fe27b237 Use lowercase latters in bindings for h/m/l
They were using uppercase latters, however our config expects everything
as lowercase, because we're using `key_without_modifiers` +
`ModifiersState`.
2023-07-18 05:55:38 +00:00
Kirill Chibisov 296eb55460 Mention all the actions in the man page
A lot of actions were left without a notice, so the only way to figure
out some of them was to browse source code. An example of such
actions were `Maximize` and `Minimize`, since we don't have a binding
for them, so they were left even in alacritty-bindings(5).

Explicitly list all the bindings we have. The search bindings were
also not accurately restricted, since we allow them to be executed
inside regardless of mode.
2023-07-16 03:46:47 +00:00
Kirill Chibisov fe2df1b5b2 Prefer logical key for named keys
Some keyboard layouts have named logical keys via shift combinations
of some sorts. So prefer them.

Fixes #7076.
2023-07-13 15:43:19 +00:00
Kirill Chibisov 04ea367e3b Raise double click threshold to 400ms
This should improve the situation with some touchpads. GTK4 is also
using the same value.
2023-07-13 05:31:26 +00:00
Kirill Chibisov da7d7c00e4 Unset XDG_ACTIVATION_TOKEN in alacritty_terminal
This variable is what being used for Wayland's activation stuff.
2023-07-13 05:05:02 +00:00
Kirill Chibisov c8cbd0edc1 Fix window.option_as_alt=Both
Fixes #7077.
2023-07-13 04:47:50 +00:00
Nick ReilinghandChristian Duerr fce7fda3ba Fix configuration link typo
Co-authored-by: Christian Duerr <contact@christianduerr.com>
2023-07-12 00:48:08 +00:00
Kirill Chibisov db903503df Update to the new winit keyboard API
The main highlight of this update is that alacritty will now use new
keyboard API from the winit, which resolves a lot of issues around
key bindings, such as ability to bind dead keys. It also fixes long
standing issues with the virtual key code bindings and make bindings
in general more predictable. It also makes our default Vi key bindings
fully working.

Given that alacritty was using `VirtualKey` directly in the bindings
from the winit, and winit simply removed the enum, we've added internal
conversions to minimize the fallout, but new way to specify the bindings
should be more intuitive.

Other part of this update fixes some forward compatibility bugs with the
Wayland backend, given that wayland-rs 0.30 is fully forward compatible.
The update also fixes weird Maximized startup issues on GNOME Wayland,
however they were present on any sane compositor.

Fixes #6842.
Fixes #6455.
Fixes #6184.
Fixes #5684.
Fixes #3574.
Fixes #3460.
Fixes #1336.
Fixes #892.
Fixes #458.
Fixes #55.
2023-07-11 02:22:14 +00:00
Yug Shende 09c4471b4c Create man5 directory along with man1 2023-07-10 02:08:41 +00:00
Pavel Roskin acbf8e581e Update binding sections in config manpage 2023-07-07 21:37:50 +00:00
Kirill Chibisov edf4df66c9 Fix legacy bindings taking precedence over new ones
They were compared by len, but it's was wrong from the start, since
a user provided binding could remove more than one builtin binding,
so it was impossible for users to use their own bindings.

The most reliable way to do so is to use `Option`, given that we fill
default during deserialization.

Fixes #7050.
2023-07-03 06:16:33 +04:00
Kirill Chibisov 4ad1aa321f Add a note in README about older versions
Unfortunately it's not clear to everyone that they are looking at the
development documentation.
2023-07-02 01:23:27 +04:00
Kirill Chibisov 104ae3665c Add version 0.12.2 to CHANGELOG
This is only an update to the development version and does not represent
a stable release.
2023-07-01 22:13:24 +04:00
Christian Duerr 279d51d489 Add manpage links to "see also" section 2023-07-01 16:41:09 +04:00
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