mirror of
https://github.com/hanzoai/dev.git
synced 2026-10-25 03:32:32 +00:00
feat(tui/history): refresh popular commands lineup
This commit is contained in:
@@ -2532,7 +2532,7 @@ impl ChatWidget<'_> {
|
||||
let history_cells: Vec<Box<dyn HistoryCell>> = Vec::new();
|
||||
// Insert later via history_push_top_next_req once struct is constructed
|
||||
|
||||
// Removed startup tip for /resume; /resume is now shown under "Popular commands".
|
||||
// Removed the legacy startup tip for /resume.
|
||||
|
||||
// Initialize image protocol for rendering screenshots
|
||||
|
||||
|
||||
@@ -4473,13 +4473,6 @@ fn popular_commands_lines(_latest_version: Option<&str>) -> Vec<Line<'static>> {
|
||||
Span::from(" - "),
|
||||
Span::from(SlashCommand::Agents.description())
|
||||
.style(Style::default().add_modifier(Modifier::DIM)),
|
||||
Span::styled(" NEW", Style::default().fg(crate::colors::primary())),
|
||||
]));
|
||||
lines.push(Line::from(vec![
|
||||
Span::styled("/pro", Style::default().fg(crate::colors::primary())),
|
||||
Span::from(" - "),
|
||||
Span::from(SlashCommand::Pro.description())
|
||||
.style(Style::default().add_modifier(Modifier::DIM)),
|
||||
]));
|
||||
lines.push(Line::from(vec![
|
||||
Span::styled("/model", Style::default().fg(crate::colors::primary())),
|
||||
@@ -4503,12 +4496,6 @@ fn popular_commands_lines(_latest_version: Option<&str>) -> Vec<Line<'static>> {
|
||||
Span::from(SlashCommand::Plan.description())
|
||||
.style(Style::default().add_modifier(Modifier::DIM)),
|
||||
]));
|
||||
lines.push(Line::from(vec![
|
||||
Span::styled("/solve", Style::default().fg(crate::colors::primary())),
|
||||
Span::from(" - "),
|
||||
Span::from(SlashCommand::Solve.description())
|
||||
.style(Style::default().add_modifier(Modifier::DIM)),
|
||||
]));
|
||||
lines.push(Line::from(vec![
|
||||
Span::styled("/code", Style::default().fg(crate::colors::primary())),
|
||||
Span::from(" - "),
|
||||
@@ -4520,13 +4507,27 @@ fn popular_commands_lines(_latest_version: Option<&str>) -> Vec<Line<'static>> {
|
||||
Span::from(" - "),
|
||||
Span::from(SlashCommand::Branch.description())
|
||||
.style(Style::default().add_modifier(Modifier::DIM)),
|
||||
]));
|
||||
lines.push(Line::from(vec![
|
||||
Span::styled("/limits", Style::default().fg(crate::colors::primary())),
|
||||
Span::from(" - "),
|
||||
Span::from(SlashCommand::Limits.description())
|
||||
.style(Style::default().add_modifier(Modifier::DIM)),
|
||||
Span::styled(" NEW", Style::default().fg(crate::colors::primary())),
|
||||
]));
|
||||
lines.push(Line::from(vec![
|
||||
Span::styled("/resume", Style::default().fg(crate::colors::primary())),
|
||||
Span::styled("/undo", Style::default().fg(crate::colors::primary())),
|
||||
Span::from(" - "),
|
||||
Span::from(SlashCommand::Resume.description())
|
||||
Span::from(SlashCommand::Undo.description())
|
||||
.style(Style::default().add_modifier(Modifier::DIM)),
|
||||
Span::styled(" NEW", Style::default().fg(crate::colors::primary())),
|
||||
]));
|
||||
lines.push(Line::from(vec![
|
||||
Span::styled("/review", Style::default().fg(crate::colors::primary())),
|
||||
Span::from(" - "),
|
||||
Span::from(SlashCommand::Review.description())
|
||||
.style(Style::default().add_modifier(Modifier::DIM)),
|
||||
Span::styled(" NEW", Style::default().fg(crate::colors::primary())),
|
||||
]));
|
||||
|
||||
lines
|
||||
|
||||
Reference in New Issue
Block a user