Skip to content

t9md/atom-clip-history

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.