check pass, test pass.. but does it run?

This commit is contained in:
🪞👃🪞 2024-12-31 16:39:33 +01:00
parent 1de163d0d3
commit 9f7b23a252
10 changed files with 65 additions and 48 deletions

View file

@ -20,7 +20,7 @@ pub enum FileBrowserCommand {
Chdir(PathBuf),
Filter(String),
}
render!(Tui: (self: FileBrowser) => Stack::down(|add|{
render!(Tui: (self: FileBrowser) => /*Stack::down(|add|{
let mut i = 0;
for (_, name) in self.dirs.iter() {
if i >= self.scroll {
@ -36,7 +36,7 @@ render!(Tui: (self: FileBrowser) => Stack::down(|add|{
}
add(&format!("{}/{i}", self.index))?;
Ok(())
}));
})*/"todo");
impl FileBrowser {
pub fn new (cwd: Option<PathBuf>) -> Usually<Self> {
let cwd = if let Some(cwd) = cwd { cwd } else { std::env::current_dir()? };