0

As you can see in the screenshot below, I want to change all the 1's in the red box into a sequence from 1 to 1000

https://i.stack.imgur.com/3JYvL.png

I done some searching and ended up with two plugins for sublime text that make sequences but still can't make use of them in this situation the plugins are "Incrementor" and "Text Pastry" I installed both using package control but they don't seem to work properly (or maybe I'm doing t wrong)

Giacomo1968
  • 25,759
  • 11
  • 71
  • 103
Taher Elhouderi
  • 233
  • 2
  • 11
  • 1
    You're using the wrong tool for the job. Are you on *nix (or have bash on Windows)? `for i in {1..1000}; do echo ""; done` – mah Apr 28 '14 at 00:00
  • @mah That is correct. The thing about text manipulation is we all use high level editors to do daily work, but shell scripting is really the best way to handle tasks like this. – Giacomo1968 Apr 28 '14 at 00:02
  • From the screenshot, you're on Windows so bash may not be immediately available... but you can run the command like I did at http://ideone.com/xcritk – mah Apr 28 '14 at 00:05
  • I can use bash as well I dual-boot Ubuntu with Windows Any Linux solution is welcome – Taher Elhouderi Apr 28 '14 at 10:37

2 Answers2

3

It may not be the solution you asked for, but you can try this:

Go to this website http://textmechanic.co/Generate-List-of-Numbers.html

Prefix numbers: <img src=http://targetname/file?r=
suffix with: </img>

Click Generate List of Numbers.

<img src=http://targetname/file?r=1</img>
<img src=http://targetname/file?r=2</img>
<img src=http://targetname/file?r=3</img>
<img src=http://targetname/file?r=4</img>
<img src=http://targetname/file?r=5</img>
<img src=http://targetname/file?r=6</img>
<img src=http://targetname/file?r=7</img>
<img src=http://targetname/file?r=8</img>
<img src=http://targetname/file?r=9</img>
<img src=http://targetname/file?r=10</img>
<img src=http://targetname/file?r=11</img>
...
George Chalhoub
  • 14,968
  • 3
  • 38
  • 61
Pedro Lobito
  • 94,083
  • 31
  • 258
  • 268
0

It's really easy using the emmet plugin for sublime text: https://sublime.wbond.net/packages/Emmet

1) Define HTML syntax in an empty file and paste this line:

img[src="http://targetname/file?r=$"]*1000

2) Then just place your cursor at the end of the line above and hit TAB

Hope this helps!

chrisg86
  • 11,548
  • 2
  • 16
  • 30