feat: Judul dropdown autocomplete mengikuti jenisnya (Commands vs Files)
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5
parent
2eebedfea5
commit
7f2509ecd2
+5
-1
@@ -778,11 +778,15 @@ fn render_input_bar(
|
|||||||
width: area.width.min(45),
|
width: area.width.min(45),
|
||||||
height: dropdown_height,
|
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()
|
let dropdown_block = Block::default()
|
||||||
.borders(Borders::ALL)
|
.borders(Borders::ALL)
|
||||||
.border_style(Style::default().fg(Theme::BORDER))
|
.border_style(Style::default().fg(Theme::BORDER))
|
||||||
.title(Span::styled(
|
.title(Span::styled(
|
||||||
" ⌘ Commands ",
|
dropdown_title,
|
||||||
Style::default().fg(Theme::PRIMARY),
|
Style::default().fg(Theme::PRIMARY),
|
||||||
))
|
))
|
||||||
.style(Style::default().bg(Theme::SURFACE_ELEVATED));
|
.style(Style::default().bg(Theme::SURFACE_ELEVATED));
|
||||||
|
|||||||
Reference in New Issue
Block a user