{"id":18136260,"url":"https://github.com/purarue/fzfcache","last_synced_at":"2025-12-16T00:06:13.429Z","repository":{"id":94610146,"uuid":"464804761","full_name":"purarue/fzfcache","owner":"purarue","description":"A small cache for unique lines of text, used to speedup the 'time to select' of expensive fzf invocations","archived":false,"fork":false,"pushed_at":"2024-10-27T20:03:25.000Z","size":6690,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-08T23:34:05.733Z","etag":null,"topics":["cache","fzf","fzf-scripts"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/purarue.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,"publiccode":null,"codemeta":null}},"created_at":"2022-03-01T08:22:33.000Z","updated_at":"2024-10-27T20:03:29.000Z","dependencies_parsed_at":"2024-10-26T12:09:38.175Z","dependency_job_id":"f46a3cd9-a95b-4b32-b72a-d08f832e6bcb","html_url":"https://github.com/purarue/fzfcache","commit_stats":null,"previous_names":["purarue/fzfcache","seanbreckenridge/fzfcache"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purarue%2Ffzfcache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purarue%2Ffzfcache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purarue%2Ffzfcache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purarue%2Ffzfcache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/purarue","download_url":"https://codeload.github.com/purarue/fzfcache/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247517919,"owners_count":20951719,"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":["cache","fzf","fzf-scripts"],"created_at":"2024-11-01T14:41:31.072Z","updated_at":"2025-10-14T04:15:51.464Z","avatar_url":"https://github.com/purarue.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"## fzfcache\n\nA small cache for unique lines of text, used to speedup the load time of expensive [fzf](https://github.com/junegunn/fzf) invocations\n\nGiven any shell command as positional arguments:\n\n- If that command has been run in the past (determined by hashing the command itself), immediately prints the cached value -- this means you can immediately select something with `fzf`\n- Prints any lines from that shell command to STDOUT, which haven't already been printed from the cachefile, removing any duplicates\n- Once the shell command exits, saves the output of the shell command to a file in `~/.cache/fzfcache/`\n\nThis keeps a history of one command, so its possible that lines from the previous result are included in the current `fzf` buffer/cachefile. So, if exact results are very important every time this is run, this probably isn't for you.\n\nAs an example:\n\n\u003cimg src=\"https://raw.githubusercontent.com/purarue/fzfcache/master/.github/demo.gif\"\u003e\n\nAs some other examples of me using this:\n\n- [cache food items](https://github.com/purarue/ttally#shell-scripts) (in [`cz`](https://github.com/purarue/ttally/blob/master/bin/cz))\n- jump to directories I use often in [`cd.zsh`](https://purarue.xyz/d/cd.zsh?dark)\n- pick a [config file to edit](https://github.com/purarue/dotfiles/blob/2c579f32e6c3a5d42736816e4d38e0a409a847e4/.config/shortcuts.toml#L5-L21)\n- pick a [config file to send to someone](https://purarue.xyz/d/give?dark)\n- search my [github stars](https://purarue.xyz/d/mystarsfzf?dark)\n\n### Install\n\nUsing `go install` to put it on your `$GOBIN`:\n\n`go install github.com/purarue/fzfcache@latest`\n\n```\nusage: fzfcache [-h] \u003cSHELL COMMAND...\u003e\n\nCaches the input from the shell command and/or prints the cached results\nThis is typically piped into fzf, to decrease the time till interactive\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpurarue%2Ffzfcache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpurarue%2Ffzfcache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpurarue%2Ffzfcache/lists"}