[Geany] tuning Geany key combos

Enrico Tröger enrico.troeger at xxxxx
Sat Jul 7 14:19:57 UTC 2007


On Fri, 6 Jul 2007 11:27:39 -0400, "John Gabriele" <jmg3000 at gmail.com>
wrote:

> On 7/6/07, Enrico Tröger <enrico.troeger at uvena.de> wrote:
> > On Thu, 5 Jul 2007 21:00:51 +0200, Enrico Tröger
> > <enrico.troeger at uvena.de> wrote:
> >
> > > On Thu, 5 Jul 2007 12:57:04 -0400, "John Gabriele"
> > > <jmg3000 at gmail.com> wrote:
> > >
> > > > On 7/5/07, John Gabriele <jmg3000 at gmail.com> wrote:
> > > > > On 7/5/07, Enrico Tröger <enrico.troeger at uvena.de> wrote:
> > > > > > On Wed, 4 Jul 2007 20:20:45 -0400, "John Gabriele"
> > > > > > <jmg3000 at gmail.com> wrote:
> > > > >
> > > > > > > * Shift-Alt-P to select paragraph
> > > > > >
> > > > > > No problem, just needs to be implemented. Could paragraph
> > > > > > defined in some way? To avoid further discussions (;-)) we
> > > > > > should use a common way of defining a paragraph(start and
> > > > > > end). Do you know what I mean?
> > > > >
> > > > > I think paragraphs are separated by blank lines (space is
> > > > > allowed).
> > > >
> > > > Actually, since Ctrl-] and Ctrl-[ already move the cursor
> > > > by-paragraph, all "select paragraph" needs to do is:
> > > >
> > > > 1. Ctrl-] (go to end of current paragraph).
> > > > 2. Mark this as the end of the selection.
> > > > 3. Ctrl-[ (go to beginning of paragraph).
> > > > 4. Mark this as the start of the selection.
> > >
> > > Not exactly because Ctrl-] jumps to the next paragraph not the
> > > end of the current one. But it doesn't matter. I'll implement it
> > > by going to the beginning of the current paragraph and then going
> > > down until an empty line(completely empty or a line with only
> > > whitespace) is found and then spawn a selection between these two
> > > points.
> >
> > Done in SVN r1669. Please test it.
> 
> Very nice! Thanks! A couple quick issues I noted:
> 
> 1. When I select a paragraph and hit Ctrl-D to duplicate it, it
> doesn't behave like when duplicating lines. It pastes the copy of the
> paragraph directly onto the end of the selected paragraph, which makes
> that first line begin right where the paragraph ends, instead of on
> the next line.
> 
> 2. If the last line of the paragraph is very long, the window scrolls
> right to show me the end of that line. This is a bit jarring. It would
> be nicer, IMO, if the window view stayed scrolled left, regardless of
> line length.
> 
> As a solution to both of those, it seems like select-paragraph should
> select the paragraph, *including* the last newline at the end of it.
Yes, this is exactly the problem. I wasn't sure about the selection
boundaries and decided to not include the new line character(s).
Obviously it is better when it is included. So, fixed it in SVN r1673.
Thanks.

Regards,
Enrico

-- 
Get my GPG key from http://www.uvena.de/pub.key
Powered by Debian GNU/Linux, GnuPG and Sylpheed.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.geany.org/pipermail/users/attachments/20070707/6609a538/attachment.pgp>


More information about the Users mailing list