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

Trailing Punctuation

by spadgos ST3

Sublime Text plugin which will add and toggle punctuation at the end of a line

Details

Installs

  • Total 3K
  • Win 2K
  • Mac 856
  • Linux 601
Jun 9 Jun 8 Jun 7 Jun 6 Jun 5 Jun 4 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
Windows 1 1 0 1 1 0 0 1 2 0 0 0 0 1 1 0 0 1 0 0 1 1 1 1 0 0 1 2 0 1 1 0 1 2 0 1 0 1 1 0 2 0 0 0 0 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 0 0 0 0 0 0 0 0 0 0 0 0 0 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 0
01234Jun 9Jun 6Jun 3May 31May 28May 25May 22May 19May 16May 13May 10May 7May 4May 1Apr 28Apr 25Jun 9 Linux: 0 Mac: 0 Windows: 1Jun 8 Linux: 0 Mac: 0 Windows: 1Jun 7 Linux: 0 Mac: 0 Windows: 0Jun 6 Linux: 0 Mac: 0 Windows: 1Jun 5 Linux: 0 Mac: 0 Windows: 1Jun 4 Linux: 0 Mac: 0 Windows: 0Jun 3 Linux: 0 Mac: 0 Windows: 0Jun 2 Linux: 0 Mac: 0 Windows: 1Jun 1 Linux: 0 Mac: 0 Windows: 2May 31 Linux: 0 Mac: 0 Windows: 0May 30 Linux: 0 Mac: 0 Windows: 0May 29 Linux: 0 Mac: 0 Windows: 0May 28 Linux: 0 Mac: 0 Windows: 0May 27 Linux: 0 Mac: 0 Windows: 1May 26 Linux: 0 Mac: 0 Windows: 1May 25 Linux: 0 Mac: 0 Windows: 0May 24 Linux: 0 Mac: 0 Windows: 0May 23 Linux: 0 Mac: 0 Windows: 1May 22 Linux: 0 Mac: 0 Windows: 0May 21 Linux: 0 Mac: 0 Windows: 0May 20 Linux: 0 Mac: 0 Windows: 1May 19 Linux: 0 Mac: 0 Windows: 1May 18 Linux: 0 Mac: 0 Windows: 1May 17 Linux: 0 Mac: 0 Windows: 1May 16 Linux: 0 Mac: 0 Windows: 0May 15 Linux: 0 Mac: 0 Windows: 0May 14 Linux: 0 Mac: 0 Windows: 1May 13 Linux: 0 Mac: 0 Windows: 2May 12 Linux: 0 Mac: 0 Windows: 0May 11 Linux: 0 Mac: 0 Windows: 1May 10 Linux: 0 Mac: 0 Windows: 1May 9 Linux: 0 Mac: 0 Windows: 0May 8 Linux: 0 Mac: 0 Windows: 1May 7 Linux: 0 Mac: 0 Windows: 2May 6 Linux: 0 Mac: 0 Windows: 0May 5 Linux: 0 Mac: 0 Windows: 1May 4 Linux: 0 Mac: 0 Windows: 0May 3 Linux: 0 Mac: 0 Windows: 1May 2 Linux: 0 Mac: 0 Windows: 1May 1 Linux: 0 Mac: 0 Windows: 0Apr 30 Linux: 0 Mac: 0 Windows: 2Apr 29 Linux: 0 Mac: 0 Windows: 0Apr 28 Linux: 0 Mac: 0 Windows: 0Apr 27 Linux: 0 Mac: 0 Windows: 0Apr 26 Linux: 0 Mac: 0 Windows: 0Apr 25 Linux: 0 Mac: 0 Windows: 1Jun 9 Linux: 0 Mac: 0 Windows: 1Jun 8 Linux: 0 Mac: 0 Windows: 1Jun 7 Linux: 0 Mac: 0 Windows: 0Jun 6 Linux: 0 Mac: 0 Windows: 1Jun 5 Linux: 0 Mac: 0 Windows: 1Jun 4 Linux: 0 Mac: 0 Windows: 0Jun 3 Linux: 0 Mac: 0 Windows: 0Jun 2 Linux: 0 Mac: 0 Windows: 1Jun 1 Linux: 0 Mac: 0 Windows: 2May 31 Linux: 0 Mac: 0 Windows: 0May 30 Linux: 0 Mac: 0 Windows: 0May 29 Linux: 0 Mac: 0 Windows: 0May 28 Linux: 0 Mac: 0 Windows: 0May 27 Linux: 0 Mac: 0 Windows: 1May 26 Linux: 0 Mac: 0 Windows: 1May 25 Linux: 0 Mac: 0 Windows: 0May 24 Linux: 0 Mac: 0 Windows: 0May 23 Linux: 0 Mac: 0 Windows: 1May 22 Linux: 0 Mac: 0 Windows: 0May 21 Linux: 0 Mac: 0 Windows: 0May 20 Linux: 0 Mac: 0 Windows: 1May 19 Linux: 0 Mac: 0 Windows: 1May 18 Linux: 0 Mac: 0 Windows: 1May 17 Linux: 0 Mac: 0 Windows: 1May 16 Linux: 0 Mac: 0 Windows: 0May 15 Linux: 0 Mac: 0 Windows: 0May 14 Linux: 0 Mac: 0 Windows: 1May 13 Linux: 0 Mac: 0 Windows: 2May 12 Linux: 0 Mac: 0 Windows: 0May 11 Linux: 0 Mac: 0 Windows: 1May 10 Linux: 0 Mac: 0 Windows: 1May 9 Linux: 0 Mac: 0 Windows: 0May 8 Linux: 0 Mac: 0 Windows: 1May 7 Linux: 0 Mac: 0 Windows: 2May 6 Linux: 0 Mac: 0 Windows: 0May 5 Linux: 0 Mac: 0 Windows: 1May 4 Linux: 0 Mac: 0 Windows: 0May 3 Linux: 0 Mac: 0 Windows: 1May 2 Linux: 0 Mac: 0 Windows: 1May 1 Linux: 0 Mac: 0 Windows: 0Apr 30 Linux: 0 Mac: 0 Windows: 2Apr 29 Linux: 0 Mac: 0 Windows: 0Apr 28 Linux: 0 Mac: 0 Windows: 0Apr 27 Linux: 0 Mac: 0 Windows: 0Apr 26 Linux: 0 Mac: 0 Windows: 0Apr 25 Linux: 0 Mac: 0 Windows: 1Jun 9 Linux: 0 Mac: 0 Windows: 1Jun 8 Linux: 0 Mac: 0 Windows: 1Jun 7 Linux: 0 Mac: 0 Windows: 0Jun 6 Linux: 0 Mac: 0 Windows: 1Jun 5 Linux: 0 Mac: 0 Windows: 1Jun 4 Linux: 0 Mac: 0 Windows: 0Jun 3 Linux: 0 Mac: 0 Windows: 0Jun 2 Linux: 0 Mac: 0 Windows: 1Jun 1 Linux: 0 Mac: 0 Windows: 2May 31 Linux: 0 Mac: 0 Windows: 0May 30 Linux: 0 Mac: 0 Windows: 0May 29 Linux: 0 Mac: 0 Windows: 0May 28 Linux: 0 Mac: 0 Windows: 0May 27 Linux: 0 Mac: 0 Windows: 1May 26 Linux: 0 Mac: 0 Windows: 1May 25 Linux: 0 Mac: 0 Windows: 0May 24 Linux: 0 Mac: 0 Windows: 0May 23 Linux: 0 Mac: 0 Windows: 1May 22 Linux: 0 Mac: 0 Windows: 0May 21 Linux: 0 Mac: 0 Windows: 0May 20 Linux: 0 Mac: 0 Windows: 1May 19 Linux: 0 Mac: 0 Windows: 1May 18 Linux: 0 Mac: 0 Windows: 1May 17 Linux: 0 Mac: 0 Windows: 1May 16 Linux: 0 Mac: 0 Windows: 0May 15 Linux: 0 Mac: 0 Windows: 0May 14 Linux: 0 Mac: 0 Windows: 1May 13 Linux: 0 Mac: 0 Windows: 2May 12 Linux: 0 Mac: 0 Windows: 0May 11 Linux: 0 Mac: 0 Windows: 1May 10 Linux: 0 Mac: 0 Windows: 1May 9 Linux: 0 Mac: 0 Windows: 0May 8 Linux: 0 Mac: 0 Windows: 1May 7 Linux: 0 Mac: 0 Windows: 2May 6 Linux: 0 Mac: 0 Windows: 0May 5 Linux: 0 Mac: 0 Windows: 1May 4 Linux: 0 Mac: 0 Windows: 0May 3 Linux: 0 Mac: 0 Windows: 1May 2 Linux: 0 Mac: 0 Windows: 1May 1 Linux: 0 Mac: 0 Windows: 0Apr 30 Linux: 0 Mac: 0 Windows: 2Apr 29 Linux: 0 Mac: 0 Windows: 0Apr 28 Linux: 0 Mac: 0 Windows: 0Apr 27 Linux: 0 Mac: 0 Windows: 0Apr 26 Linux: 0 Mac: 0 Windows: 0Apr 25 Linux: 0 Mac: 0 Windows: 1

Readme

Source
raw.​githubusercontent.​com

Trailing Punctuation

This is a Sublime Text 3 plugin which will add or toggle punctuation at the end of a line.

Installation

Use Package Control, search for “Trailing Punctuation”.

Usage

This adds two keyboard shortcuts: Alt+, and Alt+;. Respectively, these will add a comma and a semicolon at the end of the current line (or lines, in the case of multiple selections or a multiple-line selection).

If the line already ends with the character, it is removed (toggled).

If the line ends with the other character, it is replaced (comma becomes semicolon, semicolon becomes comma).

For example, assume the cursor is on this line and you press Alt+,. Each line shows the behaviour of pressing the shortcut key again.

var foo = 1;
var foo = 1,
var foo = 1
var foo = 1,

First, the semicolon is replaced with a comma. The second time, it removes the comma. The third time, it inserts a trailing comma.

In all cases, the current cursor position and selection is unchanged.

It is even smart enough to ignore comments and whitespace at the end of lines. (· represents whitespace below)

var·whyDoPeople····
var·notUseSemicolons·//·???···

// select all, press `Alt+;`

var·whyDoPeople;····
var·notUseSemicolons;·//·???···

On lines which are empty, or only contain whitespace or comments, no characters are inserted.