[Geany-devel] More intelligent 'remove trailing spaces'
Nick Treleaven
nick.treleaven at xxxxx
Sun Sep 13 11:08:47 UTC 2009
On Sun, 13 Sep 2009 00:30:51 +0400
Eugene Arshinov <earshinov at gmail.com> wrote:
> > > Pressing Up, End and Enter every time is so annoying... For
> > > example, to add a simple C/C++ code block (I prefer K&R style,
> > > opening brace on the same line) I have to press
> > >
> > > <space>{<enter>}<up><end><enter>
> >
> > Personally I have a snippet:
> > b={\n\t%cursor%\n%brace_close%
> >
> > Which inserts a matching brace pair - braces at the same column, but
> > could be adapted to what you want.
> >
> > But this is only a workaround - if you want to write a patch we might
> > accept it.
>
> Sorry, sent previous email without reply :-/
>
> The trouble is that I do not know the way how this block insertion
> should be implemented. What my patch should do?
Not sure really. Maybe it's OK for you to just use the snippet (I think
it also works with your brace-alignment style).
Regards,
Nick
More information about the Devel
mailing list