Skip to content

Commit be2d1b3

Browse files
authored
Merge pull request #26 from popey/add-search-feature
Add search functionality
2 parents 9b430f1 + 5af7e19 commit be2d1b3

File tree

2 files changed

+226
-26
lines changed

2 files changed

+226
-26
lines changed

README.md

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -109,16 +109,25 @@ Press Enter or mouse click on a vulnerability to obtain limited details.
109109

110110
### Keys:
111111

112+
**Navigation:**
113+
* Arrow keys or `h`/`j`/`k`/`l` - Navigate the tree
114+
* Enter - Select item
115+
116+
**Views:**
117+
* `p` - View by package name
118+
* `v` - View by vulnerability ID
119+
* `t` - View by package type
120+
* `s` - View by severity
121+
122+
**Search:**
123+
* `/` - Search within current view
124+
* `n` - Find next result
125+
* `N` - Find previous result
126+
127+
**Actions:**
112128
* `e` - Request further details via `grype explain`
113129
* `q` - Quit
114130

115-
Sort by:
116-
117-
* `n` - Name of package
118-
* `v` - Vulnerability ID
119-
* `t` - Type of package
120-
* `s` - Severity of issue
121-
122131
## Making SBOMs
123132

124133
I use [Syft](https://github.com/anchore/syft) to generate SBOMs, but other tools are available. For example:

0 commit comments

Comments
 (0)