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

Insert to Column

by abluescarab ST3

Sublime Text 3 plugin to insert a character up to a certain column

Details

Installs

  • Total 852
  • Win 506
  • Mac 224
  • Linux 122
Jun 3 Jun 2 Jun 1 May 31 May 30 May 29 May 28 May 27 May 26 May 25 May 24 May 23 May 22 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
Windows 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 0 0 0 0 0 0 0 2 1 0 0 0 0 0 0
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 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0
Linux 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 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

Insert to Column

Insert to Column is a simple package that allows you to insert a character (or characters) of your choice up to a certain column on all selected lines.

Installation

The recommended way to install this package is through Package Control, but you can also download this repository or the sublime-package file from the latest release and drop it into your Installed Packages folder.

Command

You can access “Insert to Column” from the command palette or bind a key to the command insert_to_column.

Arguments

The script takes only two arguments: * character_to_insert: optional. A character of your choice to insert. If not supplied, it will ask before continuing. * column_index: optional. The column index to insert to. If not supplied, it will ask before continuing. * Example: if the cursor is at the beginning of a line, a value of 20 will insert 19 characters and place the cursor at column 20

Keybinding

{
    "keys": ["ctrl+alt+c"],
    "command": "insert_to_column",
    "args":
        {
            "character_to_insert": " ",
            "column_index": 20
        }
}