Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 2 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 (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-01-06T19:02:19.000Z (over 3 years ago)
- Last Synced: 2024-04-16T13:56:42.267Z (6 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
README
# vi-quote
[![Gitter](https://badges.gitter.im/zsh-vi-more/community.svg)](https://gitter.im/zsh-vi-more/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
[![Matrix](https://img.shields.io/matrix/zsh-vi-more_community:gitter.im)](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
```