move main diffs state out of cursor
[?]
May 8, 2025, 6:07 PM
HC7ROIBC66IBYFED4ZZM7RXGSNC2CCBWBI36RKM2G5FD5DKVEYMQCDependencies
- [2]
UB2ITZJSrefresh changed files on FS changes - [3]
YBJRDOTCmake all repo actions async - [4]
D7A7MSIHallow to defer or abandon record, add buttons - [5]
4WO3ZJM2show untracked files' contents - [6]
V55EAIWQadd src file LRU cache - [7]
NRCUG4R2load changed files src when selected - [8]
Y5ATDI2Hconvert changed file diffs and load src only if any needs it - [9]
B4RMW5AEadd syntax highlighter to untracked files contents - [10]
ZVI4AWERwoot contents_diff - [11]
QMAUTRB6refactor diff - [12]
AHWWRC73navigate log entries - [13]
TEI5NQ3Sadd log files selection - [14]
JE44NYHMdisplay log files diffs - [15]
ONRCENKTrm unnecessary state from repo's internal state - [16]
4ELJZGRJload and store all change diffs at once - [17]
AXSXZQDGfix updating changed file contents, styling - [18]
BJXUYQ2Yshow untracked file contents in read-only text editor - [19]
VUIRSTKHfmt - [20]
OQ6HSAWHshow record log - [21]
CFYW3HGZwip: display changed files - [22]
MJDGPSHGWIP contents diff - [23]
ELG3UDT6allow to rm added files - [24]
WT3GA27Padd cursor with selection - [25]
KT5UYXGKfix selection after adding file, add changed file diffs - [26]
AMPZ2BXKshow changed files diffs (only Edit atm) - [27]
EC3TVL4Xadd untracked files - [28]
DCSUCH6Radd undecoded diff view, improve decoded view style - [*]
6YZAVBWUInitial commit
Change contents
- edit in crates/inflorescence/src/main.rs at line 5
use std::collections::HashMap; - edit in crates/inflorescence/src/main.rs at line 125
diffs_state: HashMap::new(), - edit in crates/inflorescence/src/main.rs at line 142
diffs_state: HashMap<FileId, diff::State>, - replacement in crates/inflorescence/src/main.rs at line 260[5.3213]→[10.3620:3709](∅→∅),[10.3709]→[11.362:409](∅→∅),[11.409]→[10.3765:3779](∅→∅),[10.3765]→[10.3765:3779](∅→∅)
cursor::Selection::UntrackedFile {ix,path,diffs: diff::State::default(),}cursor::Selection::UntrackedFile { ix, path } - edit in crates/inflorescence/src/main.rs at line 282
diffs: diff::State::default(), - replacement in crates/inflorescence/src/main.rs at line 308
file_ix: usize,hash: pijul::Hash|file_ix: usize| - edit in crates/inflorescence/src/main.rs at line 311
- replacement in crates/inflorescence/src/main.rs at line 335
Some(cursor::Selection::UntrackedFile {ix,path: _,diffs: _,}) => {Some(cursor::Selection::UntrackedFile { ix, path: _ }) => { - replacement in crates/inflorescence/src/main.rs at line 374
Some(cursor::Selection::ChangedFile {ix,path: _,diffs: _,}) => {Some(cursor::Selection::ChangedFile { ix, path: _ }) => { - replacement in crates/inflorescence/src/main.rs at line 437
let file = log_file_selection(log_entry, file_ix, hash,);let file =log_file_selection(log_entry, file_ix); - replacement in crates/inflorescence/src/main.rs at line 529
Some(cursor::Selection::UntrackedFile {ix,path: _,diffs: _,}) => {Some(cursor::Selection::UntrackedFile { ix, path: _ }) => { - replacement in crates/inflorescence/src/main.rs at line 565
Some(cursor::Selection::ChangedFile {ix,path: _,diffs: _,}) => {Some(cursor::Selection::ChangedFile { ix, path: _ }) => { - replacement in crates/inflorescence/src/main.rs at line 621
let file = log_file_selection(log_entry, file_ix, hash,);let file =log_file_selection(log_entry, file_ix); - replacement in crates/inflorescence/src/main.rs at line 781
Some(cursor::Selection::UntrackedFile {ix,path,diffs: diff::State::default(),}),Some(cursor::Selection::UntrackedFile { ix, path }), - replacement in crates/inflorescence/src/main.rs at line 803
Some(cursor::Selection::ChangedFile {ix,path,diffs: diff::State::default(),}),Some(cursor::Selection::ChangedFile { ix, path }), - replacement in crates/inflorescence/src/main.rs at line 820
Task::none(),task, - replacement in crates/inflorescence/src/main.rs at line 856
if let Some(cursor::Selection::UntrackedFile {ix,path,diffs: _,}) = state.cursor.selection.as_ref()if let Some(cursor::Selection::UntrackedFile { ix, path }) =state.cursor.selection.as_ref() - replacement in crates/inflorescence/src/main.rs at line 895
if let Some(cursor::Selection::ChangedFile {ix,path,diffs: _,}) = state.cursor.selection.as_ref()if let Some(cursor::Selection::ChangedFile { ix, path }) =state.cursor.selection.as_ref() - replacement in crates/inflorescence/src/main.rs at line 1068
cursor::Selection::UntrackedFile { ix: _, path, diffs },cursor::Selection::UntrackedFile { ix: _, path }, - edit in crates/inflorescence/src/main.rs at line 1071
let diffs = state.diffs_state.entry(id).or_default(); - replacement in crates/inflorescence/src/main.rs at line 1075
cursor::Selection::ChangedFile { ix: _, path, diffs },cursor::Selection::ChangedFile { ix: _, path }, - edit in crates/inflorescence/src/main.rs at line 1078
let diffs = state.diffs_state.entry(id).or_default(); - replacement in crates/inflorescence/src/main.rs at line 1145
cursor::Selection::UntrackedFile {ix: _,path,diffs: _,} => {cursor::Selection::UntrackedFile { ix: _, path } => { - replacement in crates/inflorescence/src/main.rs at line 1160[14.13355]→[5.7892:7999](∅→∅),[5.7892]→[5.7892:7999](∅→∅),[5.7999]→[14.13356:13398](∅→∅),[14.13398]→[11.1056:1123](∅→∅),[5.8055]→[11.1056:1123](∅→∅),[11.1123]→[5.8055:8089](∅→∅),[10.14516]→[5.8055:8089](∅→∅),[5.8055]→[5.8055:8089](∅→∅)
cursor::Selection::UntrackedFile {ix,path,diffs: diff::State::default(),}cursor::Selection::UntrackedFile { ix, path } - replacement in crates/inflorescence/src/main.rs at line 1164
cursor::Selection::ChangedFile {ix: _,path,diffs: _,} => {cursor::Selection::ChangedFile { ix: _, path } => { - edit in crates/inflorescence/src/main.rs at line 1188
diffs: diff::State::default(), - replacement in crates/inflorescence/src/main.rs at line 1464
Some(cursor::Selection::UntrackedFile {ix: _,path,diffs: selection_state,}) => {Some(cursor::Selection::UntrackedFile { ix: _, path }) => { - edit in crates/inflorescence/src/main.rs at line 1471
let selection_state = state.diffs_state.get(&id); - replacement in crates/inflorescence/src/main.rs at line 1491
Some(cursor::Selection::ChangedFile {path,ix: _,diffs: selection_state,}) => {Some(cursor::Selection::ChangedFile { path, ix: _ }) => { - edit in crates/inflorescence/src/main.rs at line 1498
let selection_state = state.diffs_state.get(&id); - replacement in crates/inflorescence/src/main.rs at line 1559
diff::view(state, file).map(|action| todo!())diff::view(Some(state), file).map(|action| todo!()) - replacement in crates/inflorescence/src/diff.rs at line 28
pub fn view<'a>(state: &'a State, file: &'a File) -> Element<'a, Action> {pub fn view<'a>(state: Option<&'a State>,file: &'a File,) -> Element<'a, Action> { - replacement in crates/inflorescence/src/diff.rs at line 397
_state: &'a State,_state: Option<&'a State>, - replacement in crates/inflorescence/src/diff.rs at line 465
_state: &'a State,_state: Option<&'a State>, - edit in crates/inflorescence/src/cursor.rs at line 17
diffs: diff::State, - edit in crates/inflorescence/src/cursor.rs at line 21
diffs: diff::State,