summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrabite <rabite@posteo.de>2019-05-22 14:59:47 +0200
committerrabite <rabite@posteo.de>2019-05-23 14:45:42 +0200
commit3ce0df23769cbbee507b60837ace1def51e791fd (patch)
treead2054e8f8e89a13b2615f732ccfd8e45e5e31fc
parent79c807bb47491b5923552de5c3483156b1ba4e12 (diff)
created new holy branch based off master for sanityv1.2.1-holy
-rw-r--r--src/file_browser.rs8
-rw-r--r--src/foldview.rs10
-rw-r--r--src/listview.rs14
-rw-r--r--src/proclist.rs10
4 files changed, 21 insertions, 21 deletions
diff --git a/src/file_browser.rs b/src/file_browser.rs
index 51afd13..5122073 100644
--- a/src/file_browser.rs
+++ b/src/file_browser.rs
@@ -1270,14 +1270,14 @@ impl Widget for FileBrowser {
Key::Char('/') => { self.turbo_cd()?; },
Key::Char('q') => HError::quit()?,
Key::Char('Q') => { self.quit_with_dir()?; },
- Key::Right | Key::Char('l') => { self.enter_dir()?; },
- Key::Char('L') => { self.open_bg()?; },
- Key::Left | Key::Char('h') => { self.go_back()?; },
+ Key::Right | Key::Char('f') => { self.enter_dir()?; },
+ Key::Char('F') => { self.open_bg()?; },
+ Key::Left | Key::Char('b') => { self.go_back()?; },
Key::Char('-') => { self.goto_prev_cwd()?; },
Key::Char('`') => { self.goto_bookmark()?; },
Key::Char('m') => { self.add_bookmark()?; },
Key::Char('w') => { self.show_procview()?; },
- Key::Char('g') => self.show_log()?,
+ Key::Char('l') => self.show_log()?,
Key::Char('z') => self.run_subshell()?,
Key::Char('c') => self.toggle_colums(),
_ => {
diff --git a/src/foldview.rs b/src/foldview.rs
index b060bb5..4b3edfe 100644
--- a/src/foldview.rs
+++ b/src/foldview.rs
@@ -285,12 +285,12 @@ where
fn on_key(&mut self, key: Key) -> HResult<()> {
match key {
- Key::Up | Key::Char('k') => self.move_up(),
- Key::Char('K') => for _ in 0..10 { self.move_up() },
- Key::Char('J') => for _ in 0..10 { self.move_down() },
- Key::Down | Key::Char('j') => self.move_down(),
+ Key::Up | Key::Char('p') => self.move_up(),
+ Key::Char('P') => for _ in 0..10 { self.move_up() },
+ Key::Char('N') => for _ in 0..10 { self.move_down() },
+ Key::Down | Key::Char('n') => self.move_down(),
Key::Char('t') => self.toggle_fold()?,
- Key::Char('g') => self.popup_finnished()?,
+ Key::Char('l') => self.popup_finnished()?,
_ => {}
}
Ok(())
diff --git a/src/listview.rs b/src/listview.rs
index 6a1326c..13dc7ef 100644
--- a/src/listview.rs
+++ b/src/listview.rs
@@ -61,13 +61,13 @@ impl Listable for ListView<Files> {
fn on_key(&mut self, key: Key) -> HResult<()> {
match key {
- Key::Up | Key::Char('k') => {
+ Key::Up | Key::Char('p') => {
self.move_up();
self.refresh()?;
}
- Key::Char('K') => { for _ in 0..10 { self.move_up() } self.refresh()?; }
- Key::Char('J') => { for _ in 0..10 { self.move_down() } self.refresh()?; }
- Key::Down | Key::Char('j') => {
+ Key::Char('P') => { for _ in 0..10 { self.move_up() } self.refresh()?; }
+ Key::Char('N') => { for _ in 0..10 { self.move_down() } self.refresh()?; }
+ Key::Down | Key::Char('n') => {
self.move_down();
self.refresh()?;
},
@@ -84,11 +84,11 @@ impl Listable for ListView<Files> {
Key::Char(' ') => self.multi_select_file(),
Key::Char('v') => self.invert_selection(),
Key::Char('t') => self.toggle_tag()?,
- Key::Char('H') => self.toggle_hidden(),
+ Key::Char('h') => self.toggle_hidden(),
Key::Char('r') => self.reverse_sort(),
Key::Char('s') => self.cycle_sort(),
- Key::Char('N') => self.select_next_mtime(),
- Key::Char('n') => self.select_prev_mtime(),
+ Key::Char('K') => self.select_next_mtime(),
+ Key::Char('k') => self.select_prev_mtime(),
Key::Char('d') => self.toggle_dirs_first(),
_ => { HError::undefined_key(key)? }
}
diff --git a/src/proclist.rs b/src/proclist.rs
index 99a74dd..c491c4d 100644
--- a/src/proclist.rs
+++ b/src/proclist.rs
@@ -566,16 +566,16 @@ impl Widget for ProcView {
self.clear().log();
return Err(HError::PopupFinnished) }
Key::Char('d') => { self.remove_proc()? }
- Key::Char('K') => { self.get_listview_mut().kill_proc()? }
- Key::Up | Key::Char('k') => {
+ Key::Char('k') => { self.get_listview_mut().kill_proc()? }
+ Key::Up | Key::Char('p') => {
self.get_listview_mut().move_up();
}
- Key::Down | Key::Char('j') => {
+ Key::Down | Key::Char('n') => {
self.get_listview_mut().move_down();
}
Key::Char('f') => { self.toggle_follow().log(); }
- Key::Ctrl('j') => { self.scroll_down().log(); },
- Key::Ctrl('k') => { self.scroll_up().log(); },
+ Key::Ctrl('n') => { self.scroll_down().log(); },
+ Key::Ctrl('p') => { self.scroll_up().log(); },
Key::Ctrl('v') => { self.page_down().log(); },
Key::Alt('v') => { self.page_up().log(); },
Key::Char('>') => { self.scroll_bottom().log(); },