summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-07-18Bump version to 0.9.0-rc2v0.9.0-rc2alacritty_terminal_v0.15.0-rc2Christian Duerr
2021-07-18Invert windows asset symlinksChristian Duerr
This commit swaps source and target for the windows asset symlinks, since creation of a symlink is not possible on Windows systems without administrator permissions. By making the files inside the source folder the source instead of the destination, a build is still possible without requiring elevated privileges. Fixes #5338.
2021-07-18Fix Linux release CI buildChristian Duerr
2021-07-18Alacritty version 0.9.0-rc1v0.9.0-rc1alacritty_terminal_v0.15.0-rc1Christian Duerr
2021-07-18Remove optional releases section from appdata.xmlChristian Duerr
This removes the releases section to make the creation of new releases a bit simpler.
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-14Symlink windows assets for cargo installChristian Duerr
Fixes #5114.
2021-07-12Add libxkbcommon to INSTALL.md dependenciesChristian Duerr
Fixes #5320.
2021-07-12Fix search regressionsChristian Duerr
Fixes #5315.
2021-07-10Update mio-anonymous-pipes to 0.2.0David Hewitt
Fixes #5266.
2021-07-08Fix PTY performance regressionsChristian Duerr
The patch 9e7655e introduced some changes which improved rendering with very dense grids, but the automatic benchmarks indicated a slight performance difference in the `dense_cells` benchmark. Caching the terminal lock between iterations rather than always calling `try_lock` resolves that issue. While breaking early in the `WouldBlock` case with `unprocessed != 0` does also help resolve these issues, it shows some more significant fluctuations. Combining both fixes does not help. Additionally on Windows receiving `Ok(0)` from the PTY will also occur instead of a `WouldBlock` error, so handling that fixes freezing on Windows. Fixes #5305.
2021-07-08Fix Void Linux link in the install guidePaul Barker
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-07-03Fix clippy warningsChristian Duerr
2021-06-28Remove .agignorea5ob7r
This file is a configuration file for The Silver Searcher which is useful but not related to Alacritty and the development directly. Also this file has no effect in practice because the ignored target no longer exists in current repository. So nobody is affects by this removal.
2021-06-27Add libxkbcommon-dev to debian INSTALL.mdTim Hourigan
2021-06-26Remove blink capability from terminfoNick Black
2021-06-20Fix regex search regressiona5ob7r
2021-06-19Add modes to regex hint bindingsJoshua Ortiz
Fixes #5154.
2021-06-19Switch official IRC channel to Libera.ChatChristian Duerr
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-20Fix startup caching of bold glyphsChristian Duerr
2021-05-20Fix typo in config documentationMark Stosberg
2021-05-19Add magnet URL support to config docsChristian Duerr
Support for magnet URLs was introduced in 78e0444, however that commit failed to document things in the alacritty.yml file.
2021-05-10Fix default URL bindingChristian Duerr
The default binding for launching the URL hints was documented as Ctrl+Shift+U, but never actually set. This adds this binding as the default instead of having URLs only launchable using the mouse.
2021-05-09Fix URL highlighting with unicode whitespaceChristian Duerr
The URL highlighting regex would automatically terminate on an ascii whitespace, however there are several other forms of whitespace that are indistinguisable to a user from normal whitespace. To make things a little more intuitive, all unicode whitespace will now terminate URLs.
2021-05-09Fix unnecessary redraws due to hint highlightingChristian Duerr
When the mouse cursor is moved by at least one cell, an update to the highlighted hints is triggered automatically. Previously this would always update the hints and redraw Alacritty regardless of the actualy change to the hint highlighting. By checking if the hint highlighting has actually changed, pointless redraws can be prevented. This is especially helpful since mouse motions often generate a lot of hint re-computations.
2021-05-08Add Ctrl+c binding for exiting hint modeabsorber
2021-05-07Fix crash when copying out of bounds selectionsChristian Duerr
Fixes #5067.
2021-05-01Update crossfont to 0.3.0Christian Duerr
2021-05-01Add changelog entry for config url changeChristian Duerr
2021-05-01Fix release mode testsChristian Duerr
Fixes #5041.
2021-05-01Fix single column block selectionChristian Duerr
Fixes #5039.
2021-05-01Bump development version to 0.9.0-devChristian Duerr
This is only an update to the development version and does not represent a stable release.
2021-05-01Add deprecation warning for mouse URL configChristian Duerr
Fixes #5035.
2021-04-30Use cell colors for focused match CellRgbNathan Lilienthal
Fixes #5022. Co-authored-by: Christian Duerr <contact@christianduerr.com>
2021-04-30Cleanup config path logging without any filesNathan Lilienthal
Co-authored-by: Christian Duerr <contact@christianduerr.com>
2021-04-30Add support for magnet URLsRaphael Nestler
2021-04-30Fix highlighting multiple hints in the same lineChristian Duerr
Fixes #5010.
2021-04-29Fix replacement of fullwidth charactersChristian Duerr
Fixes #3726.
2021-04-26Update vi-mode `Open` config docs for hintsNathan Lilienthal
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.