StringManipulation icon indicating copy to clipboard operation
StringManipulation copied to clipboard

Feature Request - Number Conversion

Open Pabilo8 opened this issue 3 years ago • 2 comments

Is your feature request related to a problem? Please describe. I often have to convert numbers between dec and hex for colors manually. It's available by default in the java editor, but it would be useful to have it as a general option (in my case in markdown, json and plain text).

Describe the solution you'd like A new "Convert Number" option could be added to the drop down menu. It could be available all the time or only if the selection is detected to be a number. The conversion option could be grouped by the "from" element; there could be 4 groups for dec, hex, oct and bin with options to convert to another.

Describe alternatives you've considered I tried using another plugin, but it doesn't support multi-caret selections nor keyboard shortuts. Before I used a manual approach , but it was tiresome, so I made myself a script to batch convert multiple numbers dec->hex and reverse.

Pabilo8 avatar Jan 28 '22 11:01 Pabilo8

Sounds good.

That plugin could be very easily fixed, maybe just noone reported it :-) https://github.com/dethlex/NumberConverter/issues/4

krasa avatar Jan 28 '22 12:01 krasa

Hi there! I supported this features and uploaded new version of plugin. So, it will be available after moderation. Thank you!

dethlex avatar Feb 12 '22 13:02 dethlex