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

Paste As Column

by TheClams ST3

Plugin for SublimeText to allow paste as column (cf. rectangle mode paste in emacs)

Details

Installs

  • Total 5K
  • Win 3K
  • Mac 1K
  • Linux 891
Oct 24 Oct 23 Oct 22 Oct 21 Oct 20 Oct 19 Oct 18 Oct 17 Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8 Oct 7 Oct 6 Oct 5 Oct 4 Oct 3 Oct 2 Oct 1 Sep 30 Sep 29 Sep 28 Sep 27 Sep 26 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
Windows 0 1 0 0 0 1 0 0 1 0 1 0 0 0 0 1 0 0 0 0 0 0 1 0 1 0 0 0 0 1 0 0 1 0 0 0 0 1 0 0 0 0 0 0 1 1
Mac 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1
Linux 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

Paste as Column Package

Description

Paste clipboard content in block mode at selection start or mouse click position.

Two mode are possible (arguments “mode”): - insert : the block of text is inserted - overwrite : the block of text will erase any existing character

No key map or mouse map are provided by default, (to avoid conflict with user configuration) so the users need to specify key-binding /mouse-map to use this plugin. A new option “paste in column” is available in the contextual menu (right click).

When using the click position to insert the block, the plugin need to switch to a virtual space mode: by default it support 200 more characters, but this can be change by setting the max_space argument to another value.

Key-map example

To map keys to call the pase as column , simply add the following to your user .sublime-keymap file:

{
    "keys": ["ctrl+alt+v"],
    "command": "paste_column",
    "args": {"mode": "insert"}
},
{
    "keys": ["ctrl+alt+shift+v"],
    "command": "paste_column",
    "args": {"mode": "overwrite"}
}

Mouse-map example

To map the plugin to a mouse click, edit (or create) the Default.sublime-keymap file in your user directory:

{
    "button": "button2", "modifiers": ["alt"],
    "press_command": "paste_column"
}