aboutsummaryrefslogtreecommitdiffstats
path: root/src/cli.rs
diff options
context:
space:
mode:
authora-kenji <aks.kenji@protonmail.com>2021-05-09 16:44:05 +0200
committera-kenji <aks.kenji@protonmail.com>2021-05-10 16:03:06 +0200
commit088bcf3dd8aab4e522cface84c0a260b5b37a87c (patch)
tree5ed94988521c3caa2eefc00277569345e0f0d8f6 /src/cli.rs
parentREADME: shortening + add explanation (#470) (diff)
downloadsl0ppij-088bcf3dd8aab4e522cface84c0a260b5b37a87c.tar.gz
sl0ppij-088bcf3dd8aab4e522cface84c0a260b5b37a87c.tar.xz
sl0ppij-088bcf3dd8aab4e522cface84c0a260b5b37a87c.zip
Add Option for Simplified Layout
* the simplified layout omits the Nerdfonts characters that are not found in every Fontset * add an optional config option to opt into the simplified ui `simplified_ui: bool` * add a config flag that allows opting into the simplified ui `zellij options --simplified-ui` * move the `clean` flag to the `setup` subcommand
Diffstat (limited to 'src/cli.rs')
-rw-r--r--src/cli.rs17
1 files changed, 12 insertions, 5 deletions
diff --git a/src/cli.rs b/src/cli.rs
index 91b0ed39..870af1d1 100644
--- a/src/cli.rs
+++ b/src/cli.rs
@@ -10,6 +10,10 @@ pub struct CliArgs {
#[structopt(long)]
pub max_panes: Option<usize>,
+ /// Speficy, if a simplified layout should be used that is compatible with more fonts
+ #[structopt(long)]
+ pub simplified: bool,
+
/// Change where zellij looks for layouts and plugins
#[structopt(long)]
pub data_dir: Option<PathBuf>,
@@ -36,11 +40,11 @@ pub struct CliArgs {
#[derive(Debug, StructOpt, Clone, Serialize, Deserialize)]
pub enum ConfigCli {
/// Change the behaviour of zellij
- #[structopt(name = "option")]
- Config {
- /// Disables loading of configuration file at default location
+ #[structopt(name = "options")]
+ Options {
#[structopt(long)]
- clean: bool,
+ /// Allow plugins to use a more compatible font type
+ simplified_ui: bool,
},
#[structopt(name = "generate-completion")]
@@ -48,9 +52,12 @@ pub enum ConfigCli {
#[structopt(name = "setup")]
Setup {
- /// Disables loading of configuration file at default location
/// Dump the default configuration file to stdout
#[structopt(long)]
dump_config: bool,
+ /// Disables loading of configuration file at default location,
+ /// loads the defaults that zellij ships with
+ #[structopt(long)]
+ clean: bool,
},
}