Skip to content

Commit 1f5e4f1

Browse files
ioma8claude
andcommitted
Rebind fd/rg to Ctrl+F and Ctrl+R
Alt+F7 and Ctrl+G were awkward and unmemorable. Ctrl+F (find) and Ctrl+R (ripgrep) are one-handed and mnemonic. Updated help entries. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 19682e5 commit 1f5e4f1

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/presentation/shortcuts.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,11 +156,11 @@ fn handle_search(
156156
*shell_command = Some(String::new());
157157
return Some(true);
158158
}
159-
if event.code == KeyCode::F(7) && event.modifiers.contains(KeyModifiers::ALT) {
159+
if event.code == KeyCode::Char('f') && event.modifiers.contains(KeyModifiers::CONTROL) {
160160
*find_filter = Some(String::new());
161161
return Some(true);
162162
}
163-
if event.code == KeyCode::Char('g') && event.modifiers.contains(KeyModifiers::CONTROL) {
163+
if event.code == KeyCode::Char('r') && event.modifiers.contains(KeyModifiers::CONTROL) {
164164
*ripgrep_filter = Some(String::new());
165165
return Some(true);
166166
}

src/presentation/terminal/renderer.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -881,8 +881,8 @@ fn default_help_entries() -> Vec<(&'static str, &'static str)> {
881881
("F7", "New folder"),
882882
("F8", "Delete"),
883883
("Ctrl+W", "Delete (alias)"),
884-
("Alt+F7", "Find (fd)"),
885-
("Ctrl+G", "RipGrep"),
884+
("Ctrl+F", "Find files (fd)"),
885+
("Ctrl+R", "Search contents (rg)"),
886886
("!", "Shell command"),
887887
("Ctrl+D", "Favorites"),
888888
("Space", "Toggle selection"),

0 commit comments

Comments
 (0)