Skip to content

Commit

Permalink
Update docs.md
Browse files Browse the repository at this point in the history
  • Loading branch information
antonmedv committed Dec 15, 2018
1 parent ef77520 commit 3c891ba
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,8 @@ Next commands available in interactive mode:
| `up`/`down` or `k/j` | Move cursor up/down |
| `left`/`right` or `h/l` | Expand/Collapse |
| `.` | Edit filter |
| `/` | Search |
| `n` | Goto next found pattern |

These commands are available when editing the filter:

Expand All @@ -176,6 +178,19 @@ These commands are available when editing the filter:
| `Ctrl`+`w` | Delete last part |
| `up`/`down` | Select autocomplete |

### Search

Press `/` and type regexp pattern to search in current JSON. Search work with currently applied filter.

Examples of pattern and corresponding regexp:

| Pattern | RegExp |
|------------|-------------|
| `/apple` | `/apple/ig` |
| `/apple/` | `/apple/` |
| `/apple/u` | `/apple/u` |
| `/\w+` | `/\w+/ig` |

### 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:
Expand Down

0 comments on commit 3c891ba

Please sign in to comment.