fix updating changed file contents, styling

[?]
Apr 15, 2025, 7:35 PM
AXSXZQDGLPSLBYY3WEI5CCJFWFY33HPRVW6QQFL46OKWZH4G4YSAC

Dependencies

  • [2] WT3GA27P add cursor with selection
  • [3] S2NVIFXR allow to enter record msg
  • [4] YBJRDOTC make all repo actions async
  • [5] A5YBC77V record!
  • [6] Z2CJPWZE focus record message text_editor on spawn
  • [7] 4WO3ZJM2 show untracked files' contents
  • [8] BJXUYQ2Y show untracked file contents in read-only text editor
  • [9] CFYW3HGZ wip: display changed files
  • [10] W4LFX7IH group diffs by file name
  • [11] AMPZ2BXK show changed files diffs (only Edit atm)
  • [12] IQDCHWCP load a pijul repo
  • [13] UB2ITZJS refresh changed files on FS changes
  • [14] 6YZAVBWU Initial commit
  • [15] PTFDJ567 add untracked files encoding
  • [16] NOB64XMR fmt and clippy

Change contents

  • replacement in crates/flowers_ui/src/main.rs at line 11
    [3.99][2.437:508](),[6.113][2.437:508](),[11.1394][2.437:508](),[2.437][2.437:508]()
    use iced::{Border, Color, Element, Length, Subscription, Task, Theme};
    [11.1394]
    [5.4438]
    use iced::{
    font, Border, Color, Element, Font, Length, Subscription, Task, Theme,
    };
  • edit in crates/flowers_ui/src/main.rs at line 418
    [10.3583]
    [4.12089]
    state.changed_files_contents =
    changed_files_contents(&repo.changed_files);
  • edit in crates/flowers_ui/src/main.rs at line 456
    [10.3943]
    [4.13131]
    state.changed_files_contents.remove(path);
  • replacement in crates/flowers_ui/src/main.rs at line 923
    [7.9285][8.1282:1352]()
    el(column([el(text(format!("{path} diff:"))), diff]))
    [7.9285]
    [7.9339]
    el(column([view_diff_header(format!("{path} diff:")), diff]))
  • replacement in crates/flowers_ui/src/main.rs at line 936
    [9.392][9.392:447]()
    el(text(format!("{path} diff:"))),
    [9.392]
    [11.5262]
    view_diff_header(format!("{path} diff:")),
  • edit in crates/flowers_ui/src/main.rs at line 959
    [4.18340]
    [2.4172]
    }
    fn view_diff_header(header: String) -> Element<'static, Message> {
    el(text(header).font(Font {
    weight: font::Weight::Bold,
    ..default()
    }))
  • replacement in crates/flowers_ui/src/main.rs at line 974
    [11.5761][11.5761:5781]()
    match content {
    [11.5761]
    [11.5781]
    let change_type = diff.to_string();
    let content = match content {
  • replacement in crates/flowers_ui/src/main.rs at line 987
    [11.6297][11.6297:6303]()
    }
    [11.6297]
    [11.6303]
    };
    el(column([el(text(change_type)), content]))