{"id":15042360,"url":"https://github.com/duong-db/fzf-simple-completion","last_synced_at":"2025-04-14T20:45:59.869Z","repository":{"id":256001717,"uuid":"854076930","full_name":"duong-db/fzf-simple-completion","owner":"duong-db","description":"[Tab] When bash-completion meets fuzzy finder.","archived":false,"fork":false,"pushed_at":"2024-09-22T05:09:12.000Z","size":3,"stargazers_count":24,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-28T09:03:31.055Z","etag":null,"topics":["bash","bash-completion","fuzzy-finder","fzf","shell","tab-completion"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/duong-db.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-09-08T10:55:11.000Z","updated_at":"2025-03-25T19:30:59.000Z","dependencies_parsed_at":"2024-09-25T01:40:57.998Z","dependency_job_id":"0da43d51-4ae3-428e-95af-861e9cbe1167","html_url":"https://github.com/duong-db/fzf-simple-completion","commit_stats":null,"previous_names":["duong-db/fzf-simple-completion"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duong-db%2Ffzf-simple-completion","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duong-db%2Ffzf-simple-completion/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duong-db%2Ffzf-simple-completion/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duong-db%2Ffzf-simple-completion/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/duong-db","download_url":"https://codeload.github.com/duong-db/fzf-simple-completion/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248960685,"owners_count":21189987,"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","bash-completion","fuzzy-finder","fzf","shell","tab-completion"],"created_at":"2024-09-24T20:47:10.146Z","updated_at":"2025-04-14T20:45:59.851Z","avatar_url":"https://github.com/duong-db.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fzf simple completion\nPipe bash tab-completion suggestions into ``fzf`` fuzzy finder\n\n\u003ca href=\"https://asciinema.org/a/675226\" target=\"_blank\"\u003e\u003cimg src=\"https://asciinema.org/a/675226.svg\" width=75%/\u003e\u003c/a\u003e\n\n## Prerequisites\n- [fzf](https://github.com/junegunn/fzf) (command-line fuzzy finder)\n- [bash-completion](https://github.com/scop/bash-completion) (most Linux distros ship ``bash-completion`` by default, so there is less chance you will have to install it)\n\n## Quick start\nSource ``fzf-simple-completion.sh`` at the end of your ``.bashrc``. For example:\n```sh\nsource ~/path/fzf-simple-completion.sh\n```\nThis will replace the default bash completion by fzf selection menu whenever you hit ``TAB``.\n## Features\n- Commands and arguments completion\n- Directories shortening \n- Color support\n## How does it work?\nThis project is motivated by [Accessing tab-completion programmatically in Bash](https://brbsix.github.io/2015/11/29/accessing-tab-completion-programmatically-in-bash/). You may find some alternatives on Github as well, but the implementations looks overwhelming to me (I'm not a bash guru so I want to keep things as clean and manageable as possible).\n\nThe idea this project works on is straightforward: \n- Pipe all suggestions from ``bash-completion`` directly into ``fzf`` for easy search and selection.\n\nThere is an extra work to make the complettion handle directories with spaces, shortening paths, and coloring. The script itself is written in just a few lines of code, making it easy to modify and customize as needed.\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fduong-db%2Ffzf-simple-completion","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fduong-db%2Ffzf-simple-completion","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fduong-db%2Ffzf-simple-completion/lists"}