Skip to content

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

License

Notifications You must be signed in to change notification settings

zsh-vi-more/vi-quote

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages