feat: better find title

This commit is contained in:
sxyazi 2023-09-22 12:50:18 +08:00
parent 6497df3a6f
commit 58df82498f
No known key found for this signature in database

View file

@ -256,7 +256,9 @@ impl Tab {
} }
tokio::spawn(async move { 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)); let rx = Debounce::new(UnboundedReceiverStream::new(rx), Duration::from_millis(50));
pin!(rx); pin!(rx);