mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
..
This commit is contained in:
parent
7c87b6f014
commit
4d01119981
1 changed files with 2 additions and 2 deletions
|
|
@ -1,7 +1,7 @@
|
|||
use std::{borrow::Cow, collections::{BTreeMap, BTreeSet}, ffi::{OsStr, OsString}, mem, time::Duration};
|
||||
|
||||
use anyhow::{bail, Error, Result};
|
||||
use config::open::Opener;
|
||||
use config::{keymap::{Exec, KeymapLayer}, open::Opener};
|
||||
use shared::{Defer, Url};
|
||||
use tokio::{pin, task::JoinHandle};
|
||||
use tokio_stream::{wrappers::UnboundedReceiverStream, StreamExt};
|
||||
|
|
@ -246,7 +246,7 @@ impl Tab {
|
|||
}
|
||||
|
||||
tokio::spawn(async move {
|
||||
if let Ok(s) = emit!(Input(InputOpt::top("Find:"))).await {
|
||||
if let Some(Ok(s)) = emit!(Input(InputOpt::top("Find:"))).recv().await {
|
||||
emit!(Call(
|
||||
Exec::call("find", vec![s]).with_bool("previous", prev).vec(),
|
||||
KeymapLayer::Manager
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue