mirror of
https://codeberg.org/unspeaker/perch.git
synced 2025-12-06 17:46:42 +01:00
fix all warns, remove moku, bind edit keys
This commit is contained in:
parent
41c5686d67
commit
2903d58b2d
6 changed files with 39 additions and 81 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue