diff options
-rwxr-xr-x | gist | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -276,6 +276,7 @@ _show_list() { | |||
276 | 276 | ||
277 | # TODO support filenames, file contents | 277 | # TODO support filenames, file contents |
278 | _grep_content() { | 278 | _grep_content() { |
279 | if [[ -z $1 ]]; then echo 'Please give a pattern' && return 1; fi | ||
279 | while read -r index url _ _ _ _ _ _ description; do | 280 | while read -r index url _ _ _ _ _ _ description; do |
280 | if grep --color=always -iq "$1" <<<"$description"; then | 281 | if grep --color=always -iq "$1" <<<"$description"; then |
281 | hint=false mark="$index " _show_list | grep --color=always -Ei "$1" | 282 | hint=false mark="$index " _show_list | grep --color=always -Ei "$1" |