{"id":13602803,"url":"https://github.com/srijanshetty/snips","last_synced_at":"2025-09-23T04:40:05.165Z","repository":{"id":33621915,"uuid":"37274170","full_name":"srijanshetty/snips","owner":"srijanshetty","description":"Easily stash snippets of text and invoke them when needed","archived":false,"fork":false,"pushed_at":"2024-02-27T15:56:17.000Z","size":1337,"stargazers_count":82,"open_issues_count":1,"forks_count":5,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-10T05:34:37.503Z","etag":null,"topics":["bash","dotfiles","dotfiles-linux","dotfiles-macos","fuzzy-search","js","linux","npm","plugin","shell","snippets","snips","typescript","zsh"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/srijanshetty.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2015-06-11T16:59:32.000Z","updated_at":"2024-11-30T05:48:33.000Z","dependencies_parsed_at":"2023-11-12T09:26:39.333Z","dependency_job_id":"4ee78d04-21a7-4539-b23f-994c29db7062","html_url":"https://github.com/srijanshetty/snips","commit_stats":{"total_commits":58,"total_committers":4,"mean_commits":14.5,"dds":0.1724137931034483,"last_synced_commit":"4919eb572b8f48d289fa309e4cc1411e74296c73"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srijanshetty%2Fsnips","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srijanshetty%2Fsnips/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srijanshetty%2Fsnips/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srijanshetty%2Fsnips/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/srijanshetty","download_url":"https://codeload.github.com/srijanshetty/snips/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238874320,"owners_count":19545163,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bash","dotfiles","dotfiles-linux","dotfiles-macos","fuzzy-search","js","linux","npm","plugin","shell","snippets","snips","typescript","zsh"],"created_at":"2024-08-01T18:01:38.445Z","updated_at":"2025-09-23T04:40:00.140Z","avatar_url":"https://github.com/srijanshetty.png","language":"TypeScript","readme":"```\n               _\n   _________  (_)___  _____\n  / ___/ __ \\/ / __ \\/ ___/\n (__  ) / / / / /_/ (__  )\n/____/_/ /_/_/ .___/____/\n            /_/\n```\n\n\u003e Easily stash `snip`pet`s` of text and invoke them when needed\n\n## Install\n\n```bash\nnpm install -g snips-cli\n```\n\n## Examples\n\n```bash\nsnips                           # with no arguments it will just list all your snips.\nsnips list                      # lists all your snips.\nsnips new \u003csnip-name\u003e           # create \u003csnip-name\u003e snip\nsnips edit \u003csnip-name?\u003e         # edit \u003csnip-name\u003e snip, fuzzy completion if snip-name is skipped\nsnips copy \u003csnip-name?\u003e         # Copies content of the snip to the clipboard, fuzzy completion if snip-name is skipped\n```\n\n## Live\n![](snips.gif)\n\n## Behind the scenes\nAll snips are stored in `~/.snips` directory. You can play around with them to your hearts content without adversely affecting the functioning of `snips`.\n\n`snips` looks for the `$EDITOR` global variable, and uses the defined `$EDITOR`.\n\n## Recipes\nI've refrained from reinventing the wheel and overloading `snips` with unnecessary features. Here are a couple of recipes that I find work well with snips.\n\n**Search Snippets**\n\nUse grep or ag.\n\n    grep \u003csearch-term\u003e ~/.snips\n    ag \u003csearch-term\u003e ~/.snips\n\n**Fuzzy Search snippet-names**\n\ncopy and edit support fuzzy completion out of the box\n\n    snips copy\n    snips edit\n\n**Use snips in multiple machines**\n\nBackup `.snips` in `git`.\n\n## TODO\n\n## Non Goals\n- gist support.\n- git support.\n- content search in snips\n\n## Credits\nI've tried to mimic most of the features of [sheets](https://github.com/oscardelben/sheet), and add a couple on top. While `sheets` is awesome, I didn't know `ruby` enough to directly hack on it.\n\n## LICENSE\nMIT © [Srijan R Shetty](http://srijanshetty.in)\n","funding_links":[],"categories":["Command-Line Productivity","bash","TypeScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrijanshetty%2Fsnips","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsrijanshetty%2Fsnips","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrijanshetty%2Fsnips/lists"}