SublimeText / InsertNums

Sublime Text plugin for inserting sequences. Supporting alphanumerics and hex, with bitwise operations!
https://james-brooks.uk
MIT License
123 stars 15 forks source link

Generating binary? #14

Closed stephan-nordnes-eriksen closed 10 years ago

stephan-nordnes-eriksen commented 10 years ago

I would love to be able to generate binary string:

example:

b1 1 0:

1
10
11
100
101
110
111

and

b1 1 2:

001
010
011
100
101
110
111
FichteFoll commented 10 years ago

This is already possible in the rewrite in #2 that will be merged soon, though it's not as simple as you propose because the syntax has changed. If you need a pattern more often, however, you can always save it into a key mapping for example and pass it as an argument to the command.

FichteFoll commented 10 years ago

Actually, I'll close this when I merged it.

stephan-nordnes-eriksen commented 10 years ago

Nice!

FichteFoll commented 10 years ago

Added in 2.0.0. (a22af2baa52abe850a3d278deeca184e7b244b29)