Commit Graph
2233 Commits
Author SHA1 Message Date
Kirill Chibisov 28d913cfd0 Fix DECRPM reporting
The DECRQM uses `p` to query, but the reply uses `y`.

Fixes #7397.
2023-11-29 01:44:59 +04:00
Kirill Chibisov 5adfc4fb00 Adjust default Vi's SearchBackwards binding
We have the same policy with Shift for numbers.
2023-11-28 03:03:29 +04:00
Cédric Van Rompay b8f6a250e7 Document macOS shortcuts for search 2023-11-27 14:39:52 +00:00
Kirill Chibisov 54889fc4ff Make AA stronger for undercurl
This improves undercurl rendering preserving its original thickness.
This also makes it look not out-of place when places next to other
lines.
2023-11-24 23:57:43 +04:00
Kirill Chibisov 3bb4fb78b4 Bump dependencies
Update dependencies with `cargo update` as well as do explicit update
of winit, crossfont, and regex-automata.
2023-11-24 20:22:01 +04:00
Kirill Chibisov 6017326d82 Fix IME popup positioning
When setting cursor area, the popup will be placed either above or
below not obscuring the supplied region, however we were still
offsetting line with `+1` putting the cursor at the bottom of the line,
and given that area is from the top-left corner, the wrong area
was marked for not being obscured.

It was also discovered that some compositors, like GNOME, position
IME in the bottom right corner of the supplied region, which is wrong,
but it renders IME popup not very useful, since it's far away from
the place it should be, thus try to not obscure just a few characters
near the cursor.

Given that X11 doesn't support area setting, it uses the old logic
with offsetting.

Co-developed-by: lilydjwg <lilydjwg@gmail.com>
Signed-off-by: lilydjwg <lilydjwg@gmail.com>
2023-11-24 19:24:42 +04:00
Kirill Chibisov 1152aea66a Damage entire window on font size change
Font size could change without changing the cell dimensions, like
becoming slightly higher/wider.

Fixes: 40160c5d (Damage only terminal inside `alacritty_terminal`)
2023-11-24 17:14:06 +04:00
Kirill Chibisov 0b41841305 Add migrate to alacritty(1) 2023-11-24 03:01:10 +04:00
Kirill Chibisov 48b1dc8101 Fix default for [[hints.enabled]] in man pages
The default was incomplete, since `command` was missing.
2023-11-24 03:01:10 +04:00
Kirill Chibisov da69839c6b Drop repo link in *SEE ALSO* man sections
The alacritty documentation is fully present inside the man pages, the
repo provides nothing extra other than a way to report issues, which
lives in its own section anyway.
2023-11-24 03:01:10 +04:00
Kirill Chibisov 0a9e40ba73 Add example for [window] section in alacritty(5)
This should give a hint on how to generally tweak things.
2023-11-24 03:01:10 +04:00
Kirill Chibisov 8c1b1b8538 Improve section to TOML section refs
This should give more hints where to put things.
2023-11-24 03:01:10 +04:00
Kirill Chibisov a024822568 Explicitly use = in alacritty(5)
This should help with understanding how to write TOML
without reading too much into specification.
2023-11-24 03:01:10 +04:00
Kirill Chibisov 357c2e0ae4 Make man pages look consistent
Part of the man pages were using _value_, other part were using just
value, thus make everything as _value_.

Also properly dot terminate and add spacing through out the man pages.
2023-11-24 03:01:10 +04:00
Kirill Chibisov b79b1d747d Fix SelectLastTab in alacritty-bindings(5) 2023-11-24 03:01:10 +04:00
Kirill Chibisov b54747ce5e Make sections the same case in man pages 2023-11-24 03:01:10 +04:00
Kirill Chibisov b34a5e439a Create only one branch per major release
Having a separate branch for each release makes it harder to maintain
without an actual benefit, since every release from the major version
is linear, so creating branches doesn't make any sense.

They also collapse with the tag names leading to ambiguous refs.
2023-11-24 02:33:14 +04:00
Kirill Chibisov 40160c5da1 Damage only terminal inside alacritty_terminal
The damage tracking was including selection and vi_cursor which were
rendering viewport related, however all the damage tracking inside
the `alacritty_terminal` was _terminal viewport_ related, meaning that
it should be affected by `display_offset`.

Refactor the damage tracking so `alacritty_terminal` is only tracking
actual terminal updates and properly applying display offset to them,
while `alacritty` pulls this damage into its own UI damage state.

Fixes #7111.
2023-11-23 16:48:09 +04:00
Kirill Chibisov 0589b71894 Add support for DECRPM/DECRQM 2023-11-23 16:28:15 +04:00
Kirill Chibisov 8240a9b90d Update VTE to 0.13.0 2023-11-23 16:28:15 +04:00
Pavel Roskin 1a047d44c3 Add error handling for OpenGL connection details 2023-11-22 05:12:56 +00:00
Kirill Chibisov f8d9f5f6ef Simplify powerline drawing algorithm
Iterate over points in line instead of drawing it right away
and then finding it in the buffer.

Fixes: 4a26667060 (Use builtin font to draw powerline symbols)
2023-11-19 15:21:20 +04:00
Kirill Chibisov d83d5af2b5 Fix Vi cursor not being dirty when scrolling 2023-11-14 23:17:59 +04:00
Gregory Anders 13834d4de8 Fix Sync capability in terminfo
Alacritty has supported mode 2026 for synchornized updates for a few
months, but the terminfo entry still used the old DCS sequence
originally supported by iTerm2. Since many other terminal emulators and
applications seem to be standardizing around 2026, change the terminfo
entry to use SM instead of DCS.
2023-11-13 23:29:44 +00:00
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