项目作者: zsh-vi-more

项目描述 :
A plugin to add a quote/unquote action to Zsh vi mode
高级语言: Shell
项目地址: git://github.com/zsh-vi-more/vi-quote.git
创建时间: 2019-11-18T19:12:45Z
项目社区:https://github.com/zsh-vi-more/vi-quote

开源协议:ISC License

下载


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:

  1. echo 'hello world!' # qq (quote whole line)
  2. 'echo '\''hello world!'\' # if setopt norcquotes
  3. 'echo ''hello world!''' # if setopt rcquotes
  1. # CURSOR
  2. # v
  3. sh - <<< some-command $PATH # q$ (quote to end)
  4. sh - <<< 'some-command $PATH'

Unquoting:

  1. 'du -sh ''$HOME''' # QQ
  2. du -sh $HOME # if setopt norcquotes
  3. du -sh '$HOME' # if setopt rcquotes