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

Paste as Column

by Clams ST3

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

Details

  • 2019.05.17.11.37.41
  • bitbucket.​org
  • 4 days ago
  • 3 hours ago
  • 7 years ago

Installs

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

Readme

Source
bitbucket.​org

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"
}