Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vmarcosp/findr
🔎 A simple and intuitive find & replace command-line interface.
https://github.com/vmarcosp/findr
esy find find-and-replace find-cli find-files finder ocaml reason-native replace replace-text sed
Last synced: about 1 month ago
JSON representation
🔎 A simple and intuitive find & replace command-line interface.
- Host: GitHub
- URL: https://github.com/vmarcosp/findr
- Owner: vmarcosp
- License: mit
- Archived: true
- Created: 2020-10-21T23:45:40.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2020-11-30T22:04:29.000Z (about 4 years ago)
- Last Synced: 2024-08-02T16:04:41.240Z (4 months ago)
- Topics: esy, find, find-and-replace, find-cli, find-files, finder, ocaml, reason-native, replace, replace-text, sed
- Language: Reason
- Homepage:
- Size: 956 KB
- Stars: 82
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-list - findr - line interface. | vmarcosp | 68 | (Reason)
- project-awesome - vmarcosp/findr - 🔎 A simple and intuitive find & replace command-line interface. (Reason)
README
Preview •
Features •
Commands •
License
## Preview
Find command
Replace command + regex
## Installation
### Using npm or yarn
```
npm i -g @vmarcosp/findr
# or
yarn global add @vmarcosp/findr
```
### Using curl + script
```
curl -fsSL https://github.com/vmarcosp/findr/raw/master/scripts/install.sh | bash
```## OS Support
- :white_check_mark: Mac
- :white_check_mark: Linux
- :gear: Windows *(WIP)*## Features
- :white_check_mark: Find
- :white_check_mark: Replace
- :white_check_mark: Colorized output
- :white_check_mark: Highlight and preview occurrences
- :white_check_mark: Select files to replace
- :white_check_mark: Regex support
- ⚙️ Select ocurrences to replace *(WIP)*## Commands
### Find command:
Positional arguments:
- 1º *Text to find*Named arguments:
- `--folder` or `-f`
- `--regex` or `-r` regex mode
- `--extension` or `-e` filter files by extensionExample:
```sh
# Basic usage
findr find "write_file" --folder src# Filtering by extension
findr find "write_file" --folder src --extension re,js
```### Replace command:
Positional arguments:
- 1º *Text to replace*
- 2º *New text*Named arguments:
- `--folder` or `-f`
- `--regex` or `-r` *regex mode*
- `--extension` or `-e` filter files by extensionExample:
```sh
# Basic usage
findr replace "write_file" "create_file" --folder src# Regex mode
findr replace "\bwrite_file" "create_file" --folder src --regex
```## License
MIT