Update README.md

This commit is contained in:
Anton Medvedev 2018-11-09 23:58:15 +07:00 committed by GitHub
parent 9291ce4397
commit d86b06c609
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -157,17 +157,26 @@ Start interactive mode without passing any arguments:
``` ```
$ curl ... | fx $ curl ... | fx
``` ```
Click on fields to expand or collapse JSON tree, use mouse wheel to scroll view. To select text, press `alt` or `option` key. Click on fields to expand or collapse JSON tree, use mouse wheel to scroll view.
Next commands available in interactive mode: Next commands available in interactive mode:
| Key | Command | | Key | Command |
|-----|---------| |----------------------------|-------------------------|
| `q` or `Esc` or `Ctrl`+`c` | Exit | | `q` or `Esc` or `Ctrl`+`c` | Exit |
| `e`/`E` | Expand/Collapse all | | `e`/`E` | Expand/Collapse all |
| `up`/`down` or `k`/`j` | Scroll up/down one line | | `up`/`down` or `k`/`j` | Scroll up/down one line |
| `g`/`G` | Goto top/bottom | | `g`/`G` | Goto top/bottom |
#### Selecting text
You may found what you can't just select text in fx. This is due the fact that all mouse events redirected to stdin. To be able select again you need instruct your terminal not to do it. This can be done by holding special keys while selecting:
| Key | Terminal |
|------------------|--------------|
| `Option`+`Mouse` | iTerm2 |
| `Fn`+`Mouse` | terminal.app |
## Related ## Related