Skip to content

Commit 1036711

Browse files
refactor: rework footers
1 parent d70c534 commit 1036711

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

src/components/explorer_tab.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ impl<'a> ExplorerTab<'a> {
245245
.collect()
246246
}
247247
pub fn render_footer(area: Rect, frame: &mut Frame) {
248-
Line::raw("Press hjkl|◄▼▲▶ to move | o to open in editor | s to filter")
248+
Line::raw("Navigate: <hjkl|◄▼▲▶> | Open in editor: o | Quick edit: e | Filter: s")
249249
.centered()
250250
.render(area, frame.buffer_mut());
251251
}
@@ -587,6 +587,7 @@ impl<'a> Component for ExplorerTab<'a> {
587587
Action::Search => {
588588
self.search_bar_widget.is_focused = !self.search_bar_widget.is_focused;
589589
}
590+
Action::Edit => {
590591
let entries = self
591592
.task_mgr
592593
.get_vault_data_from_path(&self.current_path, 0)?;

src/components/filter_tab.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,9 @@ impl<'a> FilterTab<'a> {
130130
}
131131
pub fn render_footer(&self, area: Rect, frame: &mut Frame) {
132132
if self.input_bar_widget.is_focused {
133-
Line::raw("Press <enter | esc> to stop searching")
133+
Line::raw("Stop Searching: <enter|esc>")
134134
} else {
135-
Line::raw("Press <enter | esc> to start searching | <S> to switch sorting modes")
135+
Line::raw("Search: <s|enter|esc> | Cycle sorting modes: Shift-s")
136136
}
137137
.centered()
138138
.render(area, frame.buffer_mut());

src/components/home.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ impl Home {
5959
}
6060

6161
pub fn render_footer(area: Rect, frame: &mut Frame) {
62-
Line::raw("Shift+<hl|◄►> to change tab | q to quit | ? for Help")
62+
Line::raw("Change tab: Shift+<hl|◄►> | Quit: q | Help: ?")
6363
.centered()
6464
.render(area, frame.buffer_mut());
6565
}

0 commit comments

Comments
 (0)