Hi,
First of all, thanks for this great piece of code that is Geany !
Now, I would like to use auto-close brackets, brace and string in Geany.
As it doesn't looks very complicated, it could be a fairly easy feature to
implement for a first time contributor like me.
So here is my proposal:
These options will auto-close ( [ { ' and " while typing, positionning the
cursor between the pair.
Nothing really revolutionar here as some IDE already implement that.
Moreover, it sounds this cannot be done using snippets and I can't
seriously think about doing a plugin for such a feature (I'm not even
sure it's fesable). So I believe it belongs to Geany's core.
I had a look in the sources, but before coding, I would like some
feedback about this proposal and the following questions:
- where should I put the booleans options in the conf panel ?
"Editor" > "Completion" tab sounds obvious, what do you think about that ?
- should I group brackets and braces, under the same checkbox and
[single-]quotes in an other one ?
- what about adding a "Typing" Section to group these options in the
completion tab ?
Thanks for your feedbacks and comments !
--
Guillaume (ioguix) de Rorthais
Hi all,
I try to add Vala support in Geany in a better way than just use C#
filetype & co.
For now, I got a usable filetype, with:
* filetype
* keywords
* syntax highlighting (based on C# one, itself based on C++ one)
* usable tag manager (well, most of the work)
For now, the tag manager seems to work correctly. It is small add-ons
over C one, as C# one does.
The main leak is I've not written a custom tag list.
What is not perfect:
* Interfaces are shown as "Structs/Typedefs";
* Properties are shown as Members (hack in code because properties are
not shown at all);
* Signals are handled as simple functions. This is not really annoying,
but it may be better to have separate tag list.
And Exception types are shown as named enums, but this don't hurt me;
should it?
The main goal of this email is to solicit your opinion about what is
good, what is not, and perhaps help to improve tags manager (since I
mostly do tries to see how it works ^^). Generally, any comment and help
is welcome :)
Note that I am not a Vala power-user or a filetype-writing God, and the
main reason I would to write a Vala mode for Geany is to learn Vala,
then perhaps I made mistakes. If you see so, tell it to me, I'll learn :)
helpful links:
http://live.gnome.org/Valahttp://www.vala-project.org/doc/vala/
Regards,
Colomban.
Hi,
As using pointers to call plugin API functions is a bit ugly, I've been
planning on writing a wrapper shared library. But perhaps that is
unnecessary, perhaps macros would do instead:
#define plugin_add_toolbar_item \
p_plugin->add_toolbar_item
Are there any problems with this approach?
The attached script genapi.py currently does this for all API
functions, put it in the src/ folder:
$ cd src
$ python genapi.py
Generated geanyfunctions.h
Regards,
Nick
Hi.
I wish to add syntax highlighting support for YAML
and I've performed some effort in this area.
Here is the patch with my try.
But highlighting still doesn't work.
What have I missed? Please, help ;)
--
Walery Studennikov
http://www.reg.ru/
On Tue, 18 Nov 2008 17:03:15 +0000
eht16(a)users.sourceforge.net wrote:
> Revision: 3244
> http://geany.svn.sourceforge.net/geany/?rev=3244&view=rev
> Author: eht16
> Date: 2008-11-18 17:03:15 +0000 (Tue, 18 Nov 2008)
>
> Log Message:
> -----------
> Remove forced size requests for the tab close icon as it seems not
> necessary and broke the icon on Windows.
Although I'm not bothered at the moment, this commit makes the tab bar
taller by about 8-10 pixels on my machine. But on my laptop the tab
close button was slightly cropped before, haven't tried the new code yet
though.
Regards,
Nick
Hi all,
I worked a little with close tab buttons, and I've made a little widget
(based on gnome-terminal's code) and a demo.
The default behaviour is the same as gnome-terminal.
A try could be to remove the +2 at line 112 of geanyclosetabbutton.c to
reduce tab height and get back some tab's top decorations with some
themes. In the other hand, then border of the icon could cross the
button's border.
Next thing is to try this under Windows. If any of you could easily
compile and test it under Windows, do it, please.
Any comment? If you think it is a good solution, I can try to make a
patch to use it or a derivate in Geany.
Regards,
Colomban
Hi,
I use snippets now for a while with C, but I've recently written a
Python script and instinctively tried to complete simple statements like
if, else, etc, but it got C-like statements.
I think this is very annoying for everyone regular with C snippets
falling on a language with a non C-like syntax.
I joined a little patch to add basis of Python snippets (if, else, elif,
while…) in data/snippets.conf, but I think there is probably other
languages needing this.
Regards,
Colomban
Hi guys,
Just a little FYI ;)
I've uploaded a very first version of geanylipsum plugin to
geany-plugins subversion. It is intended to provide a lipsum generator
for the user.
It is far away from being stable or finished but I wanted to share the
code for some feedback or ideas how something like this could work.
Cheers,
Frank
--
Frank Lanitz <frank(a)frank.uvena.de>