From 2e70a4c67216150671bfeb2e1369e97c6a59e61f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20N=C3=A4sman?= <30578250+dannasman@users.noreply.github.com> Date: Wed, 19 Oct 2022 16:49:13 +0300 Subject: allow dump_screen() to only dump the viewport (#1794) * allow dump_screen() to only dump the viewport * add additional implementations * set full default as false --- zellij-utils/src/cli.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'zellij-utils/src/cli.rs') diff --git a/zellij-utils/src/cli.rs b/zellij-utils/src/cli.rs index c7c7b0dcf..153c8ede0 100644 --- a/zellij-utils/src/cli.rs +++ b/zellij-utils/src/cli.rs @@ -181,7 +181,11 @@ pub enum CliAction { /// [right|left|up|down] MovePane { direction: Direction }, /// Dumps the pane scrollback to a file - DumpScreen { path: PathBuf }, + DumpScreen { + path: PathBuf, + #[clap(short, long, value_parser, default_value("false"), takes_value(false))] + full: bool, + }, /// Open the pane scrollback in your default editor EditScrollback, /// Scroll up in the focused pane -- cgit v1.2.3