diff options
author | Christian Duerr <contact@christianduerr.com> | 2024-09-22 00:10:48 +0200 |
---|---|---|
committer | Christian Duerr <contact@christianduerr.com> | 2024-10-02 21:38:07 +0200 |
commit | 51089cfeed1adfd741d8dcbe6c9cb9376f88a576 (patch) | |
tree | daf97f64f3236b99b8593f62f2d2864882ac88b0 /alacritty/src/migrate.rs | |
parent | c899208e15c8987480912794d66358ea2581fc39 (diff) | |
download | r-alacritty-51089cfeed1adfd741d8dcbe6c9cb9376f88a576.tar.gz r-alacritty-51089cfeed1adfd741d8dcbe6c9cb9376f88a576.tar.bz2 r-alacritty-51089cfeed1adfd741d8dcbe6c9cb9376f88a576.zip |
Move root config fields to `[general]` section
Some users struggle with TOML, since root options must always be at the
top of the file, since they're otherwise associated with the last table.
To avoid misunderstandings, all root-level fields have been removed. A
new `general` section was added to allow housing configuration options
that do not fit into any more specific groups.
Closes #7906.
Diffstat (limited to 'alacritty/src/migrate.rs')
-rw-r--r-- | alacritty/src/migrate.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/alacritty/src/migrate.rs b/alacritty/src/migrate.rs index 6d116858..39779ba2 100644 --- a/alacritty/src/migrate.rs +++ b/alacritty/src/migrate.rs @@ -172,6 +172,13 @@ fn migrate_renames(config: &mut Value) -> Result<(), String> { // mouse_bindings -> mouse.bindings move_value(config_table, &["mouse_bindings"], &["mouse", "bindings"])?; + // Avoid warnings due to introduction of the new `general` section. + move_value(config_table, &["live_config_reload"], &["general", "live_config_reload"])?; + move_value(config_table, &["working_directory"], &["general", "working_directory"])?; + move_value(config_table, &["ipc_socket"], &["general", "ipc_socket"])?; + move_value(config_table, &["import"], &["general", "import"])?; + move_value(config_table, &["shell"], &["terminal", "shell"])?; + Ok(()) } |