feat: Judul dropdown autocomplete mengikuti jenisnya (Commands vs Files)

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
asepharyana
2026-07-15 06:32:57 +07:00
co-authored by Claude Sonnet 5
parent 2eebedfea5
commit 7f2509ecd2
+5 -1
View File
@@ -778,11 +778,15 @@ fn render_input_bar(
width: area.width.min(45),
height: dropdown_height,
};
let dropdown_title = match state.input.autocomplete_kind {
crate::app::state::misc::AutocompleteKind::Command => " ⌘ Commands ",
crate::app::state::misc::AutocompleteKind::FileMention => " 📁 Files ",
};
let dropdown_block = Block::default()
.borders(Borders::ALL)
.border_style(Style::default().fg(Theme::BORDER))
.title(Span::styled(
" ⌘ Commands ",
dropdown_title,
Style::default().fg(Theme::PRIMARY),
))
.style(Style::default().bg(Theme::SURFACE_ELEVATED));