>_ZSH-SED-SUB
Rewrite the current command line in place. Two ZLE keybindings that do a global search-and-replace on the current buffer. Try it out with Ctrl-F Ctrl-P.
Install
# Zinit
zinit ice lucid nocompile
zinit load MenkeTechnologies/zsh-sed-sub
# Oh My Zsh
git clone https://github.com/MenkeTechnologies/zsh-sed-sub \
"$HOME/.oh-my-zsh/custom/plugins/zsh-sed-sub"
# then: plugins+=(zsh-sed-sub)
# Manual
git clone https://github.com/MenkeTechnologies/zsh-sed-sub
source zsh-sed-sub/zsh-sed-sub.plugin.zsh
Key bindings
Ctrl-F Ctrl-P | global sed-style substitution on the current buffer — prompts for pattern and replacement, rewrites BUFFER in place |
Sibling plugins
Part of the MenkeTechnologies zsh plugin family — the MenkeTechnologiesMeta umbrella:
- zsh-better-npm-completion — cache-aware
npm installcompletion - zsh-cargo-completion — live
cargo add/cargo installcompletion - zsh-cpan-completion — live MetaCPAN
cpan/cpanmcompletion - zsh-dotnet-completion — dotnet CLI completion
- zsh-expand — spacebar expansion (11,683 tests)
- zsh-gem-completion — ruby
gem installremote completion - zsh-git-acp — 159 git aliases + add/commit/push keybindings
- zsh-git-repo-cache — index every git repo on disk
- zsh-learn — MySQL-backed learning collection / quiz
- zsh-more-completions — 33,175-file mega completion corpus
- zsh-nginx — nginx commands + service-wrapper aliases
- zsh-pip-description-completion — pip remote completion with descriptions
- zsh-sudo — ESC ESC to prepend sudo
- zsh-xcode-completions — xcodebuild / xcrun / swift completion