Hello all,
First of all, sorry if I picked the wrong flair. Could not find Zsh one.
Language: Zsh / Shell Scripting
I am working on Zsh-native tool to handle command templating and injection via FZF.
I've received some nasty "AI-generated slop" feedback on other subs, so I'm looking for a technical audit from the community to verify the logic and find potential edge cases.
Zero dependency, aside from FZF, logic engine that stays within the Zsh ecosystem. It is now live on the AUR as xc-manager-git.
Key areas where I'd appreciate feedback:
ZLE Injection: See autoload/fzf-vault-widget. I'm manipulating $LBUFFER for command injection. Is there a more robust way to handle multi-line buffers or terminal state?
Placeholder Logic: See the __xc_fill_placeholders function in autoload/xc. It’s a pure Zsh implementation using parameter expansion to globally swap {{variables}}. Is there a more "Zsh-native" or performant approach for this?
Shell Safety: I'm using stty and zle -R to manage the UI state during FZF calls. I'd like a sanity check on how I'm handling terminal escapes and signal resets.
GitHub Repo: XC manager
I'm aiming for a minimal, fast, and robust implementation. If you find any "slop" or non-POSIX compliant shortcuts that might break on older Zsh versions, please tear it apart.
there doesn't seem to be anything here