cjwit / selection-word-count

VSCode extension that shows a word count for a text selection in markdown files
3 stars 2 forks source link

Support targets based on number of characters #3

Open cands opened 3 years ago

cands commented 3 years ago

Thanks for making this helpful extension! I have a feature request, would it be possible to add support for having alternative targets based on number of characters, I have two rather frequent cases for filling various web forms:

1) Count total number of characters, including whitespace. 2) Count total number of characters, excluding whitespace.

I'm thinking the extension could search for trailing text with some variations of the target, e.g "(Target: 300w)" for 300 words and "(Target: 300ciw)" for 300 characters including whitespace, etc.

cjwit commented 3 years ago

Thank you for reaching out and for the feedback; I'm glad that the extension has been helpful. This is a good idea. I made this to serve my own needs and it was my first work with VSCode, but it may also be a good chance to play with the menu bar interface. Perhaps instead of hard coding the display in the text (as 100c), a menu bar hover might be able to show the other details. It'll be a while before I can look into it, though. You are welcome to submit a pull request if you would like to give it a try.

cands commented 3 years ago

Thanks for considering this suggestion! I'm afraid I can't make a pull request, I don't have any experience from programming extensions so it would probably be a daunting task. I understand it can take a while for you to look into it, no problem. Regarding menu bar hover it is a good idea, although I would personally prefer if the information was shown without the need to hover, since I am trying to use the mouse as little as possible. Maybe all information can be shown at once if condensed to not occupy so much space, something like "33% 300w 1500c (1200)", ideally controlled by some settings and the percentage goal could be controlled by the information in the heading.

cjwit commented 1 year ago

Sorry about the very long delay! I will keep this open as a potential enhancement for the future, but I don't expect to get to it anytime soon. Maybe someone else coming through here will see it and flesh out some ideas. I hope you're well.