mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
fix: show_hidden not working (#47)
This commit is contained in:
parent
f119489907
commit
2efe97d140
1 changed files with 10 additions and 1 deletions
|
|
@ -7,13 +7,22 @@ use tokio::fs;
|
||||||
|
|
||||||
use super::File;
|
use super::File;
|
||||||
|
|
||||||
#[derive(Default)]
|
|
||||||
pub struct Files {
|
pub struct Files {
|
||||||
items: IndexMap<PathBuf, File>,
|
items: IndexMap<PathBuf, File>,
|
||||||
pub sort: FilesSort,
|
pub sort: FilesSort,
|
||||||
pub show_hidden: bool,
|
pub show_hidden: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl Default for Files {
|
||||||
|
fn default() -> Self {
|
||||||
|
Self {
|
||||||
|
items: Default::default(),
|
||||||
|
sort: Default::default(),
|
||||||
|
show_hidden: MANAGER.show_hidden,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
impl Files {
|
impl Files {
|
||||||
pub async fn read(paths: Vec<PathBuf>) -> BTreeMap<PathBuf, File> {
|
pub async fn read(paths: Vec<PathBuf>) -> BTreeMap<PathBuf, File> {
|
||||||
let mut items = BTreeMap::new();
|
let mut items = BTreeMap::new();
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue