v0.4.3 : persistance du theme actif choisi
- le REPL 'theme <name>' applique ET sauvegarde le theme (settings.theme dans le fichier de config actif, cree s'il manque) via persist_setting - correction racine : config::merge ignorait settings.theme - la valeur persistee n etait jamais relue au chargement, le theme par defaut etait toujours reapplique apres un redemarrage - 'am --theme <name>' reste un one-shot ; config set settings.theme <nom> fonctionne egalement - aides mises a jour (banniere, help theme) - tests de persistance + relecture au demarrage, man pages regenerees, version 0.4.3
This commit is contained in:
+3
-3
@@ -940,7 +940,7 @@ pub static HELP_SPECS: &[HelpSpec] = &[
|
||||
name: "theme",
|
||||
category: "Shell",
|
||||
usage: "theme {flags} [name]",
|
||||
about: "Show the color themes, or switch the active one inside the shell.",
|
||||
about: "Show the color themes, or switch the active one inside the shell (the choice is saved to the config).",
|
||||
search_terms: &["color", "colors", "palette"],
|
||||
flags: &[],
|
||||
subcommands: &[],
|
||||
@@ -950,7 +950,7 @@ pub static HELP_SPECS: &[HelpSpec] = &[
|
||||
io: None,
|
||||
examples: &[
|
||||
HelpExample { desc: "List the available themes.", code: "theme" },
|
||||
HelpExample { desc: "Switch to the ocean theme.", code: "theme ocean" },
|
||||
HelpExample { desc: "Switch to the ocean theme (kept for the next start).", code: "theme ocean" },
|
||||
],
|
||||
},
|
||||
HelpSpec {
|
||||
@@ -1386,7 +1386,7 @@ pub fn render_general(theme: &Theme, color: bool) -> String {
|
||||
out.push_str(&format!(" {bullet} help <name> - display help about a particular command or agent\n"));
|
||||
out.push_str(&format!(" {bullet} help --find <text to search> - search through all help commands table\n"));
|
||||
out.push_str(&format!(
|
||||
" {bullet} am --theme <name> - choose a color theme ({})\n",
|
||||
" {bullet} theme <name> - switch the color theme (saved) · am --theme <name> for a one-shot ({})\n",
|
||||
crate::theme::names().join(", ")
|
||||
));
|
||||
out.push('\n');
|
||||
|
||||
Reference in New Issue
Block a user