abrookins / WrapToColumn

An IntelliJ plugin that wraps text
Apache License 2.0
62 stars 12 forks source link

Define multiple line lengths in settings and cycle through them with multiple hotkey presses #56

Open dagood opened 1 year ago

dagood commented 1 year ago

The situation I'm in is that I have code comments where some are wrapped to 100 columns and others are wrapped to 80 columns. Both lengths show up in the same project. I want to add some text to a comment and re-wrap it, but if my line length override isn't set up to match the comment I happen to be changing at that time, I can't do it using this plugin without going back to the settings. 🙁 I end up wrapping manually sometimes.

I'm used to the way VS Code plugin Rewrap handles this: https://stkb.github.io/Rewrap/configuration/#wrapping-column. There, I can define multiple "rulers" (right margins, or visual guides) and swap between them by pressing the wrap hotkey multiple times. Then it remembers the "current" margin for that file for the next time I press the hotkey.