diff options
-rwxr-xr-x | gist | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -44,6 +44,7 @@ | |||
44 | # gist 3 (show the repo path of your 3rd gist, and do custom actions) | 44 | # gist 3 (show the repo path of your 3rd gist, and do custom actions) |
45 | # gist 3 --no-action (show the repo path of your 3rd gist, and do not perform actions) | 45 | # gist 3 --no-action (show the repo path of your 3rd gist, and do not perform actions) |
46 | # gist new --desc bar foo (create a new gist with files and description) | 46 | # gist new --desc bar foo (create a new gist with files and description) |
47 | # gist tag .+ (show tagged gists) | ||
47 | # | 48 | # |
48 | # Since now a gist is a local cloned repo | 49 | # Since now a gist is a local cloned repo |
49 | # It is your business to do git commit and git push | 50 | # It is your business to do git commit and git push |
@@ -731,7 +732,7 @@ _tag_gist() { | |||
731 | (_edit_gist $1 "$new_desc" &>/dev/null &) | 732 | (_edit_gist $1 "$new_desc" &>/dev/null &) |
732 | # if user want to filter gists with given tags | 733 | # if user want to filter gists with given tags |
733 | else | 734 | else |
734 | local pattern="($(sed -E 's/([^ ]+)/#\1/g; s/ /[[:space:]]|/g' <<<"$@") )" | 735 | local pattern="($(sed -E 's/([^ ]+)/#\1/g; s/ /[[:space:]]|/g; s/\./[^ ]/g' <<<"$@") )" |
735 | hint=false mark=${INPUT:+.} display=tag _show_list | grep --color=always -E "$pattern" | 736 | hint=false mark=${INPUT:+.} display=tag _show_list | grep --color=always -E "$pattern" |
736 | fi | 737 | fi |
737 | } | 738 | } |