@@ -54,6 +54,7 @@ Usage: sk [options]
5454 --keep-right Keep the right end of the line visible on overflow
5555 --skip-to-pattern Line starts with the start of matched pattern
5656 --no-clear-if-empty Do not clear previous items if command returns empty result
57+ --no-clear-start Do not clear on start
5758 --show-cmd-error Send command error message if command fails
5859
5960 Layout
@@ -92,6 +93,7 @@ Usage: sk [options]
9293 --expect KEYS comma seperated keys that can be used to complete skim
9394 --read0 Read input delimited by ASCII NUL(\\ 0) characters
9495 --print0 Print output delimited by ASCII NUL(\\ 0) characters
96+ --no-clear-start Do not clear screen on start
9597 --no-clear Do not clear screen on exit
9698 --print-query Print query as the first line
9799 --print-cmd Print command query as the first line (after --print-query)
@@ -196,6 +198,7 @@ fn real_main() -> Result<i32, std::io::Error> {
196198 . arg ( Arg :: with_name ( "height" ) . long ( "height" ) . multiple ( true ) . takes_value ( true ) . default_value ( "100%" ) )
197199 . arg ( Arg :: with_name ( "no-height" ) . long ( "no-height" ) . multiple ( true ) )
198200 . arg ( Arg :: with_name ( "no-clear" ) . long ( "no-clear" ) . multiple ( true ) )
201+ . arg ( Arg :: with_name ( "no-clear-start" ) . long ( "no-clear-start" ) . multiple ( true ) )
199202 . arg ( Arg :: with_name ( "no-mouse" ) . long ( "no-mouse" ) . multiple ( true ) )
200203 . arg ( Arg :: with_name ( "preview" ) . long ( "preview" ) . multiple ( true ) . takes_value ( true ) )
201204 . arg ( Arg :: with_name ( "preview-window" ) . long ( "preview-window" ) . multiple ( true ) . takes_value ( true ) . default_value ( "right:50%" ) )
@@ -420,6 +423,7 @@ fn parse_options(options: &ArgMatches) -> SkimOptions<'_> {
420423 . no_hscroll ( options. is_present ( "no-hscroll" ) )
421424 . no_mouse ( options. is_present ( "no-mouse" ) )
422425 . no_clear ( options. is_present ( "no-clear" ) )
426+ . no_clear_start ( options. is_present ( "no-clear-start" ) )
423427 . tabstop ( options. values_of ( "tabstop" ) . and_then ( |vals| vals. last ( ) ) )
424428 . tiebreak ( options. values_of ( "tiebreak" ) . map ( |x| x. collect :: < Vec < _ > > ( ) . join ( "," ) ) )
425429 . tac ( options. is_present ( "tac" ) )
0 commit comments