summaryrefslogtreecommitdiff
path: root/CHANGELOG.md
AgeCommit message (Collapse)Author
2022-06-10Add vi action to center view around vi cursorjeremycostanzo
2022-06-09Fix flickering during resize on WaylandKirill Chibisov
This also fixes an issue of windows not being rendered while resizing. Fixes #6069.
2022-06-01Fix DEC Special Character Set (Line drawing)André Kugland
This patch resolves some mapping issues with the line drawing character set where characters like linefeed were incorrectly mapped to their proper character representation rather than the codepoint of their identification glpyh. Co-authored-by: Christian Duerr <contact@christianduerr.com>
2022-05-23Don't inherit `--command` for `SpawnNewInstance`Kirill Chibisov
Fixes #6060.
2022-05-20Fix builtin glyphs for U+2567 and U+2568algon
2022-05-08Fix gap in builtin box drawingKirill Chibisov
Builtin box drawing glyphs in range from '\u{2580}' to `\u{2587}` could have gap due to missing rounding. Previously height was rounded, however not the `y` offset. This commit fixes it.
2022-04-16Fix selection copy without button releasemahkoh
To prevent the current selection clipboard from being overwritten right before pasting, text is no longer copied solely because the user scrolled the scrollback buffer. The selection also isn't copied when a mouse button other than LMB/RMB are released, since these are the only ones capable of modifying the selection range. This should prevent issues where the selection of the user gets unexpectedly overwritten, especially in scenarios where the user is currently in the process of pasting something into Alacritty. Signed-off-by: Julian Orth <ju.orth@gmail.com>
2022-04-03Disallow OSC 52 for unfocused windowKirill Chibisov
This leads to issues on macOS, since if we store clipboard at the same time it could error out. Also, on e.g. Wayland the clipboard store for unfocused window won't work anyway.
2022-03-25Reset blinking on search bindings in Vi modeKirill Chibisov
The Vi cursor is used as the current match indicator, however when it's blinking during search jumps the current match is invisible. Fixes #5934.
2022-03-24Persist OpenGL context creation flagsKirill Chibisov
This commit persists OpenGL context creation flags from previous window build attempts saving time in multiwindow context. It also creates window as srgb by default, since it's what Alacritty is rendering in. For reference [1] and [2]. Moreover the fallback for 10 bit colors is also added. [1] - https://github.com/alacritty/alacritty/issues/4939 and [2] - https://github.com/alacritty/alacritty/issues/3756. Fixes #4703.
2022-03-16Add colored underline supportKirill Chibisov
This commit adds support for colored underline and refines the dynamic extra storage. The extra storage now is using `Arc` making cloning it way faster compared to `Box` approach which scales really well when it comes to cloning in `Term::write_at_cursor`, since cloning `Arc` is constant time. Fixes #4142.
2022-03-11Fix `font.glyph_offset` not live reloadingKirill Chibisov
Fixes #5944.
2022-03-10Fix crash when searching during resetChristian Duerr
This fixes a crash which occurs when the terminal is reset while searching, due to the vi mode cursor being outside of the visible area. This also fixes an issue where the search state reset would incorrectly clamp the vi mode cursor to the grid, rather than the absolute viewport position. While this fix does resolve all crashes when searching while running `cat /dev/urandom`, it does raise the question if manually clamping the vi mode cursor in every location where it is modified is the right choice. A follow-up to provide a safer API which guarantees correct modification of the vi mode cursor location is probably a good idea. Fixes #5942.
2022-03-02Add fallback GLES2 rendererKirill Chibisov
Currently Alacritty only works on hardware which supports OpenGL 3.3 or more, which can become problematic with older devices. This patch adds a new GLES2 renderer, since it is much more widely supported, especially on weaker hardware like phones or a Raspberry Pi. While the GLES2 renderer is slower than the OpenGL 3.3+ version, it is still significantly faster than software rendering. However because of this performance difference it is only used when necessary and there should be no difference for machines supporting OpenGL 3.3+. The two renderers are largely independent and separated in the `renderer/text/glsl3` and `renderer/text/gles2` modules. Separate shaders are also required for text rendering. The rectangle rendering for underlines and the visual bell works identically for both versions, but does have some version-specific shader code. Fixes #128. Co-authored-by: Christian Duerr <contact@christianduerr.com>
2022-02-27Add `ToggleMaximized` key binding actionChris Copeland
2022-02-24Add version 0.10.1 to changelogChristian Duerr
2022-02-16Account for absolute WAYLAND_DISPLAY pathsmahkoh
If WAYLAND_DISPLAY contains a '/', we have to replace with with another character before using WAYLAND_DISPLAY as a path component.
2022-02-14Add support for dashed and dotted underlinesKirill Chibisov
This finishes implementation of underline styles provided by `CSI 4 : [1-5] m` escape sequence.
2022-02-09Fix alpha when using `colors.transparent_background_colors`Kirill Chibisov
The alpha is expected to be premultiplied from the text shader, so we should apply it to the background color.
2022-02-08Add support for drawing undercurlsKirill Chibisov
Fixes #1628.
2022-02-02Fix repeated permission requests on M1 macsChristian Duerr
This adds a codesign step to our makefile build which should automatically sign the application and resolve the issues on M1 macs where Alacritty constantly requests permissions. Since self-signing does still seem to fix this issue after sharing the resulting `Alacritty.app` with other M1 macs, the binary produced by our release build should also be fixed automatically. Fixes #5840.
2022-02-02Add damage tracking and reporting to compatible compositorsKirill Chibisov
This allows compositors to only process damaged (that is, updated) regions of our window buffer, which for larger window sizes (think 4k) should significantly reduce compositing workload under compositors that support/honor it, which is good for performance, battery life and lower latency over remote connections like VNC. On Wayland, clients are expected to always report correct damage, so this makes us a good citizen there. It can also aid remote desktop (waypipe, rdp, vnc, ...) and other types of screencopy by having damage bubble up correctly. Fixes #3186.
2022-01-30Use cell width to compute builtin font thicknessKirill Chibisov
While using underline thickness could sound logical to draw other lines most fonts don't make underlines thick compared to cell bounding box if you increase font size. So instead we're using cell width to scale builtin font nicely. This commit also adjusts arcs drawing and alignment. Fixes #5826. Fixes #5821.
2022-01-29Account for font.offset and glyph.offset in built-in fontKirill Chibisov
This commit takes into account `font.offset` and `font.glyph_offset` when generating built-in font.
2022-01-29Add option to control built-in box drawing charszandr
This commit adds the config `font.builtin_box_drawing` option to control built-in font, which is enabled by default.
2022-01-22Fix logfile overwriting existing filesChristian Duerr
2022-01-20Fix OSC 104 with empty second parameterDaftMouse
This fixes a bug where using OSC 104 without parameters but with a trailling semicolon (e.g. '\e]104;\e\\') would not be handled. Fixes #5542.
2022-01-15Add ´?´ support to OSC 4DaftMouse
2022-01-13Remove time dependencyChristian Duerr
In 7398e9f a regression was introduced which causes Alacritty to crash on startup since wayland has a keyboard repeat rate thread started before our logger is initialized. Since the latest version of time was rather inconvenient to use anyway and there is no nice solution for this issue other than downgrading the `time` version again, the time since startup is now logged instead of the local time. This should still provide all the relevant information, while getting rid of an unnecessary dependency. While it would be possible to also print the delta between log messages, this can be trivially computed so it has been omitted to skip adding another `Mutex` to the `Logger` struct.
2022-01-08Fix fullwidth char regex search infinite loopChristian Duerr
This resolves an issue where the regex search could loop indefinitely when the end point was defined in a location containing a fullwidth character, thus skipping over the end before termination. Fixes #5753.
2022-01-06Use builtin font for box drawing unicode charactersKirill Chibisov
This commit adds hand rolled drawing of unicode box drawing[1] and block elements[2] from ranges U+2500 up to U+259f. While using system font for such characters will look better most of the time, the characters tend to overlap or not align, so providing builtin font is the lesser evil here. [1] - https://www.unicode.org/charts/PDF/U2500.pdf [2] - https://www.unicode.org/charts/PDF/U2580.pdf Fixes #5485.
2022-01-04Trim \n from hints/semantic-/simple selectiona5ob7r
Before this patch a hint regex ending in the last column would append a newline, despite this newline being "invisible" to the user. To match the expected behavior, newlines are trimmed from regex hint matches. To ensure consistency the simple and semantic selection also do not include a newline at the end of the copied text anymore. Fixes #5697.
2022-01-04Migrate from structopt to clap 3Christian Duerr
2021-12-27Fix input lag with nvidia driver on WaylandKirill Chibisov
Fixes #5694.
2021-12-26Migrate to 2021 editionChristian Duerr
2021-12-26Bump development version to 0.11.0-devChristian Duerr
This is only an update to the development version and does not represent a stable release.
2021-12-18Spawn children from foreground working directoryJorge Carrasco
To allow applications spawned by Alacritty to make use of the shell/foreground process' working directory, it is now set for all new processes spawned by Alacritty on Unix platforms. Fixes #5616. Co-authored-by: Christian Duerr <contact@christianduerr.com>
2021-12-18Keep history position when viewport is cleareda5ob7r
This patch resolves a behavior that display area doesn't keep track of content in a scrollback buffer due to display offset reset when viewport clear is invoked. This is similar to #5341, but this problem is caused by viewport clear instead of new outputs to the viewport.
2021-12-18Remove trailing whitespace from block selectionjeremycostanzo
Fixes #5638.
2021-12-03Fix vi cursor moving incorrectly with new outputa5ob7r
This fixes an issue where the vi cursor would move down one line if it's positioned at the topmost visible line, while at least partially scrolled up into history, when new lines are added to the terminal. This problem is caused by using a display offset of a grid not scrolled yet when scrolling and determining a new vi cursor position.
2021-12-03Fix crash when vi cursor in history during cleara5ob7r
Fixes #5544.
2021-12-03Bump glutin to 0.28.0Kirill Chibisov
Fixes #5603. Fixes #5422. Fixes #5350. Fixes #4105. Co-authored-by: Christian Duerr <contact@christianduerr.com>
2021-11-11Fix crash with empty post-processed matchesScott Freeman
Fixes #5492. Co-authored-by: Christian Duerr <contact@christianduerr.com>
2021-11-08Add alacritty-msg manpage to documentationChristian Duerr
The original multiwindow PR added a new manpage, however this was not properly documented or included in our CI. This patch resolves these issues.
2021-10-23Add multi-window supportChristian Duerr
Previously Alacritty would always initialize only a single terminal emulator window feeding into the winit event loop, however some platforms like macOS expect all windows to be spawned by the same process and this "daemon-mode" can also come with the advantage of increased memory efficiency. The event loop has been restructured to handle all window-specific events only by the event processing context with the associated window id. This makes it possible to add new terminal windows at any time using the WindowContext::new function call. Some preliminary tests have shown that for empty terminals, this reduces the cost of additional terminal emulators from ~100M to ~6M. However at this point the robustness of the daemon against issues with individual terminals has not been refined, making the reliability of this system questionable. New windows can be created either by using the new `CreateNewWindow` action, or with the `alacritty msg create-window` subcommand. The subcommand sends a message to an IPC socket which Alacritty listens on, its location can be found in the `ALACRITTY_SOCKET` environment variable. Fixes #607.
2021-10-22Fix cursor inversion logicChristian Duerr
The existing cursor inversion logic was causing more problems than it solved, without solving the problem of invisible cursor when inverting a cell with matching foreground and background colors. This patch reworks this logic and only inverts the cursor when the foreground and background colors of the cursor are similar and the cursor colors aren't set to fixed RGB values. Fixes #4564. Fixes #5550.
2021-09-28Fix incorrect vi mode search originChristian Duerr
Fixes #5460.
2021-09-27Fix vi indicator obstructing vi mode cursorChristian Duerr
Fixes #5504.
2021-08-27Watch non-canonical path for config symlinksNaïm Favier
To make it possible to detect the replacement of the configuration file when it is a symlink, the symlinks path has to be observed in addition to the canonicalized path. That way changes to either file will trigger a live config reload. Multiple layers of symlinks would still not get detected when any symlink other than the configuration file itself is replaced, but this patch should cover most realistic usage scenarios.
2021-08-17Add macOS ARM builds to CIChristian Duerr