Commit Graph
97 Commits
Author SHA1 Message Date
Kirill Chibisov bfcebbcd38 Add bindings for macOS tabs
This doesn't represnet the movement to add tabs on any other platform,
unless winit could add a similar API for them.
2023-09-04 03:01:12 +04:00
Kirill Chibisov bbc02004b8 Add examples to more sections
Some sections were provided without a default, so provide an example for
them.
2023-09-04 02:25:53 +04:00
Kirill Chibisov bcc90872de Quote None consistently inside the man page
`None` must be inside the `"`, since it's a string value.
2023-09-04 02:25:53 +04:00
Pavel Roskin 6143b3f4eb Fix decorations_theme_variant spelling in manpage 2023-08-13 23:38:04 +00:00
Kirill Bulatov d20cce9401 Make URL_REGEX more strict 2023-07-22 19:58:52 +00:00
Kirill ChibisovandChristian Duerr 0c94e4ae7b Add terminal config section to control OSCs
Some environments demand certain OSC sequences to be disabled or
some escape sequence could require handling which is out of scope
of alacritty, but could be done by external script (OSC 777).

Added section for now just handles the `OSC 52` sequence and changes
its default to be `OnlyCopy`, which is handy for remote copy, but
`Paste` is redundant because normal `Paste` hotkey could be used as
well.

Fixes #3386.

Co-authored-by: Christian Duerr <contact@christianduerr.com>
2023-07-22 18:31:35 +00:00
Kirill Chibisov f2e543880f Mention Forward/Back mouse buttons in man page
They were mentioned only in the changelog, but forgotten in the man
page.
2023-07-21 09:57:47 +00:00
Kirill Chibisov 2101d5ac37 Fix keys like + not working on neo layouts
The key_without_modifier removes all the modifiers including the
multiple shift levels, which is not desired. In alacritty we
just wanted to treat uppercase and lowercase latters the same,
which we can with the help of builtin functions.
2023-07-20 17:42:47 +00:00
Christian DuerrandKirill Chibisov bf671412ce Fix manpage docs for shell section
Closes #7087.

Co-authored-by: Kirill Chibisov <contact@kchibisov.com>
2023-07-20 13:27:31 +00:00
Kirill Chibisov 296eb55460 Mention all the actions in the man page
A lot of actions were left without a notice, so the only way to figure
out some of them was to browse source code. An example of such
actions were `Maximize` and `Minimize`, since we don't have a binding
for them, so they were left even in alacritty-bindings(5).

Explicitly list all the bindings we have. The search bindings were
also not accurately restricted, since we allow them to be executed
inside regardless of mode.
2023-07-16 03:46:47 +00:00
Kirill Chibisov db903503df Update to the new winit keyboard API
The main highlight of this update is that alacritty will now use new
keyboard API from the winit, which resolves a lot of issues around
key bindings, such as ability to bind dead keys. It also fixes long
standing issues with the virtual key code bindings and make bindings
in general more predictable. It also makes our default Vi key bindings
fully working.

Given that alacritty was using `VirtualKey` directly in the bindings
from the winit, and winit simply removed the enum, we've added internal
conversions to minimize the fallout, but new way to specify the bindings
should be more intuitive.

Other part of this update fixes some forward compatibility bugs with the
Wayland backend, given that wayland-rs 0.30 is fully forward compatible.
The update also fixes weird Maximized startup issues on GNOME Wayland,
however they were present on any sane compositor.

Fixes #6842.
Fixes #6455.
Fixes #6184.
Fixes #5684.
Fixes #3574.
Fixes #3460.
Fixes #1336.
Fixes #892.
Fixes #458.
Fixes #55.
2023-07-11 02:22:14 +00:00
Pavel Roskin acbf8e581e Update binding sections in config manpage 2023-07-07 21:37:50 +00:00
Christian Duerr 279d51d489 Add manpage links to "see also" section 2023-07-01 16:41:09 +04:00
Kirill Chibisov 1a67fc35f0 Change the default colorscheme
The new colorscheme is base16 classic dark with the bright colors
generated with oklab toolkits. The base16 classic dark is less washed
out and represents the current maintainers preference. The motivation
to change it was subjective, though it does look like generic dark
theme.

On a side note, this colorscheme was used for alacritty.org web page for
a long time, however it used different foreground color.
2023-06-29 23:08:18 +04:00
Sonu Bardai df00be25c6 Remove mouse double_click/triple_click options
Fixes #6962.
2023-06-29 17:17:54 +04:00
Sonu Bardai be03effdbe Add option to persist hints after selection
Closes #6976.
2023-06-15 00:03:38 +00:00
Christian Duerr bd4906722a Switch to TOML configuration format
This switches Alacritty's default configuration format from yaml to
toml. While yaml is still supported, it is done by converting it to toml
and should be removed entirely in the future.

All existing features were persisted based on my testing. Behavior
should not change much, though `--option` might have slightly different
behavior since the entire line is not interpreted as one line of toml.

A new `alacritty migrate` subcommand has been added which allows
automatic migration from yaml to toml. This also could be used as a
facility to automatically fix configuration file changes in the future.

Closes #6592.
2023-06-12 00:23:41 +00:00
Christian Duerr e3746e49a1 Move manpages to scdoc
This rewrites the existing manpages to use the `scdoc` format, making it
simpler to read and edit the manpages without intricate roff knowledge.

Some minor changes to the manpages were made in the process, mostly
focusing on correcting some of the wording. The list of maintainers has
also changed to ensure people not involved in the project anymore aren't
unnecessarily contacted for support.
2023-05-28 10:13:09 +00:00
Kirill Chibisov 6f6ad2b2ee Update clap to v4.2.7
Fixes #6879.
Fixes #6874.
2023-05-17 08:36:41 +03:00
Christian Duerr d40198da53 Add missing terminfo capabilities
This adds capabilities for focus in/out (XF, kxIN, kxOUT) and bracketed
paste (BD, BE, PE, PS).
2023-04-08 17:33:12 +00:00
Kirill Chibisov 9cf2c89fd1 Bump development version to 0.13.0-dev
This is only an update to the development version and does not represent
a stable release.
2023-02-15 02:19:19 +03:00
James McCoy a152365c14 Add -T short form for --title
Debian-based distributions provide a standard interface to launch a
terminal via the x-terminal-emulator name.  In order for a terminal
emualtor to satisfy that interface, it must

* Be VT100 compatiable
* Support the "-e <command> <args>" CLI option
* Support the "-T <title>" CLI option

Adjust the short form of --title accordingly, providing -t as an alias
to avoid breaking any existing usage.
2022-12-11 00:54:06 +00:00
Andrzej Grzeslak c3b915b695 Fix --help output for --class to match man pages
The output of --help did not match the man pages with regards to the
ordering of arguments for the --class flag. This has now been fixed.

Fixes #6413.
2022-10-18 22:11:40 +00:00
Christian Duerr a51dbe25d6 Bump development version to 0.12.0-dev
This is only an update to the development version and does not represent
a stable release.
2022-09-03 19:43:05 +00:00
Christian Duerr 4ddb608563 Add IPC config subcommand
This patch adds a new mechanism for changing configuration options
without editing the configuration file, by sending options to running
instances through `alacritty msg`.

Each window will load Alacritty's configuration file by default and then
accept IPC messages for config updates using the `alacritty msg config`
subcommand. By default all windows will be updated, individual windows
can be addressed using `alacritty msg config --window-id
"$ALACRITTY_WINDOW_ID"`.

Each option will replace the config's current value and cannot be reset
until Alacritty is restarted or the option is overwritten with a new
value.

Configuration options are passed in the format `field.subfield=value`,
where `value` is interpreted as yaml.

Closes #472.
2022-09-01 01:48:38 +03:00
Kirill Chibisov 791f79a02a Rework --class CLI option
This commit swaps the order of `general` and `instance` arguments
and also sets `instance` to `general` when only one argument was
provided. This should make this option behave like in other terminals
on X11, since they set either both or general by default, but
not instance like Alacritty.

Fixes #6279.
2022-08-25 05:51:19 +00:00
Christian Duerr 8f88b4d4be Include extra directory in crate
Instead of having the extra symlink in the root, this puts the symlink
in the alacritty crate. Since we build the package on Linux this is not
a problem and even allows us to get rid of the `alacritty.png` symlink.

To avoid having complicated symlinks with regards to the windows build
assets directory, it has just been removed from the `extra` directory
completely. Since we only need it for building, it doesn't matter where
it's located and users will never have to interact with it manually
anyway.

Closes #6242.
2022-08-24 09:19:30 +00:00
Kirill Chibisov e09ff0b4b0 Use org.alacritty instead of io.alacritty
The common naming is reverse DNS, and given that alacritty is using
alacritty.org it makes more sense to use org.alacritty instead of
old io.alacritty.
2022-07-10 23:55:57 +03:00
Sabu Siyad 75b0005619 Add hexadecimal support to --embed
Closes #6145.
2022-06-28 18:22:38 +00:00
Christian Duerr 9f02fb9568 Add value hints for clap file paths
This ensures that the generated completions properly suggest file paths
for arguments which accept them.
2022-06-16 18:01:13 +03:00
Christian Duerr 437f42f8d3 Migrate from structopt to clap 3 2022-01-04 18:25:26 +00:00
Kirill Chibisov ce59fa4165 Add title/class CLI parameters to create-window
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.
2022-01-03 18:55:22 +00:00
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