[Geany-Users] Auto-close plugin for brackets

Pavel Roschin roshin at xxxxx
Wed May 15 13:12:49 UTC 2013


Wed, 15 May 2013 12:32:12 +0000 (UTC) M Tian <mwtian at gmail.com>: writes:

> Pavel <roshin at ...> writes:
> 
> > 
> > Hello!
> > 
> > I made new plugin that includes almost all possible features
> > concerned with brackets and quotes auto-closing. I just finished it
> > and maybe you want to test it. If it is useful and good enoough I
> > will make pull request.
> > 
> > Previously I made a patch for geany, but decided to put all code
> > together inside one small plugin.
> > 
> > Here is it:
> > https://github.com/scriptum/geany-plugins/tree/master/autoclose
> > 
> 
> Thanks Pavel. The auto completion of curly brackets and the "improved
> auto indentation" features are useful for me. I often write short
> (~100 lines) C++/Java programs in Geany, and the default auto
> completion feature does not work for my usage (e.g. nested curly
> brackets).
> 
> There is one suggestion. Right now, after hitting enter in-between
> curly brackets -> "{|}", the new cursor position seems a bit off. In
> line 241 of the source code, why is it this way?
> 
> sci_set_current_position(sci, pos + 2 + start_indent / indent_width,
> TRUE);
> 
> Why not shift to the position where typing normally starts?
> 
> sci_set_current_position(sci, pos + 1 + start_indent + indent_width,
> TRUE);
> 
> 
> 
> 
> _______________________________________________
> Users mailing list
> Users at lists.geany.org
> https://lists.geany.org/cgi-bin/mailman/listinfo/users

Thanks you, this was a bug: I guess you use spaces for indentation,
but I tested it on tabs indentation.

I fixed it right now, check git please.

-- 
Pavel


More information about the Users mailing list