wip: display changed files
[?]
Mar 27, 2025, 5:51 PM
CFYW3HGZN5O4IHGLUTUDYG7Y5FXDYPV4H2RIUA7R746PSHO7T32ACDependencies
- [2]
4WO3ZJM2show untracked files' contents - [3]
D7A7MSIHallow to defer or abandon record, add buttons - [4]
BJXUYQ2Yshow untracked file contents in read-only text editor - [*]
6YZAVBWUInitial commit
Change contents
- replacement in crates/flowers_ui/src/main.rs at line 787
Some(cursor::Selection::ChangedFile { path, .. }) => {if let Some(path) = path {debug_assert!(repo.changed_files.iter().any(|file| file.path.as_ref() == Some(path)));}el(row([]))Some(cursor::Selection::ChangedFile { path, ix }) => {let changed_file = repo.changed_files.iter().nth(*ix).unwrap();let path = if let Some(path) = path {path.as_str()} else {"root"};let diff = "todo";el(column([el(text(format!("{path} diff:"))),el(scrollable(text(diff))),]))