tui: /diff review with line numbers, word diff, line notes sent to agent
This commit is contained in:
1 parent
1ee8babbf5
commit
dfdd1218b6
4 files changed
+417
-42
No files matched your search
@@ -23,6 +23,9 @@ pub mod mocha {
|
||||
/// Diff line backgrounds (green/red mixed into base).
|
||||
pub const ADD_BG: u32 = 0x2b3a33;
|
||||
pub const DEL_BG: u32 = 0x3d2a35;
|
||||
/// Changed words inside a paired -/+ line.
|
||||
pub const ADD_EM: u32 = 0x3f5c49;
|
||||
pub const DEL_EM: u32 = 0x5e3a49;
|
||||
}
|
||||
|
||||
pub struct Sym {
|
||||
@@ -203,6 +206,14 @@ impl Theme {
|
||||
pub fn del(&self) -> Style {
|
||||
self.bg(self.fg(mocha::RED), mocha::DEL_BG)
|
||||
}
|
||||
pub fn add_em(&self) -> Style {
|
||||
self.bg(self.fg(mocha::GREEN), mocha::ADD_EM)
|
||||
.add_modifier(Modifier::BOLD | Modifier::UNDERLINED)
|
||||
}
|
||||
pub fn del_em(&self) -> Style {
|
||||
self.bg(self.fg(mocha::RED), mocha::DEL_EM)
|
||||
.add_modifier(Modifier::BOLD | Modifier::UNDERLINED)
|
||||
}
|
||||
pub fn hunk(&self) -> Style {
|
||||
self.fg(mocha::MAUVE)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user