fix all warns, remove moku, bind edit keys

This commit is contained in:
🪞👃🪞 2025-03-09 05:01:14 +02:00
parent 41c5686d67
commit 2903d58b2d
6 changed files with 39 additions and 81 deletions

View file

@ -1,3 +1,4 @@
#![allow(stable_features)]
#![feature(os_str_display)]
use std::sync::{Arc, RwLock};
@ -36,7 +37,7 @@ fn main () -> Usually<()> {
} else {
current_dir()?
};
set_current_dir(&path);
set_current_dir(&path)?;
let state = Arc::new(RwLock::new(Taggart::new(&path)?));
Tui::new()?.run(&state)
}
@ -45,7 +46,7 @@ impl Taggart {
fn new (root: &impl AsRef<Path>) -> Usually<Self> {
Ok(Self {
root: root.as_ref().into(),
_root: root.as_ref().into(),
paths: Self::collect(root)?,
cursor: 0,
offset: 0,