Coder Social home page Coder Social logo

milly / windows-clipboard-history.vim Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 0.0 40 KB

Windows clipboard history source plugin for ddc.vim and ddu.vim

License: MIT License

TypeScript 86.19% PowerShell 13.81%
ddc-vim ddu-vim denops clipboard ddc-source ddu-source vim windows

windows-clipboard-history.vim's Introduction

windows-clipboard-history.vim

license:MIT Vim doc

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
  • Either or both of the following:

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:
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Clipboard" -Name "EnableClipboardHistory" -Value 1

Configuration

" 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:'},
      \}])

windows-clipboard-history.vim's People

Contributors

milly avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.