Re: [Geany-devel] question about snippets

2009-07-05 Thread Frank Lanitz
On Sat, 4 Jul 2009 21:10:13 +0200 Andreas Mokros wrote: > Gedit doesn't use Scintilla, right? At least this can I confirm ;) Thanks, Frank -- http://frank.uvena.de/en/ pgphe98ebH1pY.pgp Description: PGP signature ___ Geany-devel mailing list Geany

Re: [Geany-devel] question about templates

2009-07-05 Thread Enrico Tröger
On Sat, 4 Jul 2009 18:54:56 +0200, Andreas wrote: >On Sat, 4 Jul 2009 15:34:57 +0200 >Enrico Tröger wrote: >> Changing comment_open and comment_close in filetypes.haxe should >> help. > >No, that was my first thought also. But that doesn't change anything >about the comment-style for header and f

Re: [Geany-devel] Plugin for haxe-completion

2009-07-05 Thread Enrico Tröger
On Sun, 5 Jul 2009 00:04:15 +0200, Andreas wrote: Hey, >> > >Another question: It seems that you use "\n" as a separator >> > Er, this is completely up to you which character you use assuming >> > you are using your own userlist (index > 1). >> Hmm, I don't know what you mean by "userlist (in

Re: [Geany-devel] question about snippets

2009-07-05 Thread Enrico Tröger
On Sat, 4 Jul 2009 21:10:13 +0200, Andreas wrote: Hey, >I'll have a look at the snippet code. >Maybe better to try a separate plugin first ... Or the other way round, I think it's doesn't really matter if you try to implement it in Geany or as a plugin. Taking the working code and port it into G

[Geany-devel] Little patch to reload color schemes via menu

2009-07-05 Thread Eugene Arshinov
This patch makes Tools > Reload Configuration reload color schemes in all open documents. It is made against last SVN revision (rev. 3920). I don't know whether attachments are supported, so I post the patch below. Here is also a link as copying the patch from here may be inconvenient: http:/

Re: [Geany-devel] Plugin for haxe-completion

2009-07-05 Thread Andreas Mokros
Hi. On Sat, 4 Jul 2009 15:32:20 +0200 Enrico Tröger wrote: > You want to return TRUE if your haxe_completion() code > does display your userlist and return FALSE if not. This should do the > trick. Pretty close, but not quite there yet. The problem with returning TRUE is that *all* the Geany-ha

Re: [Geany-devel] question about templates

2009-07-05 Thread Andreas Mokros
On Sun, 5 Jul 2009 16:47:23 +0200 Enrico Tröger wrote: > It *should* that but it doesn't do yet :(. > Have a look at src/templates.c make_comment_block() and remove the > case for Haxe. OK, I see. > I guess blackdog preferred the // style when we added > the filetype. Not sure what's best as th

Re: [Geany-devel] question about snippets

2009-07-05 Thread Andreas Mokros
On Sun, 5 Jul 2009 17:01:13 +0200 Enrico Tröger wrote: > Or the other way round, I think it's doesn't really matter if you try > to implement it in Geany or as a plugin. Taking the working code and > port it into Geany from a plugin or port it from Geany into a plugin > shouldn't be that hard at a

Re: [Geany-devel] Plugin for haxe-completion

2009-07-05 Thread Andreas Mokros
Hi. On Sun, 5 Jul 2009 16:56:58 +0200 Enrico Tröger wrote: > I just had a look at the code and we are currently using only index 0 > in Geany, so you could use index 1. Ah, so these are autocompletion lists? I thought you were using user lists ... Sorry, but this is a bit confusing. In Scintill

Re: [Geany-devel] question about templates

2009-07-05 Thread Enrico Tröger
On Sun, 5 Jul 2009 17:52:14 +0200, Andreas wrote: >> We should rewrite this function so that it uses the >> comment_open/comment_close settings > >Definitely. Then you can choose yourself. > >> but there is still the lack for >> the line_prefix information. > >You mean tabs or spaces at the begin

Re: [Geany-devel] question about snippets

2009-07-05 Thread Enrico Tröger
On Sun, 5 Jul 2009 18:07:53 +0200, Andreas wrote: >On Sun, 5 Jul 2009 17:01:13 +0200 >Enrico Tröger wrote: >> Or the other way round, I think it's doesn't really matter if you try >> to implement it in Geany or as a plugin. Taking the working code and >> port it into Geany from a plugin or port i

Re: [Geany-devel] Plugin for haxe-completion

2009-07-05 Thread Enrico Tröger
On Sun, 5 Jul 2009 18:28:26 +0200, Andreas wrote: >Hi. > >On Sun, 5 Jul 2009 16:56:58 +0200 >Enrico Tröger wrote: >> I just had a look at the code and we are currently using only index 0 >> in Geany, so you could use index 1. > >Ah, so these are autocompletion lists? I thought you were using use

Re: [Geany-devel] question about templates

2009-07-05 Thread Andreas Mokros
On Sun, 5 Jul 2009 18:47:09 +0200 Enrico Tröger wrote: > No, the line_prefix means to insert an asterisk at the beginning of > lines inside the multi line comment, e.g. > /* > * blah > * blah > */ > line_prefix would be " *" in this case. I see. > Function name should be inserted into the temp

Re: [Geany-devel] Plugin for haxe-completion

2009-07-05 Thread Enrico Tröger
On Sun, 5 Jul 2009 17:50:31 +0200, Andreas wrote: >Hi. > >On Sat, 4 Jul 2009 15:32:20 +0200 >Enrico Tröger wrote: >> You want to return TRUE if your haxe_completion() code >> does display your userlist and return FALSE if not. This should do >> the trick. > >Pretty close, but not quite there yet.

Re: [Geany-devel] question about templates

2009-07-05 Thread Enrico Tröger
On Sun, 5 Jul 2009 19:11:50 +0200, Andreas wrote: >> This can be improved but doesn't necessarily need to. > >I'll have a look at the code. Maybe I can make it work for haxe, >too ... The problem is that Geany doesn't really know about the current scope. Check the 'scope' field in the statusbar,

Re: [Geany-devel] Plugin for haxe-completion

2009-07-05 Thread Andreas Mokros
On Sun, 5 Jul 2009 18:58:22 +0200 Enrico Tröger wrote: > We are using the autocompletion list in Geany *and* we are using a > userlist with index 1. So you need to use index 2 or above. > Sorry for the confusion, I had a look at the code and still failed. > /me hides. > I was really sure SCI_AUTOC

Re: [Geany-devel] Plugin for haxe-completion

2009-07-05 Thread Andreas Mokros
On Sun, 5 Jul 2009 19:11:30 +0200 Enrico Tröger wrote: > On the other hand, you maybe can workaround this by checking checking > the list display status with SCI_AUTOCACTIVE when receiving the > SCN_UPDATEUI. Yep. I think about something like this. Thanks for now. -- Mockey _

Re: [Geany-devel] question about templates

2009-07-05 Thread Andreas Mokros
On Sun, 5 Jul 2009 19:17:10 +0200 Enrico Tröger wrote: > So, fixing this means to fix the code which determines the current > scope which is not completely trivial but surely possible. > Have a look at symbols_get_current_function(), the code uses > information from Scintilla and from tagmanager t