diff options
author | Aram Drevekenin <aram@poor.dev> | 2022-11-03 11:06:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-03 11:06:37 +0100 |
commit | 9ebc9b74eeed25b52ba0543ecceab25c7805642b (patch) | |
tree | 1f35b3409ee8808c3eb339d2ee6d7819b5d1f866 /zellij-utils/src/cli.rs | |
parent | 4905ae65b8084d9f6adc31f9260b5a3cca6c920b (diff) |
fix(edit): treat cwd properly (#1904)
Diffstat (limited to 'zellij-utils/src/cli.rs')
-rw-r--r-- | zellij-utils/src/cli.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/zellij-utils/src/cli.rs b/zellij-utils/src/cli.rs index baa53b9a7..694032dc1 100644 --- a/zellij-utils/src/cli.rs +++ b/zellij-utils/src/cli.rs @@ -162,6 +162,10 @@ pub enum Sessions { /// Open the new pane in floating mode #[clap(short, long, value_parser, default_value("false"), takes_value(false))] floating: bool, + + /// Change the working directory of the editor + #[clap(long, value_parser)] + cwd: Option<PathBuf>, }, ConvertConfig { old_config_file: PathBuf, @@ -282,6 +286,10 @@ pub enum CliAction { /// Open the new pane in floating mode #[clap(short, long, value_parser, default_value("false"), takes_value(false))] floating: bool, + + /// Change the working directory of the editor + #[clap(long, value_parser)] + cwd: Option<PathBuf>, }, /// Switch input mode of all connected clients [locked|pane|tab|resize|move|search|session] SwitchMode { input_mode: InputMode }, |