Remove expand/collapse markers from UI
- Clean display with only directory names and / suffix - No [+] or [-] markers shown - Directories still expand/collapse with h/l - Minimal vifm-style appearance
This commit is contained in:
parent
d7c1710482
commit
e906fbf294
@ -24,13 +24,8 @@ fn render_file_panel(frame: &mut Frame, state: &AppState, area: Rect) {
|
|||||||
.enumerate()
|
.enumerate()
|
||||||
.map(|(idx, item)| {
|
.map(|(idx, item)| {
|
||||||
let indent = " ".repeat(item.depth);
|
let indent = " ".repeat(item.depth);
|
||||||
let expand_marker = if item.node.is_dir {
|
|
||||||
if item.is_expanded { "[-] " } else { "[+] " }
|
|
||||||
} else {
|
|
||||||
" "
|
|
||||||
};
|
|
||||||
let suffix = if item.node.is_dir { "/" } else { "" };
|
let suffix = if item.node.is_dir { "/" } else { "" };
|
||||||
let text = format!("{}{}{}{}", indent, expand_marker, item.node.name, suffix);
|
let text = format!("{}{}{}", indent, item.node.name, suffix);
|
||||||
|
|
||||||
let style = if idx == state.selected_index {
|
let style = if idx == state.selected_index {
|
||||||
Style::default().fg(Color::Black).bg(Color::Cyan)
|
Style::default().fg(Color::Black).bg(Color::Cyan)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user