Commit Graph
2104 Commits
Author SHA1 Message Date
Kirill Chibisov 5fdfd47f83 Alacritty version v0.12.1 v0.12.1 alacritty_terminal_v0.19.0 2023-05-22 01:16:46 +03:00
Kirill Chibisov bc60ab13a2 Fix upload from CI on windows 2023-05-22 01:16:46 +03:00
K.B.Dharun Krishna 9fbc5b618b Bump actions/checkout to v3
Fix Node 12 deprecation warnings in action runs.
2023-05-22 01:16:46 +03:00
Kirill Chibisov 88ae518580 Alacritty version 0.12.1-rc2 v0.12.1-rc2 alacritty_terminal_v0.19.0-rc2 2023-05-16 04:16:27 +03:00
Kirill Chibisov 3108154f42 Update glutin to 0.30.8 and winit to 0.28.6
Fixes #6920.
Fixes #6824.
2023-05-16 04:16:27 +03:00
Kirill Chibisov 9592cbd33e 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-16 04:16:27 +03:00
Kirill Chibisov 5ca354c4fc Alacritty version 0.12.1-rc1 v0.12.1-rc1 2023-05-07 00:13:05 +03:00
Kirill Chibisov 45f204d708 Bump winit to 0.28.5
The 0.28.4 was yanked.
2023-05-07 00:13:05 +03:00
Kirill Chibisov ddb9c4a7e4 Add ALACRITTY_EXTRA_LOG_TARGETS env variable
This should help with troubleshooting the dependency crates like winit.
2023-05-07 00:13:05 +03:00
Kirill Chibisov 03e2a5b8e9 Bump winit to 0.28.4
Fixes #6817.
2023-05-07 00:13:05 +03:00
Christian Duerr d9131c59e0 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-05-07 00:13:05 +03:00
Kirill Chibisov 16e18f2fff 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-05-07 00:13:05 +03:00
Christian Duerr 5a72819504 Alacritty version 0.12.0 v0.12.0 2023-03-24 23:07:41 +00:00
Christian Duerr a4effce727 Alacritty version 0.12.0-rc3 v0.12.0-rc3 2023-03-17 20:33:19 +01:00
Kirill Chibisov 10f77f432a Bump winit to 0.28.3
Fix macOS leak when closing the window.
2023-03-17 20:05:25 +01:00
Kirill Chibisov 98c7065832 Bump x11-clipboard to v0.7.1
Fixes #6760.
2023-03-17 20:05:02 +01:00
Christian Duerr e1bc53a7b0 Alacritty version 0.12.0-rc2 v0.12.0-rc2 2023-03-06 08:19:58 +01:00
Kirill Chibisov d27e0f7a64 Bump winit to 0.28.2
This also bumps copypasta and sctk-adwaita.

Fixes #6744.
Fixes #6702.
Fixes #6696.
Fixes #2741.
2023-03-06 08:19:58 +01:00
Kirill ChibisovandChristian Duerr 841558201e 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-06 08:19:58 +01:00
Christian Duerr 038d508c34 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-03-06 08:19:58 +01:00
Christian Duerr ea93d7f451 Fix bracketed paste with EOT payload
This works around an issue in many (all?) shells where the bracketed
paste logic would only strip out `\r` but interpret EOT (`\x03`) as a
termination of the bracketed paste.
2023-03-06 08:19:58 +01:00
Kirill Chibisov e292aedf27 Relax horizontal scrolling
Apply horizontal scrolling when the angle between the axis X
and (x, y) vector is lower than 25 degrees.

Fixes #6711.
2023-03-06 08:19:58 +01:00
Kirill Chibisov ae90338bb6 Add window.resize_increments config option
Given how bugged the resize increments are on X11, it's better to
disable it by default.
2023-03-06 08:19:58 +01:00
Kirill Chibisov 1a6359ed47 Add missing ToggleMaximized docs in the config 2023-03-06 08:19:58 +01:00
Christian Duerr 9de64a5a20 Alacritty version 0.12.0-rc1 v0.12.0-rc1 2023-02-14 00:48:44 +00:00
Christian Duerr 40be4caca1 Add touch input support
This patch builds upon the prior work by @4z3 and @bytbox to add
touchscreen support to Alacritty. While some inspiration was taken from
@4z3's patch, it was rewritten from scratch.

This patch supports 4 basic touch interactions:
 - Tap
 - Scroll
 - Select
 - Zoom

Tap allows emulating the mouse to enter a single LMB click. While it
would be possible to add more complicated mouse emulation including
support for RMB and others, it's likely more confusing than anything
else and could conflict with other more useful touch actions.

Scroll and Select are started by horizontal or vertical dragging. While
selection isn't particularly accurate with a fat finger, it works
reasonably well and the separation from selection through horizontal and
vertical start feels pretty natural.

Since horizontal drag is reserved for selection we do not support
horizontal scrolling inside the terminal. While it would be possible to
somewhat support it by starting a selection with vertical movement and
then scrolling horizontally afterwards, it would likely just confuse
people so it was left out.

Zoom is pretty simple in just changing the font size when a two-finger
pinch gesture is used. Performance of this is pretty terrible especially
on low-end hardware since this obviously isn't a cheap operation, but it
seems like a worthwhile addition since small touchscreen devices are
most likely to need frequent font size adjustment to make output
readable.

Closes #3671.
2023-02-13 22:35:18 +00:00
Kirill Chibisov c82de4ccad Don't send ESC for OptionAsAlt::None
This doesn't solve issue for `RALT`/`LALT`, but that part is impossible
until winit's keyboard v2 API.
2023-02-12 23:29:25 +03:00
Kirill Chibisov b0195eb8b7 Bump glutin to 0.30.6
Fixes #6694.
2023-02-12 17:04:59 +03:00
Kirill Chibisov 6edb113f14 Bump glutin to 0.30.5 2023-02-12 00:41:02 +03:00
Kirill Chibisov 38e0b562a9 Fix crash when Atlas is full
This fixes the regression introduced by 2d27fff.

Fixes #6688.
2023-02-11 21:05:39 +03:00
Kirill Chibisov 2d27fff796 Make gles2 renderer actually gles2
Fixes #6209.
2023-02-07 22:08:24 +03:00
Kirill Chibisov 8b3f229c3d Align quadrants with half blocks in built-in font
Fixes #6201.
2023-02-05 20:53:38 +03:00
Kirill Chibisov 4e07600c72 Revert "Apply 'font.glyph_offset.y' for underline/strikeout"
This reverts commit d5e9d1d883.
2023-02-05 20:38:29 +03:00
Kirill Chibisov f409f74372 Resize the window by cell dimensions
This should resize window by cell dimensions granularity instead of
using pixels.

Fixes #388.
2023-02-05 11:41:23 +03:00
Kirill Chibisov 8a838710e3 Bump winit to 0.28.1
This fixes crash on Wayland with multiple windows.
2023-02-02 15:09:47 +03:00
Kirill Chibisov 799d8f75bb Fix notify doing active polling
The `notify-debouncer-mini` spawn a thread which checks the events
every timeout, which is not desired since we want to avoid active
polling.

This commit re-implements debouncer based on the `RecommendedWatcher`
without adding an extra thread on top and not doing any busy-waiting.

Fixes #6652.
2023-02-02 13:13:23 +03:00
oxalica 3354203e57 Update ndk-sys to workaround cargo checksum issue
See https://github.com/rust-lang/cargo/issues/11412
2023-02-02 12:47:19 +03:00
Kirill Chibisov 1c878a0476 Update winit to 0.28
Fixes #6644.
Fixes #6615.
Fixes #6558.
Fixes #6515.
Fixes #3187.
Fixes #62.
2023-02-02 11:30:23 +03:00
Jovan Gerodetti 246ec8945d Prefer environment variables over passwd 2023-02-02 07:49:45 +00:00
Christian Duerr d5b2dac73a Create new windows with Cmd+N by default
This changes the default Cmd+N binding on macOS to create a new window
rather than spawning a new instance.

Initially this change was held back for further testing of the
multi-window feature. At this point all significant issues found with it
have been fixed so it should be ready for prime-time now.
2023-01-27 06:02:47 +00:00
h-leth 87c38aa930 Add alacritty.yml to dmg 2023-01-26 02:34:54 +00:00
dependabot[bot] 2ed79e3e39 Bump bumpalo from 3.11.0 to 3.12.0 2023-01-23 11:00:53 +00:00
Kirill Chibisov ed67aa3c08 Add support for horizontal scrolling
This adds support for horizontal mouse scrolling in mouse mode
and alternative scrolling modes.

Fixes #2185.
2023-01-16 20:22:01 +03:00
Christian Duerr 5a3280e8e0 Preserve last column with erase in line right
When the erase in line escape sequence with a parameter of 0 (right) is
passed while the wrapline flag is already set, it will no longer clear
the last column and instead ignore the operation.

The behavior of `\e[1K` and `\e[2K` is unchanged and both will clear the
entire first line without clearing the wrapline flag.

Closes #6159.
2023-01-15 22:53:41 +00:00
NaruandChristian Duerr bcd6d0d981 Use sRGB color space for NSWindow on macOS
Co-authored-by: Christian Duerr <contact@christianduerr.com>
2023-01-07 14:23:00 +00:00
Kirill Chibisov 2bd26fbeb0 User timer based rendering instead of vsync
Fixes #824.
2022-12-30 19:25:04 +03:00
Kirill Chibisov b77b9b3bcd Fix crash when one dimension of the window is zero
This fixes a crash on Windows when the user resizes the window
to the point that it has the height of zero. The crash was introduced
by the glutin update, since it requires non-zero sizes for the
resize.
2022-12-30 18:39:39 +03:00
Christian Duerr a49bd74292 Disable depth and stencil buffers
This patch reduces the active GPU memory consumption by disabling the
depth and stencil buffers. During original testing it reduced GPU memory
usage on Linux by almost a third.

This is a reintroduction of previously reverted patch 3475e44.

Closes #2881.
2022-12-29 12:36:50 +03:00
Kirill Chibisov d5e9d1d883 Apply 'font.glyph_offset.y' for underline/strikeout
Fixes #6561.
2022-12-25 12:42:00 +03:00
Christian Duerr 2291610f72 Fix multi-line bracket selection
This fixes a bug where semantic selection for bracket characters wasn't
working properly over multiple lines since start and end of the
selection were swapped.

Closes #6567.
2022-12-14 20:21:25 +03:00