{"repo":"ms-jpq/sad","free":true,"listed":false,"github":"https://github.com/ms-jpq/sad","clone":"git clone https://github.com/ms-jpq/sad.git","description":"CLI search and replace | Space Age seD","language":"Rust","stars":2045,"topics":["rust","diff","sed","command-line","cli","editing","fzf","tui","terminal"],"license":"MIT","category":"cli-tools","readme_excerpt":"SAD! Space Age seD What does it do? Basically sad is a Batch File Edit tool. It will show you a really nice diff of proposed changes before you commit them. Unlike sed , you can double check before you fat finger your edit. Preview (with fzf) Selectively replace std - joseph joestar in the sad repo. You can pick and choose which changes to apply. You can also choose the clustering factor for changes using --unified= . (Same as in GNU diff) If you have delta installed, try --pager 'delta -s' for side by side view Preview (no fzf) Replace all '\"(\\d+)\"' - '🌈$1🌈' in the chromium repo. use --commit or -k to commit changes all at once. -c is taken because sad has to trick fzf into thinking it's bash :) How to use sad? with fzf Note: --multi is passed to fzf so you can select multiple files with Shift+tab without fzf or or gotta go fast If you wanna go fast. - preview to verify you really want the changes. - run with --commit , and redirect stdout to a file or /dev/null --- Requirements Technically none of these are \"required\", but they make sad so much happier. If you install the things below, sad will automatically use them. It's progressive enhancement! Commandline fuzzer fzf sad does not come with a UI, it uses fzf to perform selection. Diff Colorizer Any git compatible colourizer would work. I prefer these two: delta fd sad delta diff-so-fancy fd sad diff-so-fancy less Environmental Variables Name Function ----------- -------------------------------------- GIT PAGER sad will ","default_branch":null,"files":null,"tree":[],"storefront":"/r/ms-jpq","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ms-jpq/sad/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."}