https://github.com/manateelazycat/recursive-search-references
Find function references in directory
https://github.com/manateelazycat/recursive-search-references
Last synced: 8 months ago
JSON representation
Find function references in directory
- Host: GitHub
- URL: https://github.com/manateelazycat/recursive-search-references
- Owner: manateelazycat
- Created: 2022-04-28T12:17:05.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-04T09:11:44.000Z (over 2 years ago)
- Last Synced: 2024-12-30T19:35:12.131Z (10 months ago)
- Language: Emacs Lisp
- Size: 9.77 KB
- Stars: 12
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# What is recursive-search-references.el ?
Sometimes I want to know if an Elisp extension I installed is used? Delete it if it is not usedSo we open extension file, find every function name, then use ripgrep search it in my Emacs config directory, over and over again, if there are many functions define in extension, this process will be very, very painful.
recursive-search-references help you do those process automatically:
1. Use treesit list all functions in current extension
2. Use ripgrep search every functions in you special directory (usually is your emacs configuration directory), but except the directory that contain current extension
3. It will notify you "remove current extension safely" if no any reference found in directory## Installation
1. Install Emacs 29 or above to support treesit
2. Install [ripgrep](https://github.com/BurntSushi/ripgrep)
3. Clone or download this repository (path of the folder is the `` used below).In your `~/.emacs`, add the following two lines:
```Elisp
(add-to-list 'load-path "") ; add recursive-search-references to your load-path
(require 'recursive-search-references)
```## Usage
* recursive-search-references : find function references in directory