Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/milly/windows-clipboard-history.vim
Windows clipboard history source plugin for ddc.vim and ddu.vim
https://github.com/milly/windows-clipboard-history.vim
clipboard ddc-source ddc-vim ddu-source ddu-vim denops vim windows
Last synced: 10 days ago
JSON representation
Windows clipboard history source plugin for ddc.vim and ddu.vim
- Host: GitHub
- URL: https://github.com/milly/windows-clipboard-history.vim
- Owner: Milly
- License: mit
- Created: 2022-11-18T09:02:25.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-07-31T22:05:35.000Z (3 months ago)
- Last Synced: 2024-08-01T02:00:05.620Z (3 months ago)
- Topics: clipboard, ddc-source, ddc-vim, ddu-source, ddu-vim, denops, vim, windows
- Language: TypeScript
- Homepage:
- Size: 46.9 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# windows-clipboard-history.vim
[![license:MIT](https://img.shields.io/github/license/Milly/windows-clipboard-history.vim?style=flat-square)](LICENSE)
[![Vim doc](https://img.shields.io/badge/doc-%3Ah%20windows--clipboard--history-orange?style=flat-square&logo=vim)](doc/windows-clipboard-history.txt)Windows clipboard history source plugin for ddc.vim and ddu.vim.
- Supports pasting of multiple lines.
- ddc: Supports pasting in command line mode.
- ddc: Supports control code highlighting. (Requires highlight capable UI)## Required
- Windows 10 Version 1809 (October 2018 Update)
- PowerShell 5.0 (Pre-installed)
- [denops.vim](https://github.com/vim-denops/denops.vim)
- Either or both of the following:
- [ddc.vim](https://github.com/Shougo/ddc.vim)
- [ddu.vim](https://github.com/Shougo/ddu.vim)## Windows Settings
### Enable Clipboard History
#### (Option 1) Use Setting GUI
1. Open the Start menu and click settings gear (⚙).
2. Select the System tab to proceed.
3. Scroll down on the left pane to select the Clipboard tab in the System menu.
4. Turn on the switch of the Clipboard history.#### (Option 2) Use Command Line
1. Start **Powershell** as an administrator.
2. Run the following command:```powershell
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Clipboard" -Name "EnableClipboardHistory" -Value 1
```## Configuration
```vim
" ddc.vim
call ddc#custom#patch_global('sources', ['windows-clipboard-history'])
call ddc#custom#patch_global('sourceOptions', #{
\ windows-clipboard-history: #{
\ mark: 'Clip',
\ }})
call ddc#custom#patch_global('sourceParms', #{
\ windows-clipboard-history: #{
\ maxAbbrWidth: 100,
\ }})" ddu.vim
call ddu#custom#patch_global('sources', [#{
\ name: 'windows-clipboard-history',
\ params: #{prefix: 'Clip:'},
\}])
```