Project

recall

0.0
No release in over 3 years
Low commit activity in last 3 years
Search a local directory for a specific query
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 1.5
~> 10.1
>= 0
 Project Readme

Recall

Gem Version

Search local Ruby code files.

Each time the natural laziness which deters us from every difficult enterprise, every work of importance, has urged me to leave the thing alone, to drink my tea and to think merely of the worries of today and of my hopes for tomorrow, which let themselves be pondered over without effort or distress of mind.

And suddenly the memory returns. The taste was that of the little crumb of madeleine...

Note: This was the first Ruby gem I ever wrote, written in 2014 while I was a student and not updated since then, so you probably use grep or ripgrep instead!

What Recall does

The first time users run Recall, they'll be prompted to enter the absolute path of their desired search directory (most likely the user's main "code" directory).

Once the user sets his or her preferred search directory, Recall accepts a search query and will recursively search through all of the .rb and .erb files in that directory for mentions of the query. An example of a typical query would be a semi-exotic Ruby method like .each_with_object.

When it's completed its search, Recall opens a new .rb file in the user's default text editor, presenting all of the search results it found. When the user is finished with the results, he or she can simply close it. The results file is overwritten with each subsequent search.

Installation

From your command line, enter:

gem install recall

Usage

To use recall, simply type recall into your command line from any directory. The first time you call the gem it will ask for the absolute path of a directory for it to search -- typically your large "code" directory.

Then Recall will ask for a search query. It will search all of the .rb files in that directory, recursively, and present the results in a new .rb file.

Your search directory will persist until you change it. To change the search directory, enter change_dir into the prompt.

Notes

Currently, Recall only searches files with the .rb or the .erb extensions.

Thanks

Huge thanks to Kevin Curtin for getting the gem working!