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

Random Everything

by kimpettersen ST2/ST3

Plugin for sublime text to generate random, ints, floats, strings and words

Details

  • 2016.08.20.12.39.13
  • github.​com
  • github.​com
  • 10 months ago
  • 11 minutes ago
  • 4 years ago

Installs

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

Readme

Source
raw.​githubusercontent.​com

random-sublime-text-plugin

Plugin for sublime text to generate random, ints, floats, strings and words.

It works in Sublime Text 2 and ST3

Example

Example

Usage

This plugin can only be accessed through the Cmd/Ctrl+Shift+P command.

Type random and you get the following choices:

  • Random:Int - requires a range from a-b separated with a: -. Default: 1-100
  • Random:Float - requires a range from a-b separated with a: -. Default: 1-100
  • Random:Letters - generatates a random string of lower and upper -case letters with a length between 3 and 17
  • Random:Letters and numbers - generatates a random string of lower and upper -case letters and numbers with a length between 3 and 17
  • Random:Country - picks a random country
  • Random:Word - picks a random word from /usr/share/dict/words
  • Random:Text - picks 24 random words from /usr/share/dict/words
  • Random:Date - picks a random ISO-8601 Date
  • Random:First name - picks a random first name from the built-in datafile
  • Random:Last name - picks a random last name from the built-in datafile
  • Random:Full name - picks a random full name from the built-in datafiles
  • Random:E-mail - picks a random E-mail address
  • Random:Url - generates a URL using random words from /usr/share/dict/words
  • Random:Hex Color - generates a random hex color formatted “#abc123”
  • Random:IPv4 Address - generates a random ipv4 ip address
  • Random:IPV6 Address - generates a random ivp6 ip address

Overridable Settings

Random: E-Mail

  • random_email_top_level_domain_override - Allows overriding available email TLDs e.g. ["com","org"]. Defaults are ["com", "net", "co.uk", "org", "edu"]
  • random_email_main_domain_override - Allows overriding of available email main domains e.g. ["gmail","yahoo", "hotmail"]. If not specified, a random string will be used.

  • max_year and min_year defines a date range

Complete Settings Example

{
    "random_email_top_level_domain_override": ["com", "net", "co.uk", "org", "edu"],
    "max_year": 2000,
    "min_year": 1999
}