sequence-creator
Create sequence of numbers or chars in the across multiple cursors
asiloisad 12 0 1.0.4 MIT GitHub
  • Made for Pulsar!

    This package was written specifically for Pulsar and did not exist in the Atom package repository.

sequence-creator

Generate sequences of numbers or characters across multiple cursors.

Fork of sequential-number.

Features

  • Number sequences: Generate incrementing/decrementing numbers.
  • Character sequences: Generate alphabetic sequences (a, b, c...).
  • Custom step: Configure increment step and radix.
  • Padding support: Zero-pad or custom-pad output.
  • Repeat option: Repeat each value multiple times.

Installation

To install sequence-creator search for sequence-creator in the Install pane of the Pulsar settings or run ppm install sequence-creator. Alternatively, you can run ppm install asiloisad/pulsar-sequence-creator to install a package directly from the GitHub repository.

Commands

Commands available in atom-text-editor:not([mini]):

  • sequence-creator:open: (Alt+0) open creator window.

Commands available in .sequence-creator:

  • sequence-creator:done: (Enter) apply sequence,
  • sequence-creator:close: (Escape) close creator window.

Syntax rules

<start><operator><step><#radix><:padding><^repeat><flags>
Key Default Definition
start mandatory item that you start typing, e.g. 1, -1, +1, 21, a, ac, aC
operator + operation to calculate next step value: + or -
step 1 integer to be added or subtracted, e.g. 2, -2, +2
radix 10 The integer between 2 and 36 that represents radix
padding empty The padding command, e.g. <2, <2, 0<2, a<2
repeat 1 An index repeat count as positive integer
flags empty A mix of letters:
! reorder cursors by position
@ print plus sign if positive

Examples

The following sample the cursor length is 5.

Input
  => 1
  => 1+
  => 1+1

Output:
  => 1, 2, 3, 4, 5

Input
  => 1^2
  => 1+^2
  => 1+1^2

Output:
  1, 1, 2, 2, 3

Input
  => 10+2

Output:
  10, 12, 14, 16, 18

Input
  => 0027+3
  => 27+3:>4
  => 27+3:0>4

Output:
  0027, 0030, 0033, 0036, 0039

Input
  => a+2

Output:
  a, c, e, g, i

Input
  => c+20

Output:
  c, w, aq, bk, ce

Input
  => c+20:a>3

Output:
  aac, aaw, aaq, abk, ace

Contributing

Got ideas to make this package better, found a bug, or want to help add new features? Just drop your thoughts on GitHub — any feedback's welcome!