mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 20:26:42 +01:00
check pass, test pass.. but does it run?
This commit is contained in:
parent
1de163d0d3
commit
9f7b23a252
10 changed files with 65 additions and 48 deletions
|
|
@ -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()? };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue