aboutsummaryrefslogtreecommitdiffstats
path: root/src/command/client/search/interactive.rs
diff options
context:
space:
mode:
authorEllie Huxtable <ellie@elliehuxtable.com>2023-02-15 09:08:39 +0000
committerGitHub <noreply@github.com>2023-02-15 09:08:39 +0000
commit3fdd4f4591bc573906480c1c700df91ba866a2cb (patch)
tree2e1081120d34a653e72620089c1419db1239c55a /src/command/client/search/interactive.rs
parentBump lukemathwalker/cargo-chef (#715) (diff)
downloadatuin-3fdd4f4591bc573906480c1c700df91ba866a2cb.zip
Remove shortcut numbers (#708)
* Remove shortcut numbers I was also going to remove the offset so scrolling only happens at the top. But tbh, I quite like it this way. * Remove key binding
Diffstat (limited to 'src/command/client/search/interactive.rs')
-rw-r--r--src/command/client/search/interactive.rs5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/command/client/search/interactive.rs b/src/command/client/search/interactive.rs
index 903c3362..fb60b47b 100644
--- a/src/command/client/search/interactive.rs
+++ b/src/command/client/search/interactive.rs
@@ -95,7 +95,6 @@ impl State {
len: usize,
) -> Option<usize> {
let ctrl = input.modifiers.contains(KeyModifiers::CONTROL);
- let alt = input.modifiers.contains(KeyModifiers::ALT);
match input.code {
KeyCode::Char('c' | 'd' | 'g') if ctrl => return Some(RETURN_ORIGINAL),
KeyCode::Esc => {
@@ -107,10 +106,6 @@ impl State {
KeyCode::Enter => {
return Some(self.results_state.selected());
}
- KeyCode::Char(c @ '1'..='9') if alt => {
- let c = c.to_digit(10)? as usize;
- return Some(self.results_state.selected() + c);
- }
KeyCode::Left => {
self.input.left();
}