summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README.md12
-rw-r--r--src/file_browser.rs7
-rw-r--r--src/foldview.rs8
-rw-r--r--src/listview.rs12
-rw-r--r--src/proclist.rs10
5 files changed, 24 insertions, 25 deletions
diff --git a/README.md b/README.md
index 897b5bb..0ea4efc 100644
--- a/README.md
+++ b/README.md
@@ -50,8 +50,8 @@ cargo install hunter
### Build from source
```
-// Clone the git repo
-git clone https://github.com/rabite0/hunter.git
+// Clone the git repo
+git clone https://github.com/rabite0/hunter.git
// Go into the repos directory
cd {source_dir}/hunter/
@@ -63,13 +63,13 @@ cd {source_dir}/hunter/
cargo build --release
```
-###
+###
-This will create a binary in {source_dir}/hunter/target/release/hunter. If you want to call this like any other terminal app you have to put this binary in your path.
+This will create a binary in {source_dir}/hunter/target/release/hunter. If you want to call this like any other terminal app you have to put this binary in your path.
```ln -s {source_dir}/hunter/target/release/hunter /usr/bin/local/hunter```
-This will link the the binary to your local bin file. You can call hunter from anywhere. To update repeat the process, but you will **not** need to redo the binary link.
+This will link the the binary to your local bin file. You can call hunter from anywhere. To update repeat the process, but you will **not** need to redo the binary link.
## NOTE:
hunter uses [ranger's rifle](https://github.com/ranger/ranger/blob/master/ranger/ext/rifle.py) to open files if rifle is in your $PATH. If it can't find rifle it uses xdg-open. It also uses ranger's scope.sh to generate previews for non-text files. A slightly modified version is included in the "extra" directory. Put it in your $PATH somewhere if you want previews for non-text files.
@@ -77,7 +77,7 @@ hunter uses [ranger's rifle](https://github.com/ranger/ranger/blob/master/ranger
## Configuration
hunter reads $XDG_CONFIG_HOME/hunter/config at startup. There are two options, which can be set. The configuration file is read asynchronously, so if it's not read by the time hunter starts drawing you will see its default configuration until the config file is read. Options can be set like this (default config):
-animation=on
+animation=on
show_hidden=off
## Drop into hunter cwd on quit
diff --git a/src/file_browser.rs b/src/file_browser.rs
index dc24fa8..779c47a 100644
--- a/src/file_browser.rs
+++ b/src/file_browser.rs
@@ -1039,15 +1039,14 @@ impl Widget for FileBrowser {
match key {
Key::Char('/') => { self.turbo_cd()?; },
Key::Char('Q') => { self.quit_with_dir()?; },
- Key::Right | Key::Char('l') => { self.enter_dir()?; },
+ Key::Right | Key::Char('f') => { self.enter_dir()?; },
Key::Char('F') => { self.open_bg()?; },
- Key::Left | Key::Char('h') => { self.go_back()?; },
+ 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('L') => self.show_log()?,
+ Key::Char('l') => self.show_log()?,
Key::Char('z') => self.run_subshell()?,
Key::Char('c') => self.toggle_colums(),
_ => { self.main_widget_mut()?.on_key(key)?; },
diff --git a/src/foldview.rs b/src/foldview.rs
index 8e00209..4b3edfe 100644
--- a/src/foldview.rs
+++ b/src/foldview.rs
@@ -285,10 +285,10 @@ 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('l') => self.popup_finnished()?,
_ => {}
diff --git a/src/listview.rs b/src/listview.rs
index 3c85529..976acb0 100644
--- a/src/listview.rs
+++ b/src/listview.rs
@@ -55,13 +55,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()?;
},
@@ -79,8 +79,8 @@ impl Listable for ListView<Files> {
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(),
_ => { self.bad(Event::Key(key))?; }
}
diff --git a/src/proclist.rs b/src/proclist.rs
index eda40c1..b8e0524 100644
--- a/src/proclist.rs
+++ b/src/proclist.rs
@@ -562,16 +562,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(); },