Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update key bindings documentation #145

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 17 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,19 +98,23 @@ No additional setup is required.

## Usage

| Key binding | Description |
|------------------|--------------------|
| `arrows`, `hjkl` | Move cursor |
| `shift+arrows` | Jump to start/end |
| `enter` | Enter directory |
| `backspace` | Exit directory |
| `space` | Toggle preview |
| `esc`, `q` | Exit with cd |
| `ctrl+c` | Exit without cd |
| `/` | Fuzzy search |
| `d`, `delete` | Delete file or dir |
| `y` | yank current dir |
| `.` | Hide hidden files |
| Key binding | Description |
|------------------|------------------------|
| `arrows`, `hjkl` | Move cursor |
| `shift+arrows` | Move most to direction |
| `pgup`, `g` | Go to column top |
| `pgdown`, `G` | Go to column bottom |
| `home` | Go to beginning |
| `end` | Go to end |
| `enter` | Enter directory |
| `backspace` | Exit directory |
| `space` | Toggle preview |
| `esc`, `q` | Exit with cd |
| `ctrl+c` | Exit without cd |
| `/` | Fuzzy search |
| `d`, `delete` | Delete file or dir |
| `y` | yank current dir |
| `.` | Hide hidden files |

## Configuration

Expand Down
5 changes: 5 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -992,6 +992,11 @@ func usage() {
_, _ = fmt.Fprintln(w, s)
}
put(" arrows, hjkl\tMove cursor")
put(" shitf+arrows\tMove most to direction")
put(" pgup, g\tGo to column top")
put(" pgdown, G\tGo to column bottom")
put(" home\tGo to beginning")
put(" end\tGo to end")
put(" enter\tEnter directory")
put(" backspace\tExit directory")
put(" space\tToggle preview")
Expand Down