Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kyure-a/zsh-universal-kill-ring
Emacs style kill-ring implementation of zsh that does not depend on external commands
https://github.com/kyure-a/zsh-universal-kill-ring
arboard emacs kill-ring rust-script zsh zsh-plugin
Last synced: 3 months ago
JSON representation
Emacs style kill-ring implementation of zsh that does not depend on external commands
- Host: GitHub
- URL: https://github.com/kyure-a/zsh-universal-kill-ring
- Owner: Kyure-A
- License: gpl-3.0
- Created: 2023-09-11T20:21:46.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-11-22T05:40:12.000Z (about 1 year ago)
- Last Synced: 2023-11-22T06:30:42.099Z (about 1 year ago)
- Topics: arboard, emacs, kill-ring, rust-script, zsh, zsh-plugin
- Language: Rust
- Homepage:
- Size: 72.3 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# zsh-universal-kill-ring
## Dependency
- [rust-script](https://rust-script.org)## Motivation
Some environments do not have pbcopy or xsel (default Ubuntu does). We have created a command to use [**arboard**](https://github.com/1Password/arboard) as a means of using the clipboard without relying on these.## Usage
It can be installed with any zsh plugin manager, or cloned and loaded with source. afterwards, add the following code to your `.zshrc`.```zsh
bindkey '^k' copy-line-as-kill
bindkey '^y' paste-as-yank
bindkey '^[y' paste-as-yank-pop # History fuzzy search is implemented, but does not work well as yank
```### paste-as-yank-pop
![yank-pop](https://github.com/Kyure-A/universal-kill-ring.zsh/assets/49436968/990081e5-9c15-4822-892b-be726a778787)
![fuzzzy searching](https://github.com/Kyure-A/universal-kill-ring.zsh/assets/49436968/9935536f-7cbf-4eb5-8704-acfd07720100)Enjoy an Emacs-like kill-ring experience! (The first time you install this, this is slow because of compile, but after that this is stress-free and fast).
## Environment variable
``` zsh
$UNIKRHIST
```
This environment variable specifies the file that stores the kill-ring history (UNIversal Kill-Ring HISTory).## Todo
- [x] Copy
- [x] Paste
- [ ] Search and paste from history (incomplete)
- [x] History