An Atom package, to inputs sequential numbers across multiple cursors.
CoffeeScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
keymaps
lib
menus
spec
.gitignore
.travis.yml
CHANGELOG.md
LICENSE.md
README.md
package.json

README.md

sequential-number

Build Status License

An Atom package, to inputs sequential numbers across multiple cursors.

screenshot

INSTALLATION

Search in the sequential-number from Install Packages.
Please restart as necessary After the installation.

USAGE

Keymaps (Linux, Win, OS X)

ctrl + alt + 0 => Open the input panel !

Syntax Rules

<start> <operator> <step> : <digit> : <radix>
Key Default Definition
start "" It specifies the number that you start typing an integer.
operator (optinal) + It specifies the generation rules of consecutive numbers in the + or -. The sign of the increment(++) and decrement(--) also available.
step (optinal) 1 It specifies the integer to be added or subtracted.
digit (optinal) 0 It specifies of the number of digits in the integer.
radix (optinal) 10 It specifies an integer between 2 and 36 that represents radix.

Examples

The following sample the cursor length is 5.

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

# Output
1
2
3
4
5
# Input
=> 10 + 2

# Output
10
12
14
16
18
# Input
=> 0027 + 3

# Output
0027
0030
0033
0036
0039
# Input
=> 010 - 1
=> 010--

# Output
010
009
008
007
006
# Input
=> -10 + 1 : 2

# Output
-10
-09
-08
-07
-06
# Input
=> 0ff + 14 : 3 : 16

# Output
0ff
10d
11b
129
137
# Input
=> 0AB239 + 2 : 6 : 16

# Output
0AB239
0AB23B
0AB23D
0AB23F
0AB241

CUSTOMIZING KEYMAP

May be overriden for your favorite keystroke in your keymap.cson.

# Open input panel
'atom-text-editor':
  'ctrl-alt-0': 'sequential-number:open'

# Close input panel
'.sequential-number atom-text-editor':
  'escape': 'sequential-number:close'
  'ctrl-c': 'sequential-number:close'

AUTHOR

tsuyoshiwada


Bugs, feature requests and comments are more than welcome in the issues