add optional column setters

This commit is contained in:
🪞👃🪞 2025-03-22 21:01:33 +02:00
parent c3fbc6abf1
commit 138bba99cb
2 changed files with 23 additions and 16 deletions

View file

@ -75,7 +75,7 @@ impl Taggart {
})
}
pub fn edit_begin (&mut self) {
let value = (self.columns.0[self.column].value)(&self.paths[self.cursor]);
let value = (self.columns.0[self.column].getter)(&self.paths[self.cursor]);
let value = format!("{}", value.unwrap_or_default());
self.editing = Some((value.len(), value));
}