A plugin to add a quote/unquote action to Zsh vi mode
This plugin adds an operation which quotes or unquotes a motion.
vi-change
,.
dot-operator works correctly.rcquote
Quoting:
echo 'hello world!' # qq (quote whole line)
'echo '\''hello world!'\' # if setopt norcquotes
'echo ''hello world!''' # if setopt rcquotes
# CURSOR
# v
sh - <<< some-command $PATH # q$ (quote to end)
sh - <<< 'some-command $PATH'
Unquoting:
'du -sh ''$HOME''' # QQ
du -sh $HOME # if setopt norcquotes
du -sh '$HOME' # if setopt rcquotes