[Geany-devel] More intelligent 'remove trailing spaces' - Re: Strip trailing blank lines (patch included)
Eugene Arshinov
earshinov at xxxxx
Sat Sep 12 20:30:51 UTC 2009
On Thu, 10 Sep 2009 15:50:52 +0100
Nick Treleaven <nick.treleaven at btinternet.com> wrote:
> On Thu, 03 Sep 2009 22:44:37 +0400
> Eugene Arshinov <earshinov at gmail.com> wrote:
>
> > >>> I think this is useful as the user doesn't need to re-indent
> > >>> the blank line before typing on it.
> > >>>
> > >> Hmm, I usually use the Up cursor key to jump to the previous
> > >> line and then press Enter :).
> > >>
> > >
> > > Yes, but sometimes the cursor will be at the start of the line
> > > after pressing up, so then the user also has to press End and
> > > then Enter.
> > >
> > > Anyway, I'm not that bothered about implementing it really, just
> > > that it could be useful.
> > >
> >
> > 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?
More information about the Devel
mailing list