Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/milly/dps-yank-history
Vim denops plugin for persist yank history.
https://github.com/milly/dps-yank-history
ddc-source ddu-source denops
Last synced: 10 days ago
JSON representation
Vim denops plugin for persist yank history.
- Host: GitHub
- URL: https://github.com/milly/dps-yank-history
- Owner: Milly
- License: mit
- Created: 2022-12-03T07:59:38.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-04-10T09:25:39.000Z (7 months ago)
- Last Synced: 2024-07-20T02:43:05.351Z (4 months ago)
- Topics: ddc-source, ddu-source, denops
- Language: TypeScript
- Homepage:
- Size: 31.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dps-yank-history
[![license:MIT](https://img.shields.io/github/license/Milly/dps-yank-history?style=flat-square)](LICENSE)
Vim denops plugin for persistent yank history.
## Required
- [denops.vim](https://github.com/vim-denops/denops.vim)
You will need one of the following to manipulate your history:
- [ddu.vim](https://github.com/Shougo/ddu.vim)
- Display list of yank history.
- Select and insert text from yank history.
- Select and delete elements from yank history.
- [ddc.vim](https://github.com/Shougo/ddc.vim)
- Insert matching text from yank history in insert mode.## Configuration
```vim
" Setup dps-yank-history
let yank_history#persist_path = expand('~/.cache/yank-history.jsonl')
let yank_history#min_length = 2
let yank_history#update_duration = 1000
let yank_history#mtime_margin = 200
let yank_history#max_items = 100
let yank_history#truncate_threshold = 0" Setup ddu.vim
call ddu#custom#patch_global('sources', [
\ {'name': 'yank-history'},
\ ])
call ddu#custom#patch_global('sourceParams', #{
\ yank-history: #{
\ headerHlGroup: 'Special',
\ prefix: 'Hist:',
\ }})" Setup ddc.vim
call ddc#custom#patch_global('sources', [
\ 'yank-history',
\])
call ddc#custom#patch_global('sourceParams', #{
\ yank-history: #{
\ maxAbbrWidth: 100,
\ ctrlCharHlGroup: 'SpecialKey',
\ }})
```