From 89887cee78d9f897dae7df8e6301e6bb995438ea Mon Sep 17 00:00:00 2001 From: typebrook Date: Fri, 10 Apr 2020 10:40:08 +0800 Subject: Update README --- README.md | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 69d9a24..40ad032 100644 --- a/README.md +++ b/README.md @@ -196,15 +196,11 @@ gist tag tag1 tag2 ``` ![](https://i.imgur.com/rchqMN1.png) -#### Pin/Unpin tags -Say you are working with gists with some meaningful tags. You can use sub-command `pin` to pin them, and filter your gists with pinned tags +You can also use regex pattern as tag value: ```bash -# Pin tag1 and tag2, If a tag is pinned, then unpin it -gist pin tag1 tag2 -# Disply gists with pinned tags -gist pin +# only show tagged gists +gist tag .+ ``` -![](https://i.imgur.com/LuEjNry.png) #### Show existing tags Use sub-command `tags` to show existing tags and pinned tags. They are sorted alphabetically. @@ -213,6 +209,16 @@ gist tags ``` ![](https://i.imgur.com/PuwmaK4.png) +#### Pin/Unpin tags +Say you are working with gists with some meaningful tags. You can use sub-command `pin` to pin them, and filter your gists with pinned tags +```bash +# Pin tag1 and tag2, If a tag is pinned, then unpin it +gist pin tag1 tag2 +# Disply gists with pinned tags +gist pin +``` +![](https://i.imgur.com/LuEjNry.png) + ### Filter by pattern You can search gists with pattern in description, filename or file contents with sub-command `grep` ```bash -- cgit v1.2.3-70-g09d2