[Geany] thank you to whomever fixed Ctrl-J...

Lex Trotman elextr at xxxxx
Thu Jul 7 01:42:46 UTC 2011


On 7 July 2011 02:21, Stephan Beal <sgbeal at googlemail.com> wrote:
> Hi, developers!
> A quick thanks to whomever fixed Ctrl-J (paragraph auto-wrap) to properly
> recognize end-of-comment markers so that tapping Ctrl-J doesn't include the
> function following the docs in the wrapping process. This is a subtle but
> very notable improvement over the older behaviour (which required that i
> first manually insert a newline before the end-of-comment, tap Ctrl-J, then
> manually remove the newline)!
> :)
>

Hi Stephan,

Just for the record, as you found out it doesn't find comment terminators.

IIUC reflow wasn't designed for use in code, more for marked up text
with blank line separated paragraphs. Too many block comments are
explicitly laid out (eg one parameter per line) for it to have much
use in code.

The algorithm is:

current selection or all the non-blank lines before and after the
cursor which have the same indentation.

So you can just select the range you want to re-flow, you don't have
to add spurious newlines.

Cheers
Lex
> --
> ----- stephan beal
> http://wanderinghorse.net/home/stephan/
>
> _______________________________________________
> Geany mailing list
> Geany at uvena.de
> https://lists.uvena.de/cgi-bin/mailman/listinfo/geany
>
>



More information about the Users mailing list