Hi all,
Does anyone know of a way to do "paragraph formatting" in Geany? I.e. break long lines in a selected block to be no more than a certain length?
In the joe editor this is achieved by selecting text and pressing Ctrl-K-H in case someone needs to see what I'm talking about.
Thanks! Conrad
Hi,
On Tue, 17 Mar 2009 09:57:06 -0700 Conrad Steenberg conrad.steenberg@caltech.edu wrote:
Does anyone know of a way to do "paragraph formatting" in Geany? I.e. break long lines in a selected block to be no more than a certain length?
There is a hard line break function you can find under Document -> Line breaking as well as a shortcut for toggling this option. Unfortunately a smart line breaking function as maybe known from emacs with Mq is currently not available but was already discussed on mailing list. This can be done by external tool and the send selection to feature of Geany.
Cheers, Frank
Thanks Frank.
What would you say is the difficulty level of implementing such a feature?
Cheers, Conrad
On Tue, 2009-03-17 at 18:53 +0100, Frank Lanitz wrote:
Hi,
On Tue, 17 Mar 2009 09:57:06 -0700 Conrad Steenberg conrad.steenberg@caltech.edu wrote:
Does anyone know of a way to do "paragraph formatting" in Geany? I.e. break long lines in a selected block to be no more than a certain length?
There is a hard line break function you can find under Document -> Line breaking as well as a shortcut for toggling this option. Unfortunately a smart line breaking function as maybe known from emacs with Mq is currently not available but was already discussed on mailing list. This can be done by external tool and the send selection to feature of Geany.
Cheers, Frank _______________________________________________ Geany-devel mailing list Geany-devel@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel
Hi Conrad,
On Tue, 17 Mar 2009 11:04:13 -0700 Conrad Steenberg conrad.steenberg@caltech.edu wrote:
What would you say is the difficulty level of implementing such a feature?
I can't say how difficult it will be since this is depending on which feature should be included. Also I'm not sure whether this should be part of the core and I prefer having something like this as a plugin implemented. A start for doing a plugin can be found at http://www.geany.org/manual/reference/
Cheers, Frank
On Tue, 17 Mar 2009 11:04:13 -0700 Conrad Steenberg conrad.steenberg@caltech.edu wrote:
Thanks Frank.
What would you say is the difficulty level of implementing such a feature?
A command wouldn't be hard. But I don't think it is necessary as (as Frank mentioned) the 'Format->Send selection to' command can be used, I use it with the fmt program.
But, the current Line Breaking mode IMO could be extended to break lines in the current paragraph as you type, like how line wrapping works but with hard newlines.
On Tue, 2009-03-17 at 18:53 +0100, Frank Lanitz wrote:
Hi,
On Tue, 17 Mar 2009 09:57:06 -0700 Conrad Steenberg conrad.steenberg@caltech.edu wrote:
Does anyone know of a way to do "paragraph formatting" in Geany? I.e. break long lines in a selected block to be no more than a certain length?
There is a hard line break function you can find under Document -> Line breaking as well as a shortcut for toggling this option. Unfortunately a smart line breaking function as maybe known from emacs with Mq is currently not available but was already discussed on mailing list. This can be done by external tool and the send selection to feature of Geany.
Regards, Nick