ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Jimbly's Clipboard History

by Jimbly ST2/ST3

Jimbly's Clipboard History plugin for Sublime Text 2

Details

Installs

  • Total 14K
  • Win 11K
  • OS X 2K
  • Linux 1K
Sep 25 Sep 24 Sep 23 Sep 22 Sep 21 Sep 20 Sep 19 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8 Sep 7 Sep 6 Sep 5 Sep 4 Sep 3 Sep 2 Sep 1 Aug 31 Aug 30 Aug 29 Aug 28 Aug 27 Aug 26 Aug 25 Aug 24 Aug 23 Aug 22 Aug 21 Aug 20 Aug 19 Aug 18 Aug 17 Aug 16 Aug 15 Aug 14 Aug 13 Aug 12 Aug 11
Windows 15 2 6 7 9 13 13 12 15 9 9 6 13 22 10 17 3 6 8 13 20 20 8 10 6 9 8 15 13 10 8 8 15 10 14 20 13 4 3 10 12 14 11 15 7 5
OS X 0 0 1 0 2 5 2 3 1 1 3 1 3 2 3 1 1 3 2 3 1 2 2 0 1 3 3 0 1 1 2 1 2 0 3 1 0 0 1 4 1 3 2 4 2 2
Linux 0 1 2 5 3 2 2 1 1 0 0 2 3 0 3 1 1 1 1 3 2 2 1 0 0 1 2 0 0 1 3 3 1 1 1 3 3 1 1 1 4 0 1 1 2 0

Readme

Source
raw.​githubusercontent.​com

SublimeClipboardHistory

Jimbly's Clipboard History plugin for Sublime Text 2 or 3. A perfect blend of behaviors from Visual Assist's clipboard history and emacs.

Some code derived from sublemacspro.

Features: * Paste from menu of previous clipboard entries ** Compared to the built-in command added in Sublime Text 3, this plugin uses a pop-up menu which respects your Sublime keybinds instead of an OS pop-up menu * Integrates with OS clipboard * Multiple sequential cuts will append to most recent clipboard entry * Full-line copy (when nothing is selected or an entire line is selected) pastes as full lines (similar to default Sublime/Visual Studio behaviors)

Installation

  1. Using Package Control, install “Jimbly's Clipboard Manager”

Or:

  1. Open the Sublime Text Packages folder using Preferences | Browse Packages…
  2. Clone this repo

Usage

By default, this plugin overrides the OS default cut, copy, paste, and shift-paste keys. After copying or cutting, use shift+(paste) to access the clipboard history (e.g. shift+ctrl+v on Windows), and select and previous element to paste it.

If you do not like the auto-assigned default keybinds:

  1. Let me know, I'll seriously consider having them not be part of the package, as I realize they may step on other keybinds.
  2. Manually add the appropriate bindings so your cut/copy/paste keys call jch_cut/jch_copy/jch_paste, and add another key to call jch_paste_choice.
  3. Remove the appropriate .sublime-keymap file from the JimblysClipboardHistory folder (e.g. “Default (Windows).sublime-keymap”).

Command Reference

jch_cut: Performs a cut, appending to the most recent cut if it appears to be from the same location, and populates both the OS clipboard and the clipboard history.

jch_copy: Performs a copy, populating both the OS clipboard and the clipboard history.

jch_paste: Pastes the most recently copied data, either from the clipboar history, or the OS clipboad if it was more recently modified.

jch_paste_choice: Shows a menu displaying the clipboard history allowing for a choice of what to paste.

Feedback and Future Plans

Do you not like some behavior? Are you missing some feature another clipboard history plugin has? Please let me know, it would be easy to extend this with a few settings to adjust subtle behaviors. The current behavior is simply what grew organically from starting with an existing plugin, and any time I pressed one of the 4 relevant hotkeys, if it did not do exactly what I expected (based primarily on my expectations coming from Visual Studio and Visual Assist), I made it do so.