Paste from clipboard history like emacs' kill-ring
CoffeeScript CSS
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
spec
styles
.gitignore
.travis.yml
CHANGELOG.md
LICENSE.md
README.md
coffeelint.json
package.json

README.md

clip-history Build Status

Paste from clipboard history like emacs' kill-ring

gif

How to use

  1. Paste clipboard entry by clip-history:paste
  2. Continue clip-history:paste until you get entry you want.
  3. (optional) when you get passed the text you wanted to paste, use clip-history:paste-newer.
  4. (optional) you can paste last pasted text with clip-history:paste-last.

Commands

  • clip-history:paste: Paste. Continuous execution without moving cursor pops older entry.
  • clip-history:paste-newer: Paste. Continuous execution without moving cursor pops newer entry.
  • clip-history:paste-last: Paste last pasted text.
  • clip-history:clear: Clear clipboard history.

Keymap

No keymap by default.

e.g.

'atom-text-editor:not([mini])':
  'ctrl-y': 'clip-history:paste'
  'cmd-y': 'clip-history:paste-newer'
  'ctrl-Y': 'clip-history:paste-last'

Modify flash duration

From v0.3.0, flashDurationMilliSeconds config was removed to use better flashing animation by CSS keyframe. Default duration is one second, if you want this shorter, modify your style.less.

atom-text-editor.editor .clip-history-pasted .region {
  // default is 1s, you can tweak in the range from 0 to 1s(maximum).
  animation-duration: 0.5s;
}

Features

  • Paste old clipboard entry.
  • Keep multi-line text layout on past by adjusting leading white-spaces of each line(enabled by default).
  • Flash pasted area.
  • Support multiple cursor(disabled by default).

Similar packages

TODO

  • Configurable flash duration.
  • Multi cursor support
  • Use marker instead of range to track original range in multi cursor situation.
  • Adjust proceeding space to keep layout.
  • Sync system's clipboard update.