Number Manipulation
manipulate multiple numbers in the document. Useful for writing .md files, snippets etc.
Details
Installs
- Total 602
- Win 273
- Mac 232
- Linux 97
| Feb 5 | Feb 4 | Feb 3 | Feb 2 | Feb 1 | Jan 31 | Jan 30 | Jan 29 | Jan 28 | Jan 27 | Jan 26 | Jan 25 | Jan 24 | Jan 23 | Jan 22 | 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 | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 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 | 0 | 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 | 0 | 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
- Source
- raw.githubusercontent.com
README
This plugin lets you modify the numbers in your text document.
Use cases
Useful while writing .md files where suppose you are writing a ordered list and you decide to insert a new list element in between. Now you have to increase all the numbers below this element manually. Instead, after installing this plugin, you can do this easily:
- Select all those lines
- do a
ctrl-shift-Lto get multiple cursors - Press
Hometo go to the start of each line(where I assume the numbers are written) - 'ctrl-shift-p' -> “increment numbers”
P.S: I know you don't have to write correct numbers in your .md files but I like to keep it clean
Another Use case is when writing snippets. There are ${1} kind of placeholders. What do you do if you want to insert a placeholder in between? You use my plugin!
Features
- Select Next Number :
ctrl-shift-P->Select Next Number. Selects the number immediately next to your cursor position(s)! Modify Numbers
- Increment :
ctrl-shift-P->Increment Numbers. Increments selected/just next numbers by 1 - Decrement :
ctrl-shift-P->Decrement Numbers. Decrements selected/just next numbers by 1 - Square :
ctrl-shift-P->Square Numbers. Squares selected/just next numbers by 1 - Double :
ctrl-shift-P->Double Numbers. Doubles selected/just next numbers by 1 - Sequence:
ctrl-shift-P->Number Sequence. Selected numbers are replaced by consecutive numbers, starting with the first value - Accumulation:
ctrl-shift-P->Accumulate Selected Number(s). Selected numbers are replaced by the accumlating sum - Summation:
ctrl-shift-P->Sum Up Selected Number(s). All selected numbers are replace by the total sum - Batch:
ctrl-shift-P->Batch Number Manipulation. Selected numbers are computed against the formula. Supported functions are:sin,cos,tan,log,eandpi. The variablexwill be substituted to the number selected. The variableiwill be substituted to the index of the selection (started from 0). Custom Modifications : bring up the console by ctrl- and type
view.run_command('modify_numbers',{"args":{"modifier_function":(lambda x: x**3)}) #change the function given by the lambda for custom modification
- Increment :