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: 9 months 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 (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-08-01T19:15:31.000Z (almost 2 years ago)
- Last Synced: 2025-04-03T14:44:19.448Z (about 1 year ago)
- Topics: ddc-source, ddu-source, denops
- Language: TypeScript
- Homepage:
- Size: 36.1 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)
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',
\ }})
```