zsh-ssh
zsh-ssh copied to clipboard
--no-separator stops plugin from functioning
Hello there, very nice plugins, but frustrated me for a while, because it wasn't working if flag --no-separator was set in the code of plugin.
Spec:
- zsh v.5.8.1
- antigen pm
- ubuntu 22.04 wsl
- fzf 0.29 (devel)
Problematic code:
result=$(_fzf_list_generator $result | fzf \
--height 40% \
--ansi \
--border \
--cycle \
--info=inline \
--header-lines=2 \
--reverse \
--prompt='SSH Remote > ' \
--query=$fuzzy_input \
--no-separator \
--bind 'shift-tab:up,tab:down,bspace:backward-delete-char/eof' \
--preview 'ssh -T -G $(cut -f 1 -d " " <<< {}) | grep -i -E "^User |^HostName |^Port |^ControlMaster |^ForwardAgent |^LocalForward |^IdentityFile |^RemoteForward |^ProxyCommand |^ProxyJump " | column -t' \
--preview-window=right:40%
)
Fix:
Delete --no-separator flag from the command, line 223 in zsh-ssh.zsh or alternatively - use static binary of fzf.