An Atom package, to inputs sequential numbers across multiple cursors.
Search in the sequential-number
from Install Packages.
Please restart as necessary After the installation.
ctrl + alt + 0 => Open the input panel !
<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. Or increment alphabetically by "a" or "A" . |
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
# Input
=> a + 2 : 1 : a
# Output
a
c
e
g
i
# Input
=> c + 20 : 3 : a
# Output
aac
aaw
aaq
abk
ace
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'
Bugs, feature requests and comments are more than welcome in the issues