summaryrefslogtreecommitdiffstats
path: root/zellij-client
diff options
context:
space:
mode:
authora-kenji <aks.kenji@protonmail.com>2021-09-13 16:23:22 +0200
committerGitHub <noreply@github.com>2021-09-13 16:23:22 +0200
commit9a5a315aee615ae85959ee3cd76e1b8893282fbf (patch)
treed9a8cff0f1c0d4aa0ecf4d40fd214de7c8577934 /zellij-client
parentcfdc2eabfa31ef7e907a325e235dcac8cf748c36 (diff)
Add `options` subcommand to `attach` (#718)
fixes #688 - the `options` subcommand of `attach` functions the same, as the `options` subcommand of creating the normal session, but not every option will have an effect on reattaching, for example the `default_mode` setting would make no sense to switch. In the future it would make sense to be able to hot swap some of the options on reattach, but we are not able to do that yet, for example the `default_shell` one. Eg: ``` zellij attach <session-name> options --theme <theme> ```
Diffstat (limited to 'zellij-client')
-rw-r--r--zellij-client/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/zellij-client/src/lib.rs b/zellij-client/src/lib.rs
index 7d67a01ac..bd2c63768 100644
--- a/zellij-client/src/lib.rs
+++ b/zellij-client/src/lib.rs
@@ -86,6 +86,7 @@ pub fn start_client(
mut os_input: Box<dyn ClientOsApi>,
opts: CliArgs,
config: Config,
+ config_options: Options,
info: ClientInfo,
layout: Option<LayoutFromYaml>,
) {
@@ -105,7 +106,6 @@ pub fn start_client(
.unwrap();
std::env::set_var(&"ZELLIJ", "0");
- let config_options = Options::from_cli(&config.options, opts.command.clone());
let palette = config.themes.clone().map_or_else(
|| os_input.load_palette(),
|t| {