Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/f1lt3r/findy
The handy little cli utility for finding lost files by name.
https://github.com/f1lt3r/findy
Last synced: 26 days ago
JSON representation
The handy little cli utility for finding lost files by name.
- Host: GitHub
- URL: https://github.com/f1lt3r/findy
- Owner: F1LT3R
- License: mit
- Created: 2017-06-28T02:02:01.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-07-06T05:25:12.000Z (over 7 years ago)
- Last Synced: 2024-10-06T14:18:03.348Z (about 1 month ago)
- Language: JavaScript
- Homepage:
- Size: 1.49 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Findy!
The handy little cli utility for finding lost files by name.
![[Findy Example Output](img/findy-example-output.png)](img/findy-example-output.png)
- [x] Find in subdirectories
- [x] Regex filepath pattern matching
- [x] Clickable file links from CLI
- [x] Files listed by modified date _(newest last)_
- [x] Auto-Ignore `node_modules` and `.git` dirs
- [x] Friendly date-time outputSee Findy in action: [Youtube](http://www.youtube.com/watch?v=bAXpDzsq32g)
_**Sidenote:** To find files by contents, forget grep, use [ack](https://beyondgrep.com/)_
## Installation
```shell
yarn install findy -g
```## Search Examples
### Find All Local
Find all files in the current directory containing the word `yarn` anywhere in the name:
```shell
findy '*yarn*'
```### Find By Extension
Find all `.env` and `.log` files in the current directory:
```shell
findy '*.env' '*.log'
```### Find Recursive
Find all `.env` files recursively:
```shell
findy '**/*.env'
```### Negation
**Important:** negation requires the use of single-quotes around the search phrase, unless used in an array (see: negative in array).
Find all Markdown files recursively, that are **not** named `README.md`:
```shell
findy '**/*.md' '!**/README.md'
```### Searching with Sudo
Searching through some files and directories may require elevated permission. Where you see: 'Unhandled rejection Error: EACCES: permission denied', you can use `sudo`.
Seach for files with elevated permission:
```shell
sudo findy '**/*.md'
```### Current Dir
**Important:** Findy will still search recursively, but will only show results that match the current directory.
Find any `README.md` file in the current directory:
```shell
findy 'README.md'
```### Containing Word Recursive
To recusively find any `.txt` file containing the the word `notes`:
```shell
findy '**/*notes*.txt'
```### Starting with word
To recusrively find any file starting with the the word `notes`:
```shell
findy '**/notes*'
```### Ending with word
To recusrively find any file ending with the the word `notes`:
```shell
findy '**/*notes.*'
```### Find This-or-That
To find a Markdown file containing either `notes` or `tasks`:
```shell
findy '**/*{notes,tasks}*.md'
```### Negative In Array
To find a anything in the current directory, with `foo` but **not** `bar`:
```shell
findy '*{foo,!bar}*'
```