From 3c891babf73062ffb9ca686ec79eae77227c1451 Mon Sep 17 00:00:00 2001 From: Anton Medvedev Date: Sat, 15 Dec 2018 14:14:44 +0700 Subject: [PATCH] Update docs.md --- docs.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docs.md b/docs.md index 5e9d423..d4f1035 100644 --- a/docs.md +++ b/docs.md @@ -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: @@ -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: