{"id":16848491,"url":"https://github.com/yazgoo/fuzzysh","last_synced_at":"2025-04-11T06:38:28.347Z","repository":{"id":221153562,"uuid":"753589587","full_name":"yazgoo/fuzzysh","owner":"yazgoo","description":"minimalist selector in shell, inspired by fzf","archived":false,"fork":false,"pushed_at":"2024-12-18T23:00:28.000Z","size":1812,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-25T04:33:07.612Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/yazgoo.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":"2024-02-06T12:27:31.000Z","updated_at":"2024-12-18T23:00:31.000Z","dependencies_parsed_at":"2024-03-01T00:25:57.738Z","dependency_job_id":"2e2c4071-aa20-4074-93d4-2218c46747e1","html_url":"https://github.com/yazgoo/fuzzysh","commit_stats":null,"previous_names":["yazgoo/fuzzysh"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yazgoo%2Ffuzzysh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yazgoo%2Ffuzzysh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yazgoo%2Ffuzzysh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yazgoo%2Ffuzzysh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yazgoo","download_url":"https://codeload.github.com/yazgoo/fuzzysh/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248358547,"owners_count":21090401,"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":[],"created_at":"2024-10-13T13:11:32.399Z","updated_at":"2025-04-11T06:38:28.318Z","avatar_url":"https://github.com/yazgoo.png","language":"Ruby","funding_links":[],"categories":["\u003ca name=\"option-picker\"\u003e\u003c/a\u003eFuzzy finders and option pickers"],"sub_categories":[],"readme":"\nMinimalist selector in shell, à la [fzf](https://github.com/junegunn/fzf)\n\n[![screenshot](doc/animation.gif)](doc/animation.gif)\n\n[![test](https://github.com/yazgoo/fuzzysh/actions/workflows/test.yml/badge.svg)](https://github.com/yazgoo/fuzzysh/actions/workflows/test.yml)\n\n## what's it for ?\n\nYou need to:\n\n- select between several choices ?\n- in a shell script ?\n- with minimal dependencies ?\n\n**Just copy the [fsh](fsh) function in your script.**\n\n## usage example\n\n```bash\n$ echo -e 'Hello, world!\\n¡Hola, mundo!\\nBonjour, le monde !\\nHallo, Welt!' | ./fsh\n```\n\n\u003cdetails\u003e\n\u003csummary\u003e\n...\n\u003c/summary\u003e\n\n\n```\nHello, world!\n¡Hola, mundo!\nBonjour, le monde !\nHallo, Welt!\n\n\u003e \n```\n\ntype your text\n\n```\nHallo, Welt!\n\n\u003e hall\n```\n\nPress enter\n\n```\nHallo, Welt!\n```\n\n\u003c/details\u003e\n\n## limitations\n\n- not POSIX shell: it's only tested in `zsh` and `bash`.\n- to keep it lightweight and fast, I (mostly) don't plan on adding new features.\n\n\n## variables reference\n\n\u003cdetails\u003e\n\u003csummary\u003eYou can customize the behavior of fsh by setting the following variables:\u003c/summary\u003e\n\n | Variable | Description | Default value |\n | -------- | ----------- | ------------- |\n | FSH_SELECTOR_COLOR | the color line currently highlighted | 40 |\n | FSH_FRAME_COLOR | the color of the frame | 30 |\n | FSH_PROMPT_COLOR | the color used for the prompt | 34 |\n | FSH_SELECT_COLOR | the color of the sign before the line currently selected | 31 |\n | FSH_TEST_INPUT | the simulated user input given as a string, one character at a time. first character will be ignored. if set the script will not read from stdin | \"\" |\n | FSH_HEADER | a name to display beofre the prompt to give context on what is expected | \"\" |\n | FSH_VIM_MODE | (not implemented) set this variable to support vim normal mode | \"\" |\n | FSH_PERF | if this variable is set, will display the time it took to draw the interface | \"\" |\n | FSH_NO_FUZZY | if this variable is set, will not use fuzzy search, instead will do a pattern match | \"\" |\n | FSH_LINES | the height of the terminal (used for testing, otherwise will be set by tput) | $t_lines |\n | FSH_COLUMNS | the width of the terminal (used for testing, otherwise will be set by tput) | $t_cols |\n | FSH_SCREENSHOT | if this variable is set, will write a screenshot of the terminal at each iteration and generate an animation at the end | \"\" |\n\n\u003c/details\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyazgoo%2Ffuzzysh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyazgoo%2Ffuzzysh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyazgoo%2Ffuzzysh/lists"}