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 917
  • Win 538
  • Mac 249
  • Linux 130
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 Aug 10 Aug 9 Aug 8 Aug 7 Aug 6 Aug 5
Windows 0 2 0 1 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
Mac 0 0 0 0 0 0 0 0 1 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 0 0 0 0 0 2 0 1 1 1
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
        }
}