Smart Repeat
🔃 Plugin for Sublime Text 2/3, Smart Repeat helps to repeat code with incremental/decremental numbers.
Labels formatting
Details
Installs
- Total 252
- Win 141
- Mac 65
- Linux 46
Jan 21 | Jan 20 | Jan 19 | Jan 18 | Jan 17 | Jan 16 | Jan 15 | Jan 14 | Jan 13 | Jan 12 | Jan 11 | Jan 10 | Jan 9 | Jan 8 | Jan 7 | Jan 6 | Jan 5 | Jan 4 | Jan 3 | Jan 2 | Jan 1 | Dec 31 | Dec 30 | Dec 29 | Dec 28 | Dec 27 | Dec 26 | Dec 25 | Dec 24 | Dec 23 | Dec 22 | Dec 21 | Dec 20 | Dec 19 | Dec 18 | Dec 17 | Dec 16 | Dec 15 | Dec 14 | Dec 13 | Dec 12 | Dec 11 | Dec 10 | Dec 9 | Dec 8 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 |
Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
Smart Repeat for Sublime Text
If you want this function, use Verilog Gadget: Repeat Code with Numbers. It works not only for verilog code extension.
Smart Repeat helps to repeat code with incremental/decremental numbers.
- Usage
- Select code to be repeated, it may include Python's format symbol like {…}
- Run
Smart Repeat : Repeat Code with Numbers
command (default key map :alt+insert
for Windows, Linuxalt+f11
for OSX) - Type a range in the input panel as the following : [from]~[to],[↓step],[→step]
(e.g. 0~10 or 0~10,2 or 10~0,-1 or 0~5,1,1 ...)
- [↓step] means row step, default is 1, [→step] means column step, default is 0
- The codes will be repeated with incremental or decremental numbers
- Python's format symbol supports variable formats : binary, hex, leading zeros, …
- To use '{' as is, you should type twice as '{{'
- Refer to Python's format symbol here, https://www.python.org/dev/peps/pep-3101/
- For sublime text 2 (python 2.x), you should insert index behind of ':' in curly brackets like
foo {0:5b} bar {1:3d}
e.g)
abc[{:2d}] = {:2d} + {:2d} + {:2d} + {:2d};
--> Select and Type the Range as 0~10,1,2
abc[{:2d}] = {:2d} + {:2d} + {:2d} + {:2d};
abc[ 0] = 2 + 4 + 6 + 8;
abc[ 1] = 3 + 5 + 7 + 9;
abc[ 2] = 4 + 6 + 8 + 10;
abc[ 3] = 5 + 7 + 9 + 11;
abc[ 4] = 6 + 8 + 10 + 12;
abc[ 5] = 7 + 9 + 11 + 13;
abc[ 6] = 8 + 10 + 12 + 14;
abc[ 7] = 9 + 11 + 13 + 15;
abc[ 8] = 10 + 12 + 14 + 16;
abc[ 9] = 11 + 13 + 15 + 17;
abc[10] = 12 + 14 + 16 + 18;
abc[{0:2d}] = {0:2d} + {1:2d} + {2:2d} + {2:2d};
--> index-used case, select and run the command and type the range 0~8,1,2
abc[ 0] = 0 + 2 + 4 + 4;
abc[ 1] = 1 + 3 + 5 + 5;
abc[ 2] = 2 + 4 + 6 + 6;
abc[ 3] = 3 + 5 + 7 + 7;
abc[ 4] = 4 + 6 + 8 + 8;
abc[ 5] = 5 + 7 + 9 + 9;
abc[ 6] = 6 + 8 + 10 + 10;
abc[ 7] = 7 + 9 + 11 + 11;
abc[ 8] = 8 + 10 + 12 + 12;
issues
When you have an issue, tell me through https://github.com/poucotm/Smart-Repeat/issues, or send me an e-mail poucotm@gmail.com