LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

scooter

Interactive find-and-replace in the terminal

TLDR

Launch interactive find-and-replace in the current directory
$ scooter
copy
Search in a specific directory
$ scooter [path/to/directory]
copy
Pre-populate search and replace fields and start searching immediately
$ scooter --search-text "[old]" --replace-text "[new]" --immediate-search
copy
Search using literal strings instead of regex
$ scooter --fixed-strings
copy
Include hidden files in the search
$ scooter --hidden
copy
Search only specific file types
$ scooter --files-to-include "[*.py,*.js]"
copy

SYNOPSIS

scooter [options] [path]

DESCRIPTION

scooter recursively searches through files in a directory and lets you interactively toggle which matches to replace. It supports fixed strings and regex with capture groups, respects .gitignore and .ignore files, and provides syntax highlighting with customizable themes.

PARAMETERS

-a, --advanced-regex

Enable full regex features (slower).
-U, --multiline
Enable multiline search.
-N, --no-tui
Non-interactive mode.
--search-text TEXT
Pre-populate the search field.
--replace-text TEXT
Pre-populate the replacement field.
--fixed-strings
Use literal string matching instead of regex.
--hidden
Include hidden files in search.
--files-to-include GLOB
Comma-separated glob patterns to include.
--files-to-exclude GLOB
Comma-separated glob patterns to exclude.
--immediate-search
Start searching immediately when combined with --search-text.

HISTORY

scooter was created by Thomas Schafer (thomasschafer) and is written in Rust.

SEE ALSO

sed(1), serpl(1), ripgrep(1)

Copied to clipboard
Kai