aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
...
* Fix vi cursor motion with ScrollPage* actionsa5ob7r2021-07-04
| | | | | | | | | 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.
* Fix crash when resizing during vi modeChristian Duerr2021-07-04
| | | | | | 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.
* Add buffer for PTY reads during terminal lockChristian Duerr2021-07-03
| | | | | | | | | | | | | | | | | | | | 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.
* Fix clippy warningsChristian Duerr2021-07-03
|
* Remove .agignorea5ob7r2021-06-28
| | | | | | | | 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.
* Add libxkbcommon-dev to debian INSTALL.mdTim Hourigan2021-06-27
|
* Remove blink capability from terminfoNick Black2021-06-26
|
* Fix regex search regressiona5ob7r2021-06-20
|
* Add modes to regex hint bindingsJoshua Ortiz2021-06-19
| | | Fixes #5154.
* Switch official IRC channel to Libera.ChatChristian Duerr2021-06-19
|
* Fix ScrollHalfPageUp vi cursor motion regressiona5ob7r2021-06-16
| | | | | This regression was introduced in 3bd5ac2. Co-authored-by: Christian Duerr <contact@christianduerr.com>
* Fix crashes with cut-off fullwidth charactersChristian Duerr2021-05-28
| | | | | | | | | | | | | 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.
* Improve rendering performanceChristian Duerr2021-05-22
| | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Add ipfs/ipns URL scheme supportAlfonso Montero2021-05-21
|
* Fix startup caching of bold glyphsChristian Duerr2021-05-20
|
* Fix typo in config documentationMark Stosberg2021-05-20
|
* Add magnet URL support to config docsChristian Duerr2021-05-19
| | | | Support for magnet URLs was introduced in 78e0444, however that commit failed to document things in the alacritty.yml file.
* Fix default URL bindingChristian Duerr2021-05-10
| | | | | 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.
* Fix URL highlighting with unicode whitespaceChristian Duerr2021-05-09
| | | | | | 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.
* Fix unnecessary redraws due to hint highlightingChristian Duerr2021-05-09
| | | | | | | | | | 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.
* Add Ctrl+c binding for exiting hint modeabsorber2021-05-08
|
* Fix crash when copying out of bounds selectionsChristian Duerr2021-05-07
| | | Fixes #5067.
* Update crossfont to 0.3.0Christian Duerr2021-05-01
|
* Add changelog entry for config url changeChristian Duerr2021-05-01
|
* Fix release mode testsChristian Duerr2021-05-01
| | | Fixes #5041.
* Fix single column block selectionChristian Duerr2021-05-01
| | | Fixes #5039.
* Bump development version to 0.9.0-devChristian Duerr2021-05-01
| | | | This is only an update to the development version and does not represent a stable release.
* Add deprecation warning for mouse URL configChristian Duerr2021-05-01
| | | Fixes #5035.
* Use cell colors for focused match CellRgbNathan Lilienthal2021-04-30
| | | | | Fixes #5022. Co-authored-by: Christian Duerr <contact@christianduerr.com>
* Cleanup config path logging without any filesNathan Lilienthal2021-04-30
| | | Co-authored-by: Christian Duerr <contact@christianduerr.com>
* Add support for magnet URLsRaphael Nestler2021-04-30
|
* Fix highlighting multiple hints in the same lineChristian Duerr2021-04-30
| | | Fixes #5010.
* Fix replacement of fullwidth charactersChristian Duerr2021-04-29
| | | Fixes #3726.
* Update vi-mode `Open` config docs for hintsNathan Lilienthal2021-04-26
|
* Fix cursor expansion across wide charsChristian Duerr2021-04-22
| | | | | | | | | 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.
* Fix out of order terminal query responsesChristian Duerr2021-04-17
| | | | | | | | | | | | | This forces all responses made to the PTY through the indirection of the UI event loop, making sure that the writes to the PTY are in the same order as the original requests. This just delays all escape sequences by forcing them through the event loop, ideally all responses which are not asynchronous (like a clipboard read) would be made immediately. However since some escapes require feedback from the UI to mutable structures like the config (e.g. color query escapes), this would require additional locking. Fixes #4872.
* Fix selection flooding Wayland connectionChristian Duerr2021-04-17
| | | | | | | | | | This resolves an issue where an excessive clipboard update frequency would cause the Wayland display server to ignore necessary selection updates. Instead of copying the selection to the clipboard during the selection process, it is now only copied once the mouse button is released. Fixes #4953.
* Update dependenciesChristian Duerr2021-04-17
| | | | | | | This includes a bump to VTE resolving an issue with invalid intermediates when transitioning from DCS to ESC sequences. This should however not be noticeable with any existing escape sequences. Fixes #4827.
* Fix mouse reportsChristian Duerr2021-04-16
| | | | | | | The patch 9cb5562 has introduced a regression which would abort if a mouse report's line was bigger than zero, which is the exact opposite of when a mouse report is required. Fixes #4980.
* Fix mouse point crash on resizeChristian Duerr2021-04-15
| | | | | | | | | This resolves an issue with Alacritty crashing after a resize, due to the last cached mouse point being out of bounds. Instead of caching the mouse point, it is now computed on demand to make sure it can never be invalid. Fixes #4977.
* Add hint action for moving the vi cursorChristian Duerr2021-04-15
| | | Fixes #4319.
* Fix initial vi cursor position while in scrollbackChristian Duerr2021-04-14
| | | Fixes #4968.
* Fix hint label with start above viewportChristian Duerr2021-04-14
| | | Fixes #4960.
* Fix URL highlight in mouse mode without shiftChristian Duerr2021-04-14
| | | | | This resolves a regression introduced in 96fc9ec where URLs would get highlighted on mouse hover while mouse mode is active even when the shift modifier was not held down.
* Add vi/mouse hint highlighting supportChristian Duerr2021-04-13
| | | | | This patch removes the old url highlighting code and replaces it with a new implementation making use of hints as sources for finding matches in the terminal.
* Add hide other windows binding on macOSKam Kudla2021-04-08
| | | Fixes #3697.
* Fix automatic scrolling on resizeRichard Steinmetz2021-04-08
|
* Add copy/paste/select hint actionsChristian Duerr2021-04-03
| | | | | | This adds some built-in actions for handling hint selections without having to spawn external applications. The new actions are `Copy`, `Select` and `Paste`.
* Fix focused match selection colorChristian Duerr2021-04-02
| | | | | | | | | | | | | | | In 3bd5ac221ab3b122962063edd1f4c10f9f2d117f a regression was introduced which caused the selection of a focused match to invert the cell color back to its original color. This was due to the removal of the `is_match` flag on the renderable cell, which was used to make sure a cell is not marked as part of a match if it is already part of a selection. Instead of relying on a flag that is passed through from content.rs, the application of the cell colors is instead done in the content.rs file directly. This not only fixes the bug with selecting the focused match, but also makes the logic a bit more transparent. Fixes #4934.
* Keep viewport in place during resizeRichard Steinmetz2021-03-31
| | | | | Fixes #4879. Co-authored-by: Christian Duerr <contact@christianduerr.com>