Re: [gedit-list] paragraph rewrapping plugin



Tom Metro wrote:
I'm trying to find a plugin that can rewrap a paragraph while maintaining an indent, *and* that doesn't use a hard coded right margin.

I started trying Join/Split lines (part of the core plugins, I believe), and couldn't find any documentation on what column it wrapped at, or if it could be changed. As I recall, I don't think it preserves indent either, though I could work around that if the margin was adjustable by wrapping, then indenting.
The join/split lines should honor the right margin setting from gedit. If it doesn't then that's a bug. I would agree though that the plugin is not very sophisticated and could use some love.

I then tried Tom Insam's Rewrap Paragraph[1], which behaved inconsistently in handling indents, and also had a fixed margin.

Lastly I tried GDP Format[2], which handled preserving indents nicely, but also uses a fixed margin. I see from the status bar help text it is set at 78 characters.

Are there any rewrapping plugins that either have their own configuration setting, or honor the right margin setting in gedit?

Another approach might be a rewrapping tool that uses the first line of a selection as a template. Whatever indent and line ending position used for the first line gets replicated for all subsequent lines.
If you feel like it, you could try fixing the join/split lines plugin from gedit-plugins. We're at the moment a bit busy trying to get gedit ready for 2.30, so it can take a while before we can get an enhancement like this. Also please file a bug report so that we can keep track of the issue.


Jesse

 -Tom

1. https://seatbelt.jerakeen.org/svn/tomi/Projects/gedit-plugins/word-wrap/
2. https://launchpad.net/gdp
_______________________________________________
gedit-list mailing list
gedit-list gnome org
http://mail.gnome.org/mailman/listinfo/gedit-list




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]