From 58df82498f14aaf3357b5b25295896d0b65160fd Mon Sep 17 00:00:00 2001 From: sxyazi Date: Fri, 22 Sep 2023 12:50:18 +0800 Subject: [PATCH] feat: better `find` title --- core/src/manager/tab.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/src/manager/tab.rs b/core/src/manager/tab.rs index b24fb4b2..bdac06e1 100644 --- a/core/src/manager/tab.rs +++ b/core/src/manager/tab.rs @@ -256,7 +256,9 @@ impl Tab { } tokio::spawn(async move { - let rx = emit!(Input(InputOpt::top("Find:").with_realtime())); + let rx = emit!(Input( + InputOpt::top(if prev { "Find previous:" } else { "Find next:" }).with_realtime() + )); let rx = Debounce::new(UnboundedReceiverStream::new(rx), Duration::from_millis(50)); pin!(rx);