[Geany] on the new comment toggling
Enrico Tröger
enrico.troeger at xxxxx
Sat Jul 7 17:16:40 UTC 2007
On Fri, 6 Jul 2007 12:05:54 -0400, "John Gabriele" <jmg3000 at gmail.com>
wrote:
> > > > > Sounds good to me. I'm interested to see how the new toggle
> > > > > comment behaviour ('//~' and '#~') works out in practice.
> > > >
> > > > Me too ;-). I'm going to start implementing it.
> > >
> > > Done in SVN r1668 (also fixed some selection issues).
> >
> > Forgot to mention:
> > Keyboard shortcut for comment toggling was changed to: Ctrl-E.
> > Shortcuts for comment/uncomment are now undefined.
>
> Interesting behaviour you gave it regarding lines that already had a
> comment character on them. (That is, it doesn't touch them.)
>
> When I comment out a block, I'd like to be able to still glance up at
> it while working. Sometimes I'm trying out a different algorithm, and
> I still like to look up at the commented-out block for inspiration.
> So, for me, the commented-out block still needs to be readable.
>
> If I had the following block:
>
> [example code]
>
> (Note, for increased readability, the commenting would provide:
>
> 1. extra space after "#~",
> 2. blank lines get commented too, and
> 3. comment lines without special marker get commented with special
> marker.)
All done in SVN r1678, should be much better now.
Anyway, toggle comment will still indent the inserted comment toggle
mark (e.g. "#~ "). To avoid this, set "comment_use_indent" to false in
filetypes.python.
> By the way, since Ctrl-B is no longer mapped to a commenting command,
> it seems like a natural fit for "Goto matching brace" (which is
> currently not mapped to a key combination).
Nice idea, will be done tomorrow.
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/53d9f6f3/attachment.pgp>
More information about the Users
mailing list