aboutsummaryrefslogtreecommitdiff
path: root/alacritty
Commit message (Collapse)AuthorAge
...
| * Fix logfile overwriting existing filesChristian Duerr2022-01-22
| |
| * Reset cursor blinking on ToggleViModeKirill Chibisov2022-01-21
| | | | | | Fixes #4468.
| * Add ´?´ support to OSC 4DaftMouse2022-01-15
| |
| * Remove time dependencyChristian Duerr2022-01-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * Update time crate to 0.3.5James McCoy2022-01-13
| | | | | | | | | | | | | | Due to unsoundness issues (c.f., time-rs/time#380 and time-rs/time#293), determining the local timezone can only happen while single-threaded. Determine the timezone early in startup and apply the offset to the UTC timestamp before formatting.
| * Don't blink when cursor is hiddenKirill Chibisov2022-01-11
| | | | | | | | This prevents unnecessary redraws when the terminal is idle, cursor is hidden and blinking is enabled.
| * Use `with_position` instead of `set_outer_position`Kirill Chibisov2022-01-11
| | | | | | | | This uses `with_position` method on a `WindowBuilder` instead of setting window position on the created window later on.
| * Fix block selection expansion with Ctrl + RMBKirill Chibisov2022-01-11
| | | | | | | | | | | | When 'ExpandSelection' binding was added only default binding for RightClick was added, however to expand block selection holding control when doing a click is required, so this commit adds a binding for 'RMB + Control'.
| * Fix title setting via IPC when dynamic_title is enabledKirill Chibisov2022-01-06
| |
| * Use builtin font for box drawing unicode charactersKirill Chibisov2022-01-06
| | | | | | | | | | | | | | | | | | | | | | | | 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.
| * Migrate from structopt to clap 3Christian Duerr2022-01-04
| |
| * Add title/class CLI parameters to create-windowKirill Chibisov2022-01-03
| | | | | | | | | | This adds the ability to pass title and class over IPC via the create-window subcommand, so users can run only one instance for windows of different spurposes in the window managers of their choice.
| * Migrate to 2021 editionChristian Duerr2021-12-26
| |
| * Bump development version to 0.11.0-devChristian Duerr2021-12-26
| | | | | | | | This is only an update to the development version and does not represent a stable release.
| * Fix test failures due to CLI parametersChristian Duerr2021-12-25
| | | | | | Fixes #5717.
| * Fix CreateNewWindow CLI fallbackChristian Duerr2021-12-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The existing behavior for the new CreateNewWindow actions was to always pass in their own options, which would discard the existing options configured on the terminal's PTY config. To fix this the behavior for CreateNewWindow is now the same as for the initial window creation, the config values are overwritten conditionally based on their individual presence in the CLI options. However all temporary CLI options set on the "master" Alacritty instance are discarded by all future windows. Fixes #5659.
| * Remove shared PID/FD variablesChristian Duerr2021-12-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The existing PID/FD atomics in alacritty_terminal/src/tty/unix.rs were shared across all Alacritty windows, causing problem with the new multiwindow feature. Instead of sharing these between the different windows, the master FD and shell PID are now stored on the `window_context`. Unfortunately this makes spawning new daemons a little more complicated, having to pass through additional parameters. To ease this a little bit the helper method `spawn_daemon` has been defined on the `ActionContext`, making it accessible from most parts of Alacritty's event loop. Fixes #5700.
| * Spawn children from foreground working directoryJorge Carrasco2021-12-18
| | | | | | | | | | | | | | | | | | 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>
| * Bump glutin to 0.28.0Kirill Chibisov2021-12-03
| | | | | | | | | | | | | | | | Fixes #5603. Fixes #5422. Fixes #5350. Fixes #4105. Co-authored-by: Christian Duerr <contact@christianduerr.com>
| * Add parameters to `msg create-window` subcommandKirill Chibisov2021-11-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Alacritty's `msg create-window` subcommand would previously inherit all the CLI parameters from the original executable. However not only could this lead to unexpected behavior, it also prevents multi-window users from making use of parameters like `-e`, `--working-directory`, or `--hold`. This is solved by adding a JSON-based message format to the IPC socket messages which instructs the Alacritty server on which CLI parameters should be used to create the new window. Fixes #5562. Fixes #5561. Fixes #5560.
| * Switch to clap-generated completionsChristian Duerr2021-11-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The current completions required a lot of domain-specific knowledge about each individual shell and their completion functionality. Much of which is sparsely documented. While clap does not generate perfect completions, since parameters like `-e` are missing completions, it does a reasonable job while requiring no work on writing these completions. Since access to `cli.rs` isn't possible from the `build.rs`, these completions aren't always generated on build. Instead a test verifies that there has been no changes to these completions and provides a simple code sample for re-generating them. This should provide a simple solution with minimal overhead.
| * Fix crash with empty post-processed matchesScott Freeman2021-11-11
| | | | | | | | | | Fixes #5492. Co-authored-by: Christian Duerr <contact@christianduerr.com>
| * Fix libxkbcommon-devel package name for openSUSEDiego Garza2021-11-02
| | | | | | Fixes #5586.
| * Add multi-window supportChristian Duerr2021-10-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * Fix cursor inversion logicChristian Duerr2021-10-22
| | | | | | | | | | | | | | | | | | | | | | | | 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.
| * Update rustfmt configurationChristian Duerr2021-10-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In this change I went through all current rustfmt configuration options and expanded our existing configuration with overrides whenever deemed appropriate. The `normalize_doc_attributes` option is still unstable, but seems to work without any issues. Even when passing macros like `include_str!` that is recognized properly and not normalized. So while this wasn't an issue anywhere in the code, it should make sure it never will be. When it comes to imports there are two new major additions. The `imports_granularity` and `group_imports` options. Both mostly just incorporate unwritten rules that have existed in Alacritty for a long time. Unfortunately since `alacritty_terminal` imports in `alacritty` are supposed to be separate blocks, the `group_imports` option cannot be used.
| * Fix incorrect vi mode search originChristian Duerr2021-09-28
| | | | | | Fixes #5460.
| * Fix vi indicator obstructing vi mode cursorChristian Duerr2021-09-27
| | | | | | Fixes #5504.
* | Merge remote-tracking branch 'vendor/master' into graphicsAyose2021-09-23
|\|
| * Watch non-canonical path for config symlinksNaïm Favier2021-08-27
| | | | | | | | | | | | | | | | | | | | 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.
| * Fix 'background_opacity' deprecationChristian Duerr2021-08-23
| | | | | | | | | | | | | | | | | | | | During the deprecation of the 'background_opacity' field, it was incorrectly renamed to 'window_opacity'. This changes that back to ensure the old field still works and a warning is emitted accordingly. See the original regression here: https://github.com/alacritty/alacritty/commit/c24d7dfd0d2d8849f0398d7cb1a65d6562ee7a0d#diff-f92f0b1ad70a7b75b7266f3c9e569025e023d186814aa88c2b690800850ccb78L72-R73 Fixes #5437.
| * Migrate CLI config to structoptChristian Duerr2021-08-18
| | | | | | | | | | | | | | | | | | | | | | | | | | While structopt also uses clap under the hood, the configuration through annotations allows for significantly more maintainable and concise CLI definition. This will also make it far easier to have platform-specific options, which is problematic with clap since no individual methods can be removed from its builder. The change in Alacritty's CLI has been kept to a minimum with the only significant changes being the `--version` flag listed before the `-v` flag and the authors all on the same line.
| * Add option to apply opacity to all background colorsKirill Chibisov2021-08-16
| | | | | | | | | | | | | | 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.
| * Log dependency warnings/errors at trace levelSteven Bosnick2021-08-04
| | | | | | Fixes #5387.
| * Update crossfont to 0.3.1Christian Duerr2021-08-01
| |
| * Add ExpandSelection mouse binding actionJason Heard2021-07-29
| | | | | | Fixes #4132.
| * Downgrade glutin versionChristian Duerr2021-07-27
| | | | | | | | | | | | The glutin version bump to 0.27.0 has introduced a lot of new issues and crashes to Alacritty due to the connected winit update. Since it doesn't solve any major issues downgrading glutin temporarily should improve Alacritty's reliability.
| * Invert windows asset symlinksChristian Duerr2021-07-18
| | | | | | | | | | | | | | | | | | | | | | 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.
| * Bump development version to 0.10.0-devChristian Duerr2021-07-18
| | | | | | | | This is only an update to the development version and does not represent a stable release.
| * Update dependenciesChristian Duerr2021-07-14
| |
| * Symlink windows assets for cargo installChristian Duerr2021-07-14
| | | | | | Fixes #5114.
| * Fix search regressionsChristian Duerr2021-07-12
| | | | | | Fixes #5315.
| * Fix leaving vi mode with active selectiona5ob7r2021-07-07
| | | | | | | | | | | | | | 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.
| * Fix clippy warningsChristian Duerr2021-07-03
| |
* | Merge remote-tracking branch 'vendor/master' into graphicsAyose2021-06-21
|\|
| * Add modes to regex hint bindingsJoshua Ortiz2021-06-19
| | | | | | Fixes #5154.
* | Merge remote-tracking branch 'vendor/master' into graphicsAyose2021-05-29
|\|
| * 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
| |