1.0.11 • Published 2 years ago
i-knew-that-file v1.0.11
I knew that file!
Install
$ npm i -g i-knew-that-fileThis program helps you find files that you don't remember but want to retrieve, by using the openai API.
To run the program, use the following command:
$ ikt key
> Please enter your OpenAI API key: # Add your API key here Then describe the file you are looking for, and the program will find the most relevant file among those tracked by git
$ ikt query
> Ah... I knew that: # Describe the file you are looking forHere's an example of how it would look like:
$ ikf query
> Ah... I knew that: config files
tsconfig.json (100%) # relatedness percentage
.gitignore (70%)
.npmignore (60%)
.prettierrc (50%)
package.json (20%)
token usage (requests): 308 (1)You can also use the -s or --scope flag to specify a directory to search in:
glob patterns are supported.
$ ikt query -s "src/*"
> Ah... I knew that: config filesPlease note that this program requires an internet connection to use the openai API. You can obtain an openai API key from the openai website if you require one.