← 返回命令列表

Linux command

scooter 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Launch interactive find-and-replace in the current directory

scooter

Search in a specific directory

scooter [path/to/directory]

Pre-populate search and replace fields and start searching immediately

scooter --search-text "[old]" --replace-text "[new]" --immediate-search

Search using literal strings instead of regex

scooter --fixed-strings

Include hidden files in the search

scooter --hidden

Search only specific file types

scooter --files-to-include "[*.py,*.js]"

说明

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.

参数

-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.

FAQ

What is the scooter command used for?

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.

How do I run a basic scooter example?

Run `scooter` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -a, --advanced-regex do in scooter?

Enable full regex features (slower).