refactor(session): introduce cursor model and full command set

This commit is contained in:
mow 2026-03-09 21:08:59 +01:00
parent 767315a65e
commit 9ec407d9aa
5 changed files with 340 additions and 204 deletions

View file

@ -98,10 +98,4 @@ pub(crate) fn scan_directory_into(session: &mut SessionData, dir: &Path) {
session.items = paths.into_iter().map(|p| SessionItem::new(p, 0)).collect();
}
session.current_index = if session.items.is_empty() {
None
} else {
Some(0)
};
}