Do not clear terminal after skim suggestions

This commit is contained in:
Evgeniy Leko 2024-05-02 10:02:06 +02:00
parent 32a40ef433
commit 5076fe4705

View File

@ -47,6 +47,11 @@ fn skim_impl(prefix: &CxxString, words: &CxxVector<CxxString>) -> Result<String,
.height(Some("30%")) .height(Some("30%"))
.query(Some(prefix.to_str().unwrap())) .query(Some(prefix.to_str().unwrap()))
.tac(true) .tac(true)
// Do not clear on start and clear on exit will clear skim output from the terminal.
//
// Refs: https://github.com/lotabout/skim/issues/494#issuecomment-1776565846
.no_clear_start(true)
.no_clear(false)
.tiebreak(Some("-score".to_string())) .tiebreak(Some("-score".to_string()))
// Exact mode performs better for SQL. // Exact mode performs better for SQL.
// //