From 3c3e6870dedad56b270f5b65ea57d5a6e46b1de6 Mon Sep 17 00:00:00 2001 From: Christian Duerr Date: Fri, 21 Aug 2020 15:48:48 +0000 Subject: Add configuration file imports This adds the ability for users to have multiple configuration files which all inherit from each other. The order of imports is chronological, branching out to the deepest children first and overriding every field with that of the configuration files that are loaded at a later point in time. Live config reload watches the directories of all configuration files, allowing edits in any of them to update Alacritty immediately. While the imports are live reloaded, a new configuration file watcher will only be spawned once Alacritty is restarted. Since this might cause loops which would be very difficult to detect, a maximum depth is set to limit the recursion possible with nested configuration files. Fixes #779. --- alacritty_terminal/src/config/mod.rs | 4 ---- 1 file changed, 4 deletions(-) (limited to 'alacritty_terminal/src') diff --git a/alacritty_terminal/src/config/mod.rs b/alacritty_terminal/src/config/mod.rs index 98579a69..add38c59 100644 --- a/alacritty_terminal/src/config/mod.rs +++ b/alacritty_terminal/src/config/mod.rs @@ -43,10 +43,6 @@ pub struct Config { #[serde(default, deserialize_with = "failure_default")] pub shell: Option, - /// Path where config was loaded from. - #[serde(default, deserialize_with = "failure_default")] - pub config_path: Option, - /// Bell configuration. #[serde(default, deserialize_with = "failure_default")] bell: BellConfig, -- cgit