https://github.com/zsh-vi-more/vi-quote
A plugin to add a quote/unquote action to Zsh vi mode
https://github.com/zsh-vi-more/vi-quote
vi-keybinds vi-mode zsh-plugin
Last synced: 4 months ago
JSON representation
A plugin to add a quote/unquote action to Zsh vi mode
- Host: GitHub
- URL: https://github.com/zsh-vi-more/vi-quote
- Owner: zsh-vi-more
- License: isc
- Created: 2019-11-18T19:12:45.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2021-01-06T19:02:19.000Z (almost 5 years ago)
- Last Synced: 2024-11-28T07:34:33.464Z (12 months ago)
- Topics: vi-keybinds, vi-mode, zsh-plugin
- Language: Shell
- Size: 5.86 KB
- Stars: 7
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-zsh-plugins - vi-quote - Add an operation which quotes or unquotes a motion. (Plugins / ZSH on Windows)
- fucking-awesome-zsh-plugins - vi-quote - Add an operation which quotes or unquotes a motion. (Plugins / ZSH on Windows)
- awesome-zsh-plugins - vi-quote - Add an operation which quotes or unquotes a motion. (Plugins / Zinit (née zplugin))
README
# vi-quote
[](https://gitter.im/zsh-vi-more/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
[](https://matrix.to/#/#zsh-vi-more_community:gitter.im)
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:**
```zsh
echo 'hello world!' # qq (quote whole line)
'echo '\''hello world!'\' # if setopt norcquotes
'echo ''hello world!''' # if setopt rcquotes
```
```zsh
# CURSOR
# v
sh - <<< some-command $PATH # q$ (quote to end)
sh - <<< 'some-command $PATH'
```
**Unquoting:**
```zsh
'du -sh ''$HOME''' # QQ
du -sh $HOME # if setopt norcquotes
du -sh '$HOME' # if setopt rcquotes
```