krasa / StringManipulation

IntelliJ plugin - https://plugins.jetbrains.com/plugin/2162
Apache License 2.0
694 stars 81 forks source link

Please add counters of selected text #201

Open Claire opened 1 year ago

Claire commented 1 year ago

Is your feature request related to a problem? Please describe. It would be great to be able to count the number of characters or words in the selected text. To help when I need to do token counting. Ideally there would be an action that took the file or current selection and broke it up into chunks of x number or words or y number of characters and put double newline (or chosen delimiter) between each chunk

Describe the solution you'd like in the String Manipulation menu add a count section or add to other existing menu section have options to count words, count characters. A stretch bonus would be if it also split the file into chunks of words or chars useful for token limit handling.

Describe alternatives you've considered no alternative except maybe copying to MSWord app to get a word count and save to a file to get a byte/character count or find w/ regex in intellij of a selection and check the find menu for counts

Additional context Thanks for all you do. I love this tool can't code without it :)