From 2f097dac5c78a01bdb020c982a09867b3213a69b Mon Sep 17 00:00:00 2001 From: Christian Duerr Date: Wed, 8 Nov 2023 07:03:24 +0100 Subject: Add `--option` argument to `create-window` This patch adds a new CLI parameter to the `create-window` subcommand, matching the existing `--option` parameter when creating a new Alacritty instance. This parameter allows setting up the initial window configuration from the CLI without having to call `alacritty msg config`, making sure that all options are set appropriately right from the start. Closes #6238. --- extra/completions/_alacritty | 8 +++++--- extra/completions/alacritty.bash | 28 ++++++++++++++++++---------- extra/completions/alacritty.fish | 3 ++- extra/man/alacritty-msg.1.scd | 20 +++++++++++++++++--- extra/man/alacritty.1.scd | 2 +- 5 files changed, 43 insertions(+), 18 deletions(-) (limited to 'extra') diff --git a/extra/completions/_alacritty b/extra/completions/_alacritty index 6f21f450..a1739c4e 100644 --- a/extra/completions/_alacritty +++ b/extra/completions/_alacritty @@ -18,14 +18,14 @@ _alacritty() { '--embed=[X11 window ID to embed Alacritty within (decimal or hexadecimal with "0x" prefix)]:EMBED: ' \ '--config-file=[Specify alternative configuration file \[default\: \$XDG_CONFIG_HOME/alacritty/alacritty.toml\]]:CONFIG_FILE:_files' \ '--socket=[Path for IPC socket creation]:SOCKET:_files' \ -'*-o+[Override configuration file options \[example\: cursor.style=Beam\]]:OPTION: ' \ -'*--option=[Override configuration file options \[example\: cursor.style=Beam\]]:OPTION: ' \ '--working-directory=[Start the shell in the specified working directory]:WORKING_DIRECTORY:_files' \ '*-e+[Command and args to execute (must be last argument)]:COMMAND: ' \ '*--command=[Command and args to execute (must be last argument)]:COMMAND: ' \ '-T+[Defines the window title \[default\: Alacritty\]]:TITLE: ' \ '--title=[Defines the window title \[default\: Alacritty\]]:TITLE: ' \ '--class=[Defines window class/app_id on X11/Wayland \[default\: Alacritty\]]:general> | , | , Start the shell in the specified working directory - *command* ... + *-T, --title* + Defines the window title [default: Alacritty] + + *--class* <GENERAL> | <GENERAL>,<INSTANCE> + Defines window class/app_id on X11/Wayland [default: Alacritty] + + *-o, --option* <OPTION>... + Override configuration file options [example: 'cursor.style="Beam"'] + + *-e, --command* <COMMAND>... Command and args to execute (must be last argument) *config* @@ -34,7 +44,11 @@ making it possible to control Alacritty without directly accessing it. *ARGS* *<CONFIG_OPTIONS>...* - Configuration file options [example: cursor.style=Beam] + Configuration file options [example: 'cursor.style="Beam"'] + + *FLAGS* + *-r, --reset* + Clear all runtime configuration changes *OPTIONS* *-w, --window-id* <WINDOW_ID> diff --git a/extra/man/alacritty.1.scd b/extra/man/alacritty.1.scd index 333d2310..6436db75 100644 --- a/extra/man/alacritty.1.scd +++ b/extra/man/alacritty.1.scd @@ -61,7 +61,7 @@ set of features with high performance. X11 window ID to embed Alacritty within (decimal or hexadecimal with _0x_ prefix) *-o, --option* <option>... - Override configuration file options [example: cursor.style=Beam] + Override configuration file options [example: 'cursor.style="Beam"'] *--socket* <socket> Path for IPC socket creation -- cgit