summaryrefslogtreecommitdiff
path: root/CHANGELOG.md
AgeCommit message (Collapse)Author
2022-01-13Alacritty version 0.10.0-rc3v0.10.0-rc3alacritty_terminal_v0.16.0-rc3Christian Duerr
2022-01-08Alacritty version 0.10.0-rc2v0.10.0-rc2alacritty_terminal_v0.16.0-rc2Christian Duerr
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-08Use 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-08Trim \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-08Fix input lag with nvidia driver on WaylandKirill Chibisov
Fixes #5694.
2021-12-25Alacritty version 0.10.0-rc1v0.10.0-rc1alacritty_terminal_v0.16.0-rc1Christian Duerr
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
2021-08-16Add option to apply opacity to all background colorsKirill Chibisov
In some cases it could be desired to apply 'background_opacity' to all background colors instead of just 'colors.primary.background', thus adding an 'colors.opaque_background_colors' option to control that. Fixes #741.
2021-08-01Update crossfont to 0.3.1Christian Duerr
2021-07-29Add ExpandSelection mouse binding actionJason Heard
Fixes #4132.
2021-07-24Add changelog entry for 7879552Christian Duerr
2021-07-18Bump development version to 0.10.0-devChristian Duerr
This is only an update to the development version and does not represent a stable release.
2021-07-17Fix vi cursor tracking during scrollingChristian Duerr
This resolves an issue with the vi mode cursor where it would not keep track of the content while scrolled up in history but instead slowly leave the viewport due to its absolute positioning. While an alternative solution would have been to always keep the vi mode cursor in the same spot on the viewport, keeping track of the content is not only more easy to implement but it also makes for a nicer connection between the vi mode cursor and the content below it. Fixes #5339.
2021-07-16Fix copying interrupted tab charactersChristian Duerr
Fixes #5084.
2021-07-14Update dependenciesChristian Duerr
2021-07-12Fix search regressionsChristian Duerr
Fixes #5315.
2021-07-10Update mio-anonymous-pipes to 0.2.0David Hewitt
Fixes #5266.
2021-07-07Fix leaving vi mode with active selectiona5ob7r
This bug comes from 530de00049c2afcc562d36ccdb3e6afa2fe396a5. The vi cursor movement changes text selection range when it is on vi mode. On the other hand the cursor movement doesn't change the range when it isn't on vi mode. So preserve text selection range by toggling vi mode early.
2021-07-04Fix vi cursor motion with ScrollPage* actionsa5ob7r
This fixes the regression that vi cursor doesn't move to appropriate position to emulate vi/vim after invokes `ScrollPage*`. To emulate vi/vim the cursor should move up/down some lines if the viewport on topmost scrollback buffer or on bottommost one when invokes `ScrollPage*` action. Otherwise the cursor should look like no movement relatively on viewport.
2021-07-04Fix crash when resizing during vi modeChristian Duerr
Our resize clamping logic for the vi mode cursor did not correctly clamp to the viewport after the indexing change. Now it is enforced that the vi mode cursor cannot leave the visible area after a font or viewport size change.
2021-07-03Add buffer for PTY reads during terminal lockChristian Duerr
Before this patch, Alacritty's PTY reader would always try to read the PTY into a buffer and then wait for the acquisition of the terminal lock to process this data. Since locking for the terminal could take some time, the PTY could fill up with the thread idling while doing so. As a solution, this patch keeps reading to a buffer while the terminal is locked in the renderer and starts processing all buffered data as soon as the lock is released. This has halfed the runtime of a simple `cat` benchmark from ~9 to ~4 seconds when the font size is set to `1`. Running this patch with "normal" grid densities does not appear to make any significant performance differences in either direction. One possible memory optimization for the future would be to use this buffer for synchronized updates, but since this currently uses a dynamic buffer and would be a bit more cluttered, it has not been implemented in this patch.
2021-06-19Add modes to regex hint bindingsJoshua Ortiz
Fixes #5154.
2021-06-16Fix ScrollHalfPageUp vi cursor motion regressiona5ob7r
This regression was introduced in 3bd5ac2. Co-authored-by: Christian Duerr <contact@christianduerr.com>
2021-05-28Fix crashes with cut-off fullwidth charactersChristian Duerr
There's a few places in Alacritty where it was assumed that after a WIDE_CHAR cell, there'd always be a WIDE_CHAR_SPACER. However since resizes in the alternate screen buffer do not reflow any content, it's possible to have a WIDE_CHAR without any WIDE_CHAR_SPACER right behind it. This patch changes these instances to be more defensive about accepting potentially unreasonable input data caused by alt screen resizes. Fixes #5185. Fixes #5170.
2021-05-22Improve rendering performanceChristian Duerr
This PR combines a couple of optimizations to drastically reduce the time it takes to gather everything necessary for rendering Alacritty's terminal grid. To help with the iteration over the grid, the `DisplayIter` which made heavy use of dynamic dispatch has been replaced with a simple addition to the `GridIterator` which also had the benefit of making the code a little easier to understand. The hints/search check for each cell was always performing an array lookup before figuring out that the cell is not part of a hint or search. Since the general case is that the cell is neither part of hints or search, they've been wrapped in an `Option` to make verifying their activity a simple `is_some()` check. For some reason the compiler was also struggling with the `cursor` method of the `RenderableContent`. Since the iterator is explicitly drained, the performance took a hit of multiple milliseconds for a single branch. Our implementation does never reach the case where draining the iterator would be necessary, so this sanity check has just been replaced with a `debug_assert`. Overall this has managed to reduce the time it takes to collect all renderable content from ~7-8ms in my large grid test to just ~3-4ms.
2021-05-21Add ipfs/ipns URL scheme supportAlfonso Montero
2021-05-01Add changelog entry for config url changeChristian Duerr
2021-04-30Use cell colors for focused match CellRgbNathan Lilienthal
Fixes #5022. Co-authored-by: Christian Duerr <contact@christianduerr.com>
2021-04-30Add support for magnet URLsRaphael Nestler
2021-04-29Fix replacement of fullwidth charactersChristian Duerr
Fixes #3726.
2021-04-22Fix cursor expansion across wide charsChristian Duerr
This fixes a regression introduced in 0.7.0 where the block cursor would not expand across both cells anymore when on top of a wide char spacer cell. The logic to always move the cursor on the wide char instead of the spacer has been moved to the alacritty_terminal crate, making sure it is always performed before any processing in the UI.
2021-04-14Fix initial vi cursor position while in scrollbackChristian Duerr
Fixes #4968.
2021-04-08Add hide other windows binding on macOSKam Kudla
Fixes #3697.
2021-03-31Keep viewport in place during resizeRichard Steinmetz
Fixes #4879. Co-authored-by: Christian Duerr <contact@christianduerr.com>
2021-03-28Fix cursor thickness on wide cellsStokhos
Fixes #4922.
2021-03-15Fix URLs opening in explorer on WindowsSerban Constantin