Scooter is a terminal UI app that simplifies the find-and-replace process. It supports both fixed strings and regular expressions, allowing you to interactively choose which instances to replace while respecting your .gitignore settings. Streamline your text manipulation tasks with ease.
Scooter is an innovative interactive find-and-replace terminal UI application designed to streamline your text search and replacement tasks in the terminal. With Scooter, you can perform searches using either a fixed string or a powerful regular expression, allowing for flexible and efficient updates to your files.
Key Features
- Interactive Replacement: Toggle instances interactively, giving you complete control over which occurrences to replace.
- Regex Pattern Support: Easily specify regex patterns for both the text you wish to find and the file paths you want to search through, enhancing your search capabilities.
- .gitignore and .ignore Compliance: Scooter is designed to respect your
.gitignore
and.ignore
files, ensuring that your searches are conducted only where relevant. - Capture Groups: Make use of capture groups in your regex search patterns to dynamically adjust your replacement strings. For example, using a search pattern like
(\\d) - (\\w+)
and a replacement string of($2) "$1"
, would convert9 - foo
into(foo) "9"
.
How to Use
To start using Scooter, simply run scooter
in your terminal. You will be prompted to enter the text you want to search for, the text for replacement, and any filename regex patterns. A variety of key mappings are available at the bottom of the window to facilitate your experience, tailored to the specific screen context you are in.
Scooter provides a seamless and interactive way to manage find-and-replace tasks directly from your terminal, making it an essential tool for developers and power users looking for efficiency in their workflow.