diff options
| author | typebrook <typebrook@gmail.com> | 2020-04-10 10:40:08 +0800 |
|---|---|---|
| committer | typebrook <typebrook@gmail.com> | 2020-04-10 10:40:08 +0800 |
| commit | 89887cee78d9f897dae7df8e6301e6bb995438ea (patch) | |
| tree | 908735b492b1fdf963bc8ed5b76ec11ced4d30ad | |
| parent | d0e23060bfb53987387c88cc89b7ec18a570a801 (diff) | |
Update README
| -rw-r--r-- | README.md | 20 |
1 files changed, 13 insertions, 7 deletions
| @@ -196,15 +196,11 @@ gist tag tag1 tag2 | |||
| 196 | ``` | 196 | ``` |
| 197 |  | 197 |  |
| 198 | 198 | ||
| 199 | #### Pin/Unpin tags | 199 | You can also use regex pattern as tag value: |
| 200 | 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 | ||
| 201 | ```bash | 200 | ```bash |
| 202 | # Pin tag1 and tag2, If a tag is pinned, then unpin it | 201 | # only show tagged gists |
| 203 | gist pin tag1 tag2 | 202 | gist tag .+ |
| 204 | # Disply gists with pinned tags | ||
| 205 | gist pin | ||
| 206 | ``` | 203 | ``` |
| 207 |  | ||
| 208 | 204 | ||
| 209 | #### Show existing tags | 205 | #### Show existing tags |
| 210 | Use sub-command `tags` to show existing tags and pinned tags. They are sorted alphabetically. | 206 | Use sub-command `tags` to show existing tags and pinned tags. They are sorted alphabetically. |
| @@ -213,6 +209,16 @@ gist tags | |||
| 213 | ``` | 209 | ``` |
| 214 |  | 210 |  |
| 215 | 211 | ||
| 212 | #### Pin/Unpin tags | ||
| 213 | 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 | ||
| 214 | ```bash | ||
| 215 | # Pin tag1 and tag2, If a tag is pinned, then unpin it | ||
| 216 | gist pin tag1 tag2 | ||
| 217 | # Disply gists with pinned tags | ||
| 218 | gist pin | ||
| 219 | ``` | ||
| 220 |  | ||
| 221 | |||
| 216 | ### Filter by pattern | 222 | ### Filter by pattern |
| 217 | You can search gists with pattern in description, filename or file contents with sub-command `grep` | 223 | You can search gists with pattern in description, filename or file contents with sub-command `grep` |
| 218 | ```bash | 224 | ```bash |