-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
57f4281
commit db256d9
Showing
8 changed files
with
42 additions
and
22 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,15 @@ | ||
[package] | ||
name = "scout" | ||
name = "scooter" | ||
version = "0.1.0" | ||
edition = "2021" | ||
authors = ["[email protected]"] | ||
license = "MIT" | ||
description = "Interactive find and replace in the terminal" | ||
readme = "README.md" | ||
homepage = "https://github.com/thomasschafer/scooter" | ||
repository = "https://github.com/thomasschafer/scooter" | ||
keywords = ["cli", "find", "search", "replace"] | ||
categories = ["command-line-utilities"] | ||
|
||
[dependencies] | ||
anyhow = "1.0.86" | ||
|
@@ -24,5 +32,5 @@ tokio = { version = "1.40.0", features = ["full"] } | |
tempfile = "3.12.0" | ||
|
||
[lib] | ||
name = "scout" | ||
name = "scooter" | ||
path = "src/lib.rs" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,31 @@ | ||
# scout | ||
# scooter | ||
|
||
Scout is an interactive find-and-replace terminal UI app. | ||
Scooter is an interactive find-and-replace terminal UI app. | ||
|
||
Search with either a fixed string or a regular expression, enter a replacement, and interactively toggle which instances you want to replace. You can also specify a regex pattern for the file paths you want to search. | ||
|
||
If the instance you're attempting to replace has changed since the search was performed, e.g. if you've switched branches and that line no longer exists, that particular replacement won't occur: you'll see all such cases at the end. | ||
|
||
![Scout preview](media/preview.gif) | ||
![Scooter preview](media/preview.gif) | ||
|
||
## Installation | ||
|
||
Install with | ||
### Cargo | ||
|
||
Ensure you have cargo installed (see [here](https://doc.rust-lang.org/cargo/getting-started/installation.html)), and then run | ||
|
||
```sh | ||
cargo install scooter | ||
``` | ||
|
||
### Building from source | ||
|
||
Ensure you have cargo installed (see [here](https://doc.rust-lang.org/cargo/getting-started/installation.html)), then pull down the repo and run | ||
|
||
```sh | ||
cargo install --path . | ||
``` | ||
|
||
then run `scout` from the directory you want to search in. | ||
## Usage | ||
|
||
Run `scooter` in a terminal to launch Scooter. You can then enter some text to search with and text to replace matches with, toggle on or off fixed strings, and enter a regex pattern that filenames must match. A more extensive set of keymappings will be shown at the bottom of the window: these vary slightly depending on the screen you're on. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters