Commit Graph
2209 Commits
Author SHA1 Message Date
Kirill Chibisov 85ec03633b Fix message bar damage
Fixes #7224.
2023-11-13 17:31:10 +04:00
Kirill Chibisov bd2dfa7a55 Fix visual bell getting stuck on macOS
Fixes #7325.
2023-11-13 17:10:47 +04:00
Kirill Chibisov dc46d41ff9 Change default bell.animation to Linear
The default animation feels really choppy, but it's just how its
function looks.
2023-11-13 02:19:03 +04:00
Christian Duerr 2f097dac5c Add --option argument to create-window
This patch adds a new CLI parameter to the `create-window` subcommand,
matching the existing `--option` parameter when creating a new Alacritty
instance.

This parameter allows setting up the initial window configuration from
the CLI without having to call `alacritty msg config`, making sure that
all options are set appropriately right from the start.

Closes #6238.
2023-11-11 20:33:06 +01:00
Christian Duerr 683b5a2cb4 Unify CLI config override mechanisms
This patch changes the way the `-o` config option works when specified
at startup to function the same way as the IPC mechanism.

While this should technically perform the exact same way, it should
hopefully make it a little easier to understand how CLI config
replacement works.
2023-11-11 20:33:06 +01:00
Kirill Chibisov 4a26667060 Use builtin font to draw powerline symbols
In addition to box drawing it was decided to also draw powerline
symbols, since those are quite common and rather simple to draw with
present box drawing infra.
2023-11-11 19:28:19 +04:00
Kirill Chibisov 7ea927ffc1 Fix cursor being hidden after reaching timeout
The timeout and blink events could be delivered at the same time,
so canceling blinking won't work and we'll still have an event.
2023-11-10 21:09:43 +04:00
Kirill Chibisov 5060f8eeb8 Remove alacritty_config from alacritty_terminal
There's no need to force alacritty's user configuration on
other users of the crate, thus provide the options actually used
by alacritty_terminal itself.
2023-11-10 18:16:22 +04:00
Julian Braha 3ffd6c8f26 Bump ahash to 0.8.6 2023-11-04 01:19:48 +04:00
Christian Duerr 46f8e39880 Fix crash when leaving search after resize
This fixes a crash which could occur when leaving search with a visible
match after shrinking the terminal height to be lower than the original
line the focused match was in.

Closes #7054.
2023-11-03 04:50:45 +00:00
Kirill Chibisov 609499640f Bump glutin to 0.31.1
This fixes a crash on startup with macOS Sonoma.
2023-10-30 03:15:07 +04:00
Kirill Chibisov 4b6ff13113 Add man 5 pages to upload_asset.sh
They are compiled, but not being uploaded.
2023-10-30 01:54:42 +04:00
Kirill Chibisov a0663c5225 Add window.blur config option
Fixes #972.
2023-10-29 16:18:33 +04:00
Pavel Roskin 0db2fc7865 Fix clippy warnings 2023-10-29 00:53:31 +00:00
Kyle WillmonandChristian Duerr 308b331cbc Avoid maximizing window when creating new tab
This patch ignores the startup mode when creating a new tab on macOS to
avoid maximizing an existing window.

Co-authored-by: Christian Duerr <contact@christianduerr.com>
2023-10-27 17:35:11 +00:00
Kirill Chibisov d65357b213 Add version 0.12.3 to CHANGELOG
This is only an update to the development version and does not represent
a stable release.
2023-10-27 00:30:22 +00:00
Pavel Roskin 75eef3be96 Fix typos 2023-10-25 23:20:58 +00:00
Pavel Roskin 500b696ca8 Prefer exact matches for bindings in mouse mode
Only consider bindings without Shift if there are no actions defined for the
actual mouse event.

Closes #7292.
2023-10-25 00:04:32 +00:00
Kirill Chibisov d66db480cf Fix crash due to wrong drop order of clipboard
Fixes #7309.
2023-10-23 00:18:16 +04:00
Kirill Chibisov 80d4daccc3 Update winit to 0.29.2 and copypasta to 0.10.0
Fixes #7236.
Fixes #7201.
Fixes #7146.
Fixes #6848.
Fixes #3601.
Fixes #3108.
Fixes #2453.
2023-10-21 22:56:20 +04:00
Kirill Chibisov 6071a7bf35 Bump rustix to 0.38.20 2023-10-20 14:11:25 +04:00
Christian Duerr 845a5d8a8d Add inline vi mode search
This patch adds inline search to vi mode using `f`/`F` and `t`/`T` as
default bindings. The behavior matches that of vim.

Fixes #7203.
2023-10-20 13:33:38 +04:00
Kirill Chibisov 7ceb638ff8 Fix window.decorations_theme_variant reload
The live reload handling wasn't introduced when the option got added.

Fixes #7295.
2023-10-15 05:37:58 +04:00
Kirill ChibisovandChristian Duerr b4130ddf24 Use openpty-rustix instead of nix
Follow upstream libraries and use rustix to reduce the amount of
dependencies in the future.

Co-authored-by: Christian Duerr <contact@christianduerr.com>
2023-10-11 03:23:19 +04:00
Christian Duerr e1859e80f6 Fix regex patterns allowing for empty strings
This patch changes the mode we search for patterns which allow an empty
string, by anchoring all searches. As a result we will match the longest
possible match when multiple patterns are present (like `;*|rust`),
instead of using the leftmost pattern only.

This is only possible with empty matches since our parser is reset on
every byte anyway, so anchoring the search makes no difference.

Fixes #7276.
2023-10-09 17:32:51 +04:00
Christian Duerr e07bf6f24a Fix regex matches ending on multiline
This fixes an issue where the reverse search for the regex start would
truncate a character when ending on a newline, since it was omitting the
EOI check in that case.

This also fixes a separate issue which caused regexes which capture
empty strings (e.g.: `.*`) to always report a match.

This is a regression introduced in 73276b6.
2023-10-08 18:57:46 +04:00
Kirill Chibisov 83b804797b Fix PTY being closed on creation
The PTY got closed because `OwnedFd` automatically closed it.

Fixes: 59c63d37 (Update dependencies)
2023-10-08 08:26:05 +04:00
Christian Duerr 59c63d3738 Update dependencies
This patch applies all breaking and non-breaking dependency updates
and bumps MSRV to 1.70.0.
2023-10-08 07:29:57 +04:00
John Nunley c2f8abecfb Port from mio to polling
This patch replaces the mio crate with the polling. Now that
smol-rs/polling#96 has been merged, we should be at full feature parity
with mio v0.6 now.

Fixes #7104.
Fixes #6486.
2023-10-07 19:56:11 +00:00
Kirill Chibisov ace987f343 Update the escape_support.md for sync updates
Remove the DCS sync updates escape sequence since it's no longer
supported.

Fixes: 47d500770a (Bump VTE to 0.12.0)
2023-09-29 14:22:36 +04:00
Kirill Chibisov 47d500770a Bump VTE to 0.12.0
Fixes #6845.
2023-09-26 20:48:19 +04:00
Christian Duerr a58fb39b68 Underline hint matches during selection
This patch underlines the full regex hint match while the keyboard hint
selection is in process.

While it would be possible to color the entire match, this would only
introduce unnecessary configuration options and be too noisy. The
underline matches the mouse highlighting and has a less drastic visual
impact.

Closes #6178.
2023-09-22 21:49:52 +04:00
Christian Duerr e35e5ad14f Fix regex memory usage
This fixes an issue where regexes with a large number of possible states
would consume excessive memory, since the entire DFA was compiled ahead
of time.

To solve this, the DFA is now built at runtime using `regex-automata`'s
hybrid DFA.

There are however still some checks performed ahead of time, causing
errors with obscenely large regexes (`[0-9A-Za-z]{999999999}`), which
shouldn't cause any issues.

A regex which is large, but not large enough to fail the NFA
construction (like `[0-9A-Za-z]{999999}`) will cause a long search of
the entire grid, but will complete and show the match.

Closes #7097.
2023-09-17 13:04:05 +04:00
Christian Duerr 77aa9f42ba Add missing position config docs 2023-09-16 13:32:21 +04:00
Kirill Chibisov 34b5dbacd2 Test man-pages compilation on the CI 2023-09-07 15:23:08 +04:00
Simone Ragusa d5e4c5b6a9 Remove obsolete ansicode.txt file
The wiki contains a list of links to ANSI references:
https://github.com/alacritty/alacritty/wiki/ANSI-References
2023-09-07 01:05:34 +00:00
Rolf Sievert 8eed17227a Add prefer_egl debug option
Some systems have rendering issues when using GLX rather than EGL. While this is
usually due to a driver bug, it is helpful to provide a workaround for this by
allowing people to prefer EGL over GLX.

This patch adds the new `debug.prefer_egl` option to provide this workaround.

Closes #7056.
2023-09-04 20:15:46 +00:00
Kirill Chibisov 8d174429ee Support startup notify on Wayland/X11
Activate a window to indicate that we want initial focus when the
system uses startup notifications.

Fixes #6931.
2023-09-04 03:01:12 +04:00
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