{"id":17237794,"url":"https://github.com/tarao/anything-git-files-el","last_synced_at":"2026-02-18T23:02:24.959Z","repository":{"id":8140943,"uuid":"9559757","full_name":"tarao/anything-git-files-el","owner":"tarao","description":null,"archived":false,"fork":false,"pushed_at":"2013-06-09T10:54:29.000Z","size":195,"stargazers_count":9,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-10-20T08:45:03.520Z","etag":null,"topics":["anything","emacs","git"],"latest_commit_sha":null,"homepage":null,"language":"Emacs Lisp","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/tarao.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}},"created_at":"2013-04-20T05:31:48.000Z","updated_at":"2021-03-29T19:48:49.000Z","dependencies_parsed_at":"2022-09-05T01:10:49.711Z","dependency_job_id":null,"html_url":"https://github.com/tarao/anything-git-files-el","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tarao/anything-git-files-el","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarao%2Fanything-git-files-el","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarao%2Fanything-git-files-el/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarao%2Fanything-git-files-el/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarao%2Fanything-git-files-el/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tarao","download_url":"https://codeload.github.com/tarao/anything-git-files-el/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarao%2Fanything-git-files-el/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29597854,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-18T22:25:43.180Z","status":"ssl_error","status_checked_at":"2026-02-18T22:25:42.766Z","response_time":162,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["anything","emacs","git"],"created_at":"2024-10-15T05:43:47.016Z","updated_at":"2026-02-18T23:02:24.937Z","avatar_url":"https://github.com/tarao.png","language":"Emacs Lisp","funding_links":[],"categories":[],"sub_categories":[],"readme":"anything-git-files.el --- anything for git files\n================================================\n\n![M-x anything-git-files](http://cdn-ak.f.st-hatena.com/images/fotolife/t/tarao/20130422/20130422080444.png \"M-x anything-git-files\")\n\n## Features\n\n- List all the files in a git repository which the file of the current buffer belongs to\n  - List untracked files and modified files in different sources\n- List files in the submodules\n- Cache the list as long as the repository is not modified\n- Avoid interrupting user inputs; external git command is invoked asynchronously\n\n## Install\n\n### Manual Install\n\n1. Install dependent package [anything.el](http://www.emacswiki.org/Anything)\n2. Locate [anything-git-files.el](https://raw.github.com/tarao/anything-git-files-el/master/anything-git-files.el) in your load path\n\n### Install by [MELPA](http://melpa.milkbox.net/)\n\n1. Type ``M-x package-install RET anything-git-files RET``.\n\n### Install by el-get\n\n1. Save the lines below as anything-git-files.rcp in your recipe directory\n2. Type ``M-x el-get RET anything-git-files RET``\n\n```lisp\n(:name anything-git-files\n       :type github\n       :pkgname \"tarao/anything-git-files-el\"\n       :depends anything)\n```\n\n## Usage\n\nLoad anything-git-files.el in your ~/.emacs or ~/emacs.d/init.el:\n```lisp\n(require 'anything-git-files)\n```\n\nThen, ``M-x anything-git-files`` will list the files in a git\nrepository.  Note that ``M-x anything-git-files`` will fail when the\nfile of the current buffer is not in a git repository.\n\n## Customization\n\n### Hack the anything sources\n\nThe anything sources to get files in a git repository are\n``anything-git-files:modified-source``,\n``anything-git-files:untracked-source`` and\n``anything-git-files:all-source``.\n\nThe list of anything sources for submodules can be retrieved by\nfunction ``anything-git-files:submodule-sources``. The function takes\none argument, which is a list of symbols of source type, ``modified``,\n``untracked`` or ``all``. For example,\n``(anything-git-files:submodule-sources '(untracked all)`` returns\nanything sources for untracked files and all files in the git\nrepository of the submodules.\n\nThe following example defines a custom anything function to\nlist files from several sources, including ones from\nanything-git-files.el.\n```lisp\n(defun tarao/anything-for-files ()\n  (interactive)\n  (require 'anything-config)\n  (require 'anything-git-files)\n  (let* ((git-source (and (anything-git-files:git-p)\n                          `(anything-git-files:modified-source\n                            anything-git-files:untracked-source\n                            anything-git-files:all-source\n                            ,@(anything-git-files:submodule-sources 'all))))\n         (other-source '(anything-c-source-recentf\n                         anything-c-source-bookmarks\n                         anything-c-source-files-in-current-dir+\n                         anything-c-source-locate))\n         (sources `(anything-c-source-buffers+\n                    anything-c-source-ffap-line\n                    anything-c-source-ffap-guesser\n                    ,@git-source\n                    ,@other-source)))\n    (anything-other-buffer sources \"*anything for files*\")))\n```\n\n## See Also\n\n- A guide in Japanese: [anythingでgitリポジトリ内のファイルの全列挙をきちんとやる](http://d.hatena.ne.jp/tarao/20130421/1366553578)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftarao%2Fanything-git-files-el","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftarao%2Fanything-git-files-el","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftarao%2Fanything-git-files-el/lists"}