mirror of
https://github.com/alacritty/alacritty
synced 2024-07-05 17:08:37 +00:00
4ddb608563
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.
27 lines
688 B
TOML
27 lines
688 B
TOML
[package]
|
|
name = "alacritty_config_derive"
|
|
version = "0.1.0"
|
|
authors = ["Christian Duerr <contact@christianduerr.com>"]
|
|
license = "MIT/Apache-2.0"
|
|
description = "Failure resistant deserialization derive"
|
|
homepage = "https://github.com/alacritty/alacritty"
|
|
edition = "2021"
|
|
rust-version = "1.57.0"
|
|
|
|
[lib]
|
|
proc-macro = true
|
|
|
|
[dependencies]
|
|
syn = { version = "1.0.53", features = ["derive", "parsing", "proc-macro", "printing"], default-features = false }
|
|
proc-macro2 = "1.0.24"
|
|
quote = "1.0.7"
|
|
|
|
[dev-dependencies.alacritty_config]
|
|
path = "../alacritty_config"
|
|
version = "0.1.0"
|
|
|
|
[dev-dependencies]
|
|
serde = { version = "1.0.117", features = ["derive"] }
|
|
serde_yaml = "0.8.14"
|
|
log = "0.4.11"
|