handle moved dirs
[?]
Nov 17, 2025, 7:46 PM
K2SQTVJDXCETCK5KXP72JVCKUIK5V4XNBHRUHKRMOF2524D44WUACDependencies
- [2]
MJDGPSHGWIP contents diff - [3]
ZVI4AWERwoot contents_diff - [4]
BFN2VHZSrefactor file stuff into sub-mod - [5]
23SFYK4Qbig view refactor into a new crate - [6]
XSZZB47Urefactor stuff into lib - [7]
HPSOAD4Rfix moved tracked file view - [8]
UR4J677Rnav for log changes and refactors - [9]
SASAN2XCuse nav-scrollable - [10]
QMAUTRB6refactor diff
Change contents
- edit in libflorescence/src/diff.rs at line 55
/// Also present in `DiffWithoutContents` to show the old pathMove, - edit in inflorescence_view/src/diff.rs at line 248
DiffWithContents::Move => el(text(format!("Moved"))), - replacement in inflorescence/src/file.rs at line 185
if let Ok(data) = tokio::fs::read(&path).await {// TODO handle symlinkif let Ok(metadata) = tokio::fs::metadata(&path).await&& metadata.is_dir(){Msg::LoadedSrcFile {id,data: vec![],encoding: None,cache_counter,}} else if let Ok(data) = tokio::fs::read(&path).await { - edit in inflorescence/src/diff.rs at line 47
with.push(DiffWithContents::Move); - edit in inflorescence/src/diff.rs at line 206[2.7052]→[7.8154:8194](∅→∅),[7.8194]→[2.7102:7152](∅→∅),[3.20912]→[2.7102:7152](∅→∅),[2.7102]→[2.7102:7152](∅→∅),[2.7152]→[7.8195:8510](∅→∅)
DiffWithContents::Move => {debug_assert_eq!(changes_len, 1);let lines: Vec<_> = file_lines.map(str::to_string).collect();let max_line_num = lines.len();sections.push(Section::Unchanged(lines));return Combined {sections,max_line_num,};}