{"repo":"dalance/amber","free":true,"listed":false,"github":"https://github.com/dalance/amber","clone":"git clone https://github.com/dalance/amber.git","description":"A code search / replace tool","language":"Rust","stars":952,"topics":["rust","search","replace-text","grep","command-line-tool"],"license":"MIT","category":"cli-tools","readme_excerpt":"amber amber is a code search and replace tool written by Rust. This tool is inspired by ack, ag, and other grep-like tools. Features Useful default settings - Recursively search from the current directory - Ignore VCS directories (.git, .hg, .svn, .bzr) - Ignore binary files - Output by the colored format Multi-threaded searching Large files ( 1MB by default) are divided and searched in parallel. Interactive replacing amber can replace a keyword over directories (traditionally by find ... xargs sed -i '...' ) . You can decide to do replacing or not interactively. Installation Arch Linux Install the amber-search-git package from AUR. Cargo You can install with cargo. Manual Download from release page, and extract to the directory in PATH. Usage Two commands ( ambs / ambr ) are provided. ambs means \"amber search\", and ambr means \"amber replace\". The search keyword is not regular expression by default. If you want to use regular expression, add --regex . amber replace interactively by default. If the keyword is found, the following prompt is shown, and wait. If you input 'y', 'Y', 'Yes', the keyword is replaced. 'a', 'A', 'All' means replacing all keywords non-interactively. If --regex option is enabled, regex captures can be used in replacement of ambr . Configuration Configuration path You can change configuration by writing a configuration file. The locations of the configuration file is OS-specific: Linux: /.config/amber/ambs.toml , /etc/amber/ambs.toml macOS: /Library/Prefe","default_branch":null,"files":null,"tree":[],"storefront":"/r/dalance","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/dalance/amber/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}