{"id":15442804,"url":"https://github.com/jaimebuelta/ffind","last_synced_at":"2025-04-09T20:04:37.266Z","repository":{"id":553356,"uuid":"6569763","full_name":"jaimebuelta/ffind","owner":"jaimebuelta","description":"A sane replacement for find","archived":false,"fork":false,"pushed_at":"2025-03-22T17:15:31.000Z","size":27894,"stargazers_count":126,"open_issues_count":2,"forks_count":9,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-04-09T20:04:31.416Z","etag":null,"topics":["cli","python","regex","search"],"latest_commit_sha":null,"homepage":null,"language":"Python","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/jaimebuelta.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-11-06T21:26:53.000Z","updated_at":"2025-03-22T17:14:48.000Z","dependencies_parsed_at":"2023-02-18T15:15:55.522Z","dependency_job_id":null,"html_url":"https://github.com/jaimebuelta/ffind","commit_stats":null,"previous_names":[],"tags_count":27,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaimebuelta%2Fffind","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaimebuelta%2Fffind/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaimebuelta%2Fffind/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaimebuelta%2Fffind/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jaimebuelta","download_url":"https://codeload.github.com/jaimebuelta/ffind/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248103868,"owners_count":21048245,"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":["cli","python","regex","search"],"created_at":"2024-10-01T19:30:20.378Z","updated_at":"2025-04-09T20:04:37.243Z","avatar_url":"https://github.com/jaimebuelta.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"ffind v1.6.1 - A sane replacement for command line file search\n===\n\n[![Downloads](https://pepy.tech/badge/ffind)](https://pepy.tech/project/ffind)\n[![Build Status](https://travis-ci.org/jaimebuelta/ffind.svg?branch=master)](https://travis-ci.org/jaimebuelta/ffind)\n[![PyPI version](https://badge.fury.io/py/ffind.svg)](https://badge.fury.io/py/ffind)\n[![codecov](https://codecov.io/gh/jaimebuelta/ffind/branch/master/graph/badge.svg)](https://codecov.io/gh/jaimebuelta/ffind)\n\n# About ffind\n\nffind allows quick and easy recursive search for files in the command line. Very convenient to find a file you don't know exactly where it is or how it's called in a jungle of directories. \n\nFor example, when:\n\n- Developing code. When it's that `.js` file? It was called my_feature_something_somethign.js, but not sure on which on of the 30 subdirectories it is. `ffind my_feature`\n- Searching for a particular funny meme. It was under Images directory, but not sure if it was a .mp4 or .gif and if it was \"dancing\" or \"DANCE\"... `ffind Images/ danc`\n\n**See it here in action!**\n\n![Demo](https://github.com/jaimebuelta/ffind/blob/master/ffind.gif)\n\nIf you have deal with Unix `find`, it replaces the cumbersome `find . -name '*FILE_PATTERN*'` with `ffind FILE_PATTERN` (plus more niceties).\n\n# Main features\n\n- Search recursively on current directory by default.\n- Ignores hidden and source control files and directories by default, avoiding showing files you don't care.\n- If the `FILE_PATTERN` is all in lowercase, the search will be case insensitive, unless a flag is set. Just write the search in lowercase to ensure maximum returns.\n- Will print colorized output in glamorous red (default), except on redirected output.\n- Can delete matched files, making very easy to clean compiled files, like `.pyc` or `.o`. Try `ffind --delete pyc` on your Python project\n\nCommon uses:\n\n- `ffind txt` to return all plain text files in current tree structure.\n- `ffind ../other_dir txt` to return all plain text files under dir ../other_dir\n- `ffind --delete pyc` to delete files that contain `pyc`. Use `ffind --delete pyc$` for only files *ending* in `pyc`\n\nBut wait, there is more!\n\n- Input filename may be a full regex\n- Regex can affect only the filename (default) or the full path.\n- Follow symlinks by default, but that can be deactivated if necessary to avoid recursion problems\n- Works in Python3! Older versions (until v1.3.1) are also Python 2.7 compatible for legacy support\n- Can execute commands on matched files\n- Experimental fuzzy search\n\n\n# Install\n\nRequires [pip](https://pip.pypa.io/en/stable/installing/), the tool for installing Python packages. You already have it installed by default on Python3!\n\n```\npip install ffind\n```\n\n# All arguments\n\nCall `ffind --help` to display all the available arguments.\n\n    usage: ffind.py [-h] [-p] [--nocolor] [--nosymlinks] [--hidden] [-c]  [-i]\n                [--delete | --exec \"command\" | --module \"module_name args\" | --command \"program\"]\n                [--ignore-vcs] [-f] [--version]\n                [dir] filepattern\n\n    Search file name in directory tree\n\nMore information [here](https://github.com/jaimebuelta/ffind/blob/master/docs/ALL_ARGUMENTS.md)\n\n# Environment variables\n\nEnvironment variables in your shell can be used to set up default options and parameters. See [here](https://github.com/jaimebuelta/ffind/blob/master/docs/ENV_VARIABLES.md) for more information.\n\n\n# Manual install\n\nFrom the source code directory:\n\n```\npython setup.py install\n```\n\n# Test\n\nTo test ffind, you must install [cram](https://bitheap.org/cram/) (you can use `pip install cram`). To run all the tests, run `make test`. This runs the tests on both Python 2 and Python 3. Running just `make` runs the test for Python 3.\n\nThe tests are under the `tests` directory; more tests are welcome.\n\n\n# License\n\nThe MIT License (MIT)\n\nCopyright (c) 2013-2022 Jaime Buelta\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaimebuelta%2Fffind","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaimebuelta%2Fffind","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaimebuelta%2Fffind/lists"}