wip: display changed files

[?]
Mar 27, 2025, 5:51 PM
CFYW3HGZN5O4IHGLUTUDYG7Y5FXDYPV4H2RIUA7R746PSHO7T32AC

Dependencies

  • [2] 4WO3ZJM2 show untracked files' contents
  • [3] D7A7MSIH allow to defer or abandon record, add buttons
  • [4] BJXUYQ2Y show untracked file contents in read-only text editor
  • [*] 6YZAVBWU Initial commit

Change contents

  • replacement in crates/flowers_ui/src/main.rs at line 787
    [2.9353][2.9353:9691]()
    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([]))
    [2.9353]
    [2.9691]
    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))),
    ]))