mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-23 07:41:03 +00:00
feat: removes comments
This commit is contained in:
parent
c4fc9c605e
commit
de881ce526
1 changed files with 5 additions and 3 deletions
8
yazi-plugin/src/external/rg.rs
vendored
8
yazi-plugin/src/external/rg.rs
vendored
|
|
@ -1,7 +1,11 @@
|
|||
use std::{fmt::format, process::Stdio};
|
||||
|
||||
use anyhow::Result;
|
||||
use tokio::{io::{AsyncBufReadExt, BufReader}, process::Command, sync::mpsc::{self, UnboundedReceiver}};
|
||||
use tokio::{
|
||||
io::{AsyncBufReadExt, BufReader},
|
||||
process::Command,
|
||||
sync::mpsc::{self, UnboundedReceiver},
|
||||
};
|
||||
use yazi_fs::{FsUrl, file::File};
|
||||
use yazi_shared::url::{AsUrl, UrlBuf, UrlLike};
|
||||
use yazi_vfs::VfsFile;
|
||||
|
|
@ -29,8 +33,6 @@ pub fn rg(opt: RgOpt) -> Result<UnboundedReceiver<File>> {
|
|||
let (tx, rx) = mpsc::unbounded_channel();
|
||||
|
||||
tokio::spawn(async move {
|
||||
// let mut occurrences_per_file: HashMap<String, Vec<(u32, u32)>> = HashMap::new();
|
||||
// let mut current_file_path: String = String::new();
|
||||
let mut current_file: String = String::new();
|
||||
let mut current_occurrences: Vec<(u32, u32)> = vec![];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue