mirror of
https://github.com/gitui-org/gitui
synced 2026-05-24 09:28:21 +00:00
show diffed files path in title
This commit is contained in:
parent
f3a67e878f
commit
87d13f84d8
2 changed files with 4 additions and 2 deletions
|
|
@ -293,11 +293,13 @@ impl DrawableComponent for DiffComponent {
|
|||
style_title = style_title.modifier(Modifier::BOLD);
|
||||
}
|
||||
|
||||
let title =
|
||||
format!("{}{}", strings::TITLE_DIFF, self.current.path);
|
||||
f.render_widget(
|
||||
Paragraph::new(self.get_text(r.width, r.height).iter())
|
||||
.block(
|
||||
Block::default()
|
||||
.title(strings::TITLE_DIFF)
|
||||
.title(title.as_str())
|
||||
.borders(Borders::ALL)
|
||||
.border_style(style_border)
|
||||
.title_style(style_title),
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
pub static TITLE_STATUS: &str = "Unstaged Changes [1]";
|
||||
pub static TITLE_DIFF: &str = "Diff";
|
||||
pub static TITLE_DIFF: &str = "Diff: ";
|
||||
pub static TITLE_INDEX: &str = "Staged Changes [2]";
|
||||
|
||||
pub static TAB_STATUS: &str = "Status";
|
||||
|
|
|
|||
Loading…
Reference in a new issue