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

Sublime​Enhanced​Utilities​Set

by shagabutdinov ST2/ST3

Minor utilities for building snippets and plugins

Details

Installs

  • Total 24K
  • Win 15K
  • OS X 5K
  • Linux 4K
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 Sep 8 Sep 7
Windows 2 2 8 9 14 13 10 9 12 4 7 4 8 11 6 6 11 5 15 8 8 4 7 8 13 6 9 7 9 6 9 23 15 23 15 19 22 29 31 18 21 9 8 12 13 16
OS X 3 1 4 4 3 4 2 0 1 7 3 2 1 2 3 3 3 2 4 4 6 4 1 3 5 1 3 5 1 3 2 4 6 6 4 3 2 14 5 5 5 5 1 1 4 5
Linux 1 1 4 2 4 4 3 2 2 3 3 1 1 6 2 3 2 2 0 3 2 1 4 3 1 4 1 3 2 2 3 3 3 5 7 3 3 10 5 8 5 3 6 2 7 5

Readme

Source
raw.​githubusercontent.​com

Sublime Utilities plugin

Minor utilities for building snippets and plugins.

Installation

This plugin is part of sublime-enhanced plugin set. You can install sublime-enhanced and this plugin will be installed automatically.

If you would like to install this package separately check “Installing packages separately” section of sublime-enhanced package.

Features

  • “replace_region” - replace given region with given text; arguments: region ([start, end]) - region to replace, text (string) - string to put to region.

  • “replace_text_by_regexp” - replace text from start of line to begin of selection by given regexp; arguments: regexp (string) - expression to hit, replacement (string) - string to put instead of matched (backreferences \1 are supported); if no regexp matches no replacemenet will be made.

  • “insert_text” - insert text to given point; arguments: point (int), text (string)

  • “delete_selection” - delete selected region; arguments: none

Usage

Run commands listed above from keyboard shortcut, macro-file, snippet or other plugin.

Example keymap:

{
    "keys": ["ctrl+f5"],
    "command": "insert_text",
    "args": {
      "point": 0,
      "text": "<?php"
    }
  }