{"id":13539621,"url":"https://github.com/metaory/xfind","last_synced_at":"2025-03-29T21:25:01.284Z","repository":{"id":230950516,"uuid":"776694458","full_name":"metaory/xfind","owner":"metaory","description":"Find (F/D)  ❯  Filter (SK/FZF)  ❯  Preview(CHROMA/BAT/CAT] ❯  Edit($EDITOR) ❯ Repeat  ⮔","archived":false,"fork":false,"pushed_at":"2024-06-24T04:07:01.000Z","size":64,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-04T22:17:46.729Z","etag":null,"topics":["automation","cli","filter","find","fzf","grep","rgrep","sk","skim"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/metaory.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-03-24T08:06:46.000Z","updated_at":"2024-06-27T14:32:11.000Z","dependencies_parsed_at":"2024-08-01T09:23:20.237Z","dependency_job_id":"2fa0ffd0-5c01-48e9-83f7-0e77e256abe9","html_url":"https://github.com/metaory/xfind","commit_stats":null,"previous_names":["metaory/xfind"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metaory%2Fxfind","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metaory%2Fxfind/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metaory%2Fxfind/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metaory%2Fxfind/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/metaory","download_url":"https://codeload.github.com/metaory/xfind/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246245234,"owners_count":20746608,"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":["automation","cli","filter","find","fzf","grep","rgrep","sk","skim"],"created_at":"2024-08-01T09:01:29.602Z","updated_at":"2025-03-29T21:25:01.265Z","avatar_url":"https://github.com/metaory.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\".github/assets/xfind.png\" width=\"168px\"/\u003e\n  \u003ch1\u003eX̸FIND\u003c/h1\u003e\n  \u003ch4\u003efind \u003cFILES\u003e or \u003cDIRS\u003e \u003c/h4\u003e\n  \u003ch5\u003efilter with \u003ckbd\u003eSK\u003c/kbd\u003e or \u003ckbd\u003eFZF\u003c/kbd\u003e, \u003c/h5\u003e\n  \u003ch5\u003epreview with \u003ckbd\u003eChroma\u003c/kbd\u003e, \u003ckbd\u003eBat\u003c/kbd\u003e ❘ \u003ckbd\u003eCat\u003c/kbd\u003e\u003c/h5\u003e\n  \u003ch5\u003eedit with \u003ckbd\u003eEDITOR\u003c/kbd\u003e\u003c/h5\u003e\n  \u003ch4\u003e ··· repeat ··· \u003c/h4\u003e\n\u003c/div\u003e\n\n```help\nNAME ~\n\txfind - find \u003cFILES\u003e or \u003cDIRS\u003e, filter with {SK} or {FZF}, preview with {Chroma}, {Bat}, {Cat} and edit with \u003cEDITOR\u003e, repeat;\n\n\nSYNOPSIS ~\n\txfind [\u003cTYPE\u003e\u003cDEPTH\u003e] [-not|--not-path \u003cGLOB\u003e]... \u003cGLOB\u003e\n\n\tfind files with max depth of 5 and two exclude glob and query glob \u003e\n\txfind f5 -not '*dist*' -not '**/lib/**' '*repo*.js'\n\u003c\n\nDESCRIPTION ~\n\tfind, filter, edit, repeat\n\tit will pipe the find result to a {FuzzyTool}\n\tit will look for {SK} and fallback to {FZF}\n\tfor Preview of \u003cFILES\u003e in the {FuzzyTool}, it will look for {Chroma}, {Bat}, {Cat} in that order\n\tfor Preview of \u003cDIR\u003e in the {FuzzyTool}, it will use Tree\n\ton Select the \u003cEDITOR\u003e will be invoked with the Selection\n\nEXAMPLES ~\n\tfind directories with max depth of 3 and one exclude glob and query glob \u003e\n\txfind d3 -not '*dist*' '*repo*'\n\u003c\n\n\tfind files with max depth of 5 and two exclude glob and query glob \u003e\n\txfind f5 -not '*dist*' -not '**/lib/**' '*repo*.js'\n\u003c\n\n\tfind directories named x11 with default max depth \u003e\n\txfind D x11\n\u003c\n\n\tfind files named xorg with default max depth \u003e\n\txfind xorg\n\u003c\n\tread from stdin \u003e\n\tls | xfind\n\u003c\n\tread from stdin \u003e\n\tgit status --short | awk '{print $2}' | xfind\n\u003c\n\n\nENVIRONMENT VARIABLES ~\n\tXFIND_MAXDEPTH  | default max-depth\n\tXFIND_SILENT    | Silent Query \u0026 Result Prints (0 or 1)\n\n\nSEE ALSO\n\tfind(1), fzf(1), locate(1)\n\n\nAUTHOR\n\tmetaory \u003cmetaory@gmail.com\u003e, Mar 2024\n```\n\nCONFIGURATION\n-------------\n\n- `ctrl-o`\ttoggle-preview\n- `ctrl-n`\tnext\n- `ctrl-p`\tprevious\n- `ctrl-d`\tpreview-page-down\n- `ctrl-u`\tpreview-page-up\n- `enter`\topen in `$EDITOR`\n\nInstallation\n------------\n\n- clone repo\n- give execution permissions\n- place it in your path\n\n```ex\n# Clone the repo\ngit clone git@github.com:metaory/xfind.git\n\n# Navigate to repo\ncd xfind\n\n# Give execution permissions\nchmod +x {xfind}\n\n# Link it somewhere in your PATH\nln -svf $PWD/xfind /usr/bin/xfind\n\n# Use it anywhere\nxfind f2 '*lib*'\n\n# Usage\nxfind --help\n```\n\nTODO\n====\n- [ ] Makefile\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetaory%2Fxfind","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmetaory%2Fxfind","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetaory%2Fxfind/lists"}