Commit Graph
65 Commits
Author SHA1 Message Date
Christian Duerr 850fd1826b Bump development version to 0.11.0-dev
This is only an update to the development version and does not represent
a stable release.
2021-12-26 15:39:09 +00:00
Kirill Chibisov 8681f71084 Add parameters to msg create-window subcommand
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.
2021-11-22 18:34:09 +00:00
Christian Duerr c89939b5d1 Switch to clap-generated completions
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.
2021-11-19 23:34:40 +00:00
Christian Duerr 1df7dc5171 Add multi-window support
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-23 07:16:47 +00:00
Christian Duerr 7913aa5576 Invert windows asset symlinks
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-18 19:29:38 +00:00
Christian Duerr 1d8bd73bc3 Bump development version to 0.10.0-dev
This is only an update to the development version and does not represent
a stable release.
2021-07-18 03:03:41 +00:00
Christian Duerr 6fb2aefde4 Remove optional releases section from appdata.xml
This removes the releases section to make the creation of new releases a
bit simpler.
2021-07-18 01:33:47 +00:00
Nick Black e0b9771dbc Remove blink capability from terminfo 2021-06-26 13:10:20 +00:00
Christian Duerr 9999bd53e1 Add sync update terminfo and docs
This adds documentation stating that Alacritty supports the synchronized
update escape, which was implemented in 9575aed.

Since tmux does check terminfo for this feature, the `Sync` capability
has also been added. Tmux's implementation can be found here:

https://github.com/tmux/tmux/blob/f5b7ebc540fe3db5c3a5fe97d01de44551e76058/tty-features.c#L185
2021-02-24 18:20:47 +00:00
Ben Denhartog cb46f0e1ac Remove --dimensions/-d from bash completions 2021-01-29 20:29:26 +00:00
Jason 34435ed776 Update shell completions
This fixes the shell completion by removing the flags removed from the
CLI in 0768428 and adding the new options flag.
2021-01-17 11:22:06 +00:00
Christian Duerr 6ff4e840f8 Bump development version to 0.8.0-dev
This is only an update to the development version and does not represent
a stable release.
2021-01-04 09:55:13 +00:00
Christian Duerr 3d7b16d4b0 Update Alacritty's description
Alacritty's description in the readme and manpage has always been a bit
overly aggressive in its marketing. This new updated text should more
accurately describe Alacritty's current state without pointlessly
agitating people.
2020-12-29 20:05:19 +00:00
Christian Duerr 37a3198d88 Fix embedded _NET_WM_ICON on X11
Previously the _NET_WM_ICON would use the .ico which was also used for
the Windows icon. This icon used the dimensions 256x256, but the maximum
supported image size is 192x192, so a new image with the dimensions
64x64 has been added.

Since we know the image format anyways, the `image` dependency could
also be easily replaced with `png`, which cuts out a few extra unused
dependencies.
2020-12-20 07:57:03 +00:00
Christian Duerr e924c8441d Remove alacritty.spec
Since Alacritty is now officially packaged by Fedora, it is no longer
necessary to provide this in the official repository.
2020-12-08 23:20:36 +00:00
Christian Duerr 0768428190 Remove redundant CLI flags
This removes some of Alacritty's CLI flags since the same functionality
is provided by the '--option' flag now.

The removed flags are:
 * '--persistent-logging'
 * '--live-config-reload'
 * '--no-live-config-reload'
 * '--dimensions'
 * '--position'

Fixes #4246.
2020-11-26 01:49:19 +03:00
Christian Duerr 2bb2ed817b Bump development version to 0.7.0-dev
This is only an update to the development version and does not represent
a stable release.
2020-11-15 13:38:46 +00:00
Christian Duerr 43d1afbeeb Migrate from Travis CI to GitHub Actions
This removes all CI builds from travis-ci, due to their recent changes
in policy and harsh limitations on builds. With build times over 2
hours, it was a significant hindrance to development.

Instead of Travis CI, the CI is now split on Sourcehut and GitHub. Since
Sourcehut only supports Linux/BSD, all builds on those operating systems
are executed there. The GitHub Actions CI is used to build for
Windows/macOS, which are not available on Sourcehut.

Since asset deployment for releases requires builds on all platforms,
this is also done on GitHub actions. Though the new `upload_asset.sh`
script makes sure that migration in the future is fairly simple and we
do not tie ourselves to the overly complicated GitHub Actions ecosystem.
2020-11-06 23:52:56 +00:00
Nathan LilienthalandChristian Duerr c77ab137f1 Improve example for the -o CLI flag
Co-authored-by: Christian Duerr <contact@christianduerr.com>
2020-09-13 21:10:44 +00:00
Christian Duerr 6cfcd7c259 Add CLI parameter to override config options
This uses the facilities added in
3c3e6870de to allow overriding individual
configuration file options dynamically from the CLI using the
--options/-o parameter.

Fixes #1258.
2020-08-22 20:55:27 +00:00
grumpey 3a7130086a Update spec file 2020-08-15 14:39:11 +00:00
Christian Duerr b904207b19 Add support for double underlines
This adds support for double underlines using the colon separated escape
sequence `CSI 4 : 2 m`.

Alacritty will now also always fallback to the normal underline in case
any of the other underlines like the undercurl are specified. The escape
sequence `CSI 4 : 0 m` can now be used to clear all underlines.

Some terminals support `CSI 21 m` for double underline, but since
Alacritty already uses that as cancel bold which is a little more
consistent, that behavior has not changed. So the colon separated
variant must be used.
2020-08-12 19:05:22 +03:00
Christian Duerr 576252294d Add support for colon separated SGR parameters
This implements the colon separated form of SGR 38 and 48.

Fixes #1485.
2020-08-07 22:37:23 +00:00
Christian Duerr 57c4ac9145 Remove snap packaging config
Since Alacritty should not be responsible for packaging and the
maintainers of the snap package have not kept it up to date, this
removes its configuration file.
2020-07-30 04:02:16 +00:00
Christian Duerr 3688b5c075 Bump version to 0.6.0-dev 2020-07-19 20:37:59 +00:00
Jeff Windsor e1474a1e5f Update --help for class option to match manpage 2020-07-04 09:13:32 +03:00
Christian Duerr 73c7f0c48d Remove prebuilt linux binaries
Fixes #3628.
2020-05-12 15:18:37 +00:00
Christian Duerr 738c8de232 Bump minimum supported Rust version to 1.41.0 2020-04-23 19:04:13 +00:00
Christian Duerr 1a8cd172e5 Add modal keyboard motion mode
This implements a basic mode for navigating inside of Alacritty's
history with keyboard bindings. They're bound by default to vi's motion
shortcuts but are fully customizable. Since this relies on key bindings
only single key bindings are currently supported (so no `ge`, or
repetition).

Other than navigating the history and moving the viewport, this mode
should enable making use of all available selection modes to copy
content to the clipboard and launch URLs below the cursor.

This also changes the rendering of the block cursor at the side of
selections, since previously it could be inverted to be completely
invisible. Since that would have caused some troubles with this keyboard
selection mode, the block cursor now is no longer inverted when it is at
the edges of a selection.

Fixes #262.
2020-03-18 02:35:08 +00:00
Christian Duerr 6801c4a4fd Bump version to 0.5.0-dev
This is a bump of the development version and does not represent a
stable release.
2020-03-14 16:39:02 +00:00
Nathan Lilienthal d20051b5e5 Capitalized the .desktop Filename (#3425)
Follow free desktop file naming conventions.
2020-03-13 15:17:19 -04:00
Christian Duerr fb1d3bef3f Bump minimum Rust version to 1.37.0 2020-01-19 16:27:24 +01:00
Michael Fresco bd96e7f769 Change Alacritty .ico to use higher resolution
Fixes #2651.
2020-01-17 22:28:34 +01:00
Christian Duerr c2c8d6bf37 Move Alacritty to organization
This fixes various outdated links pointing to the old jwilm/alacritty
repository.

Since `copypasta` now has its own github repository at
https://github.com/alacritty/copypasta, the sources have been removed
from Alacritty.
2020-01-11 02:23:13 +01:00
Christian Duerr 18836f20dd Fix incorrect config path in --help and manpage
Fixes #3154.
2020-01-06 16:14:59 +00:00
Kirill Chibisov 7fd17ab0dd Bump version to 0.4.2-dev 2020-01-05 14:42:11 +00:00
jansol 1836d4679a Add prerendered PNG and simplified SVG logo
This should help with compatibility problems with some platforms like
KDE, that do not support all the features necessary for rendering the
default Alacritty logo.
2019-11-28 19:09:14 +01:00
Christian Duerr ec3fa2b33a Bump master to 0.4.1-dev
To make the release process a bit smoother and prevent a freeze of the
master process while review candidates are out, this will put the master
in a perpetual development state.

This should make it clear to everyone that the official source for
releases is always the tagged branch and make it possible to release new
versions completely independently.

Since versions are bumped after each release, this makes it so the
release branches do not have to get merged back into the master branch
to show the correct development version.
2019-11-19 21:34:34 +01:00
Valentin Ignatev 4cb5566a9c Add --hold CLI flag
This implements --hold flag which keeps Alacritty open after
its child process exits.

Fixes #1165.
2019-10-09 23:37:48 +02:00
mkosem c1f089970f Add Xembed support
Fixes #631.
2019-09-24 19:43:54 +02:00
Christian Duerr 8aa406b98b Bump minimum Rust version to 1.36.0 2019-09-09 21:40:48 +00:00
Oliver Kiddle d86eff6f14 Follow zsh conventions in zsh completion
Declaring curcontext etc local is superfluous as _arguments states are
not used. It is also superfluous to include an outer function definition
syntax in zsh autoloadable functions. Zsh convention is not to
capitalize descriptions. It is also better to use the imperative mood
verb form for descriptions as this allows them to start with the
shortest form of the verb - e.g. "reduce" instead of "reduces" and
results in better grammar in the absence of a sentence subject. I'd
recommend this in the --help output too. Using _guard for the position
and dimensions was unnecessary given that the values are not mixed with
other matches.
2019-08-25 02:45:48 +02:00
Christian Duerr 86b9cdbabe Bump minimum supported Rust version to 1.34.0 2019-07-30 22:13:51 +00:00
Kirill Chibisov 7331e89122 Add class and short title completions
Fixes #2612.
2019-07-08 15:19:42 +00:00
Brian Koropoff 228c641769 Allow setting gtk variant and general class on X11 2019-07-06 19:34:56 +00:00
Eric Engestrom a1c70b1d68 Bump appdata to v0.3.3 2019-06-19 18:26:59 +00:00
Christian Duerr cc3e4d3d5c Bump version to 0.3.3 2019-06-16 14:10:15 +00:00
Christian Duerr 8ea28eb1b0 Bump version to 0.3.3-rc2 2019-06-15 21:34:13 +02:00
Christian Duerr 0b88b9fee4 Bump version to 0.3.3-rc1 2019-06-09 22:10:42 +02:00
Paul Schyska 55d346c7d4 Add RPM spec for building in COPR 2019-06-09 16:30:42 +00:00