mirror of
https://github.com/hanzoai/dev.git
synced 2026-10-25 03:32:32 +00:00
fix(tui/history): drop redundant in prefix for list paths
This commit is contained in:
@@ -414,7 +414,7 @@ impl ExploreEntry {
|
||||
ExploreSummary::List { path } => {
|
||||
let target = path.as_ref().cloned().unwrap_or_else(|| "./".to_string());
|
||||
vec![Span::styled(
|
||||
format!("in {}", target),
|
||||
format!("{}", target),
|
||||
Style::default().fg(crate::colors::text_dim()),
|
||||
)]
|
||||
}
|
||||
@@ -2716,10 +2716,10 @@ fn exec_render_parts_parsed(
|
||||
} else {
|
||||
format!("{}/", p)
|
||||
};
|
||||
("List".to_string(), format!("in {}", display_p))
|
||||
("List".to_string(), format!("{}", display_p))
|
||||
}
|
||||
}
|
||||
None => ("List".to_string(), "in ./".to_string()),
|
||||
None => ("List".to_string(), "./".to_string()),
|
||||
},
|
||||
ParsedCommand::Search { query, path, cmd } => {
|
||||
// Make search terms human-readable:
|
||||
@@ -2978,7 +2978,7 @@ fn exec_render_parts_parsed(
|
||||
pre.push(Line::from(vec![
|
||||
Span::styled("└ ", Style::default().add_modifier(Modifier::DIM)),
|
||||
Span::styled(
|
||||
format!("in {display_p}"),
|
||||
format!("{display_p}"),
|
||||
Style::default().fg(crate::colors::text()),
|
||||
),
|
||||
]));
|
||||
@@ -5813,10 +5813,10 @@ fn new_parsed_command(
|
||||
} else {
|
||||
format!("{p}/")
|
||||
};
|
||||
("List".to_string(), format!("in {display_p}"))
|
||||
("List".to_string(), format!("{display_p}"))
|
||||
}
|
||||
}
|
||||
None => ("List".to_string(), "in ./".to_string()),
|
||||
None => ("List".to_string(), "./".to_string()),
|
||||
},
|
||||
ParsedCommand::Search { query, path, cmd } => {
|
||||
// Format query for display: unescape backslash-escapes and close common unbalanced delimiters
|
||||
@@ -6083,7 +6083,7 @@ fn new_parsed_command(
|
||||
lines.push(Line::from(vec![
|
||||
Span::styled("└ ", Style::default().add_modifier(Modifier::DIM)),
|
||||
Span::styled(
|
||||
format!("in {display_p}"),
|
||||
format!("{display_p}"),
|
||||
Style::default().fg(crate::colors::text()),
|
||||
),
|
||||
]));
|
||||
|
||||
Reference in New Issue
Block a user