Skip to content

Commit 4fcc1f3

Browse files
committed
refactor: update keybinding descriptions
1 parent b0a1264 commit 4fcc1f3

6 files changed

Lines changed: 13 additions & 16 deletions

src/app.rs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -509,9 +509,10 @@ impl App {
509509
Line::from(format!("{:09} - Execute before cursor", self.kb_config.execute_until_prev.first().unwrap().to_string())),
510510
Line::from(format!("{:09} - Reset input", self.kb_config.reset_input.first().unwrap().to_string())),
511511
Line::from(""),
512-
Line::from(format!("{:09} - Search ↓", "F3")),
513-
Line::from(format!("{:09} - Search ↑", "F4")),
514-
Line::from(format!("{:09} - Switch case sensitivity", "alt+c")),
512+
Line::from(format!("{:09} - Search next", self.kb_config.search_next.first().unwrap().to_string())),
513+
Line::from(format!("{:09} - Search previous", self.kb_config.search_prev.first().unwrap().to_string())),
514+
Line::from(format!("{:09} - Toggle regex mode", "alt+x")),
515+
Line::from(format!("{:09} - Toggle case sensitivity", "alt+c")),
515516
Line::from(""),
516517
Line::from(format!("{:09} - Complete forward", self.kb_config.complete.first().unwrap().to_string())),
517518
Line::from(format!("{:09} - Complete backward", self.kb_config.complete_prev.first().unwrap().to_string())),
@@ -550,10 +551,6 @@ impl App {
550551
spans.push(" Execute ".into());
551552
spans.push("F1".bold());
552553
spans.push(" Help ".into());
553-
spans.push("F3".bold());
554-
spans.push("/".into());
555-
spans.push("F4".bold());
556-
spans.push(" Search ↓/↑ ".into());
557554
spans.push("F11 ".bold());
558555
match self.input_mode {
559556
InputMode::Normal | InputMode::LiveFull => {

src/snapshots/rura__app__tests__command_input.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ expression: terminal.backend()
3131
"┌──────────────────────────────────────────────────────────────────────────────────────────────────┐"
3232
"│ls -la | grep a │"
3333
"└──────────────────────────────────────────────────────────────────────────────────────────────────┘"
34-
" ^C Quit Enter Execute F1 Help F3/F4 Search ↓/↑ F11 Live UC F12 Live L:0 "
34+
" ^C Quit Enter Execute F1 Help F11 Live UC F12 Live L:0 "

src/snapshots/rura__app__tests__live_mode_confirm.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ expression: terminal.backend()
3131
"┌──────────────────────────────────────────────────────────────────────────────────────────────────┐"
3232
"│ │"
3333
"└──────────────────────────────────────────────────────────────────────────────────────────────────┘"
34-
" ^C Quit Enter Execute F1 Help F3/F4 Search ↓/↑ F11 Live UC F12 Live L:0 "
34+
" ^C Quit Enter Execute F1 Help F11 Live UC F12 Live L:0 "

src/snapshots/rura__app__tests__live_mode_full_confirm.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ expression: terminal.backend()
3131
"┌──────────────────────────────────────────────────────────────────────────────────────────────────┐"
3232
"│ │"
3333
"└──────────────────────────────────────────────────────────────────────────────────────────────────┘"
34-
" ^C Quit Enter Execute F1 Help F3/F4 Search ↓/↑ F11 Live UC F12 Live L:0 "
34+
" ^C Quit Enter Execute F1 Help F11 Live UC F12 Live L:0 "

src/snapshots/rura__app__tests__main_screen.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ expression: terminal.backend()
3131
"┌──────────────────────────────────────────────────────────────────────────────────────────────────┐"
3232
"│ │"
3333
"└──────────────────────────────────────────────────────────────────────────────────────────────────┘"
34-
" ^C Quit Enter Execute F1 Help F3/F4 Search ↓/↑ F11 Live UC F12 Live L:0 "
34+
" ^C Quit Enter Execute F1 Help F11 Live UC F12 Live L:0 "

src/snapshots/rura__app__tests__main_screen_help.snap

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22
source: src/app.rs
33
expression: terminal.backend()
44
---
5-
" "
65
" ┌ Keys ───────────────────────────────┐ "
76
" │enter - Execute full command │ "
87
" │alt+\ - Execute until cursor │ "
98
" │alt+| - Execute before cursor │ "
109
" │alt+i - Reset input │ "
1110
" │ │ "
12-
" │F3 - Search ↓ │ "
13-
" │F4 - Search ↑ │ "
14-
" │alt+c - Switch case sensitivity │ "
11+
" │f3 - Search next │ "
12+
" │f4 - Search previous │ "
13+
" │alt+x - Toggle regex mode │ "
14+
" │alt+c - Toggle case sensitivity │ "
1515
" │ │ "
1616
" │tab - Complete forward │ "
1717
" │shift+tab - Complete backward │ "
@@ -31,4 +31,4 @@ expression: terminal.backend()
3131
"┌──────────────────────────────│alt+h - Scroll left │─────────────────────────────┐"
3232
"│ │ │ │"
3333
"└──────────────────────────────│alt+w - Wrap output lines │─────────────────────────────┘"
34-
" ^C Quit Enter Ex└─────────────────────────────────────┘ UC F12 Live L:0 "
34+
" ^C Quit└─────────────────────────────────────┘Live L:0 "

0 commit comments

Comments
 (0)