Skip to content

Create sequence of numbers or chars in the across multiple cursors

License

Notifications You must be signed in to change notification settings

bacadra/pulsar-sequence-creator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sequence-creator

Create sequence of numbers or chars in the across multiple cursors.

A project is a fork of sequential-number. List of changes:

  • decaffeinated,
  • replaced event-kit with built-in event class,
  • added repeat selector,
  • cursors are indexed by creation order instead of position,
  • optional flag ! used to use cursor by position,
  • keyboard shortcut changed to Alt-0,
  • SIMULATE_CURSOR_LENGTH changed to config option and increased by default,
  • changed preview font to match editor font,
  • alphabet sequence can be customized,
  • changed algorithm of strings, it's easier to use now, but less powerful.

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 bacadra/pulsar-sequence-creator to install a package directly from the Github repository.

Commands

In atom-text-editor:not([mini]) there are available commands:

  • sequence-creator:open: open 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!

About

Create sequence of numbers or chars in the across multiple cursors

Resources

License

Stars

Watchers

Forks