zsh-vi-more / vi-quote

A plugin to add a quote/unquote action to Zsh vi mode

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vi-quote

Gitter Matrix

This plugin adds an operation which quotes or unquotes a motion.

Features:

  • Registers itself as a vi-change, so the . dot-operator works correctly.
  • Honors the user's settings for rcquote

Usage:

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

About

A plugin to add a quote/unquote action to Zsh vi mode

License:ISC License


Languages

Language:Shell 100.0%