LinuxCommandLibrary

scooter

Interactive find-and-replace in the terminal

TLDR

Launch interactive search in the current directory
$ scooter
copy
Search in a specific directory
$ scooter [../foo/bar]
copy
Process text from stdin
$ echo "hello world" | scooter
copy
Pre-populate search and replace fields
$ scooter --search-text "[old]" --replace-text "[new]" --immediate-search
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.

HISTORY

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

SEE ALSO

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

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard