Re: [Geany-Users] Geany annoying colors in auto-complete
On 10/11/13 15:58, Vitaly wrote: On Sun, 10 Nov 2013 05:33:23 + lmx l...@sapo.pt wrote: Hi guys.. When I am coding...the auto-complete features starts to work, and present me a background white, and the foreground for text is white too, in the selected item... :S When I started using Geany, I had the same problem. I solved it by editing the system theme's settings.. If you use KDE (as me), it's quite easy: System Setting - Application Appearance - Colours - Colours-Tab and play with colours :) Especially with Selection Text, Selection Background and so on. Hi, I use Debian+MATE, and yes I can tweak only a little bit. I forgot to tweak the foreground selection, thanks for that ;), now its a litle bit better(I can now read the selected text). We have a beautiful dark theme, and when autocompletion starts...bang...a white square...in a dark theme. I think that, the theme should solve this...the autocompletion, and the sidebar code, have to inherit the theme colors at startup..which in not at the time. well this is only my idea, I am sharing it only with the purpose of give to geany community my feedback, of what I think that can be improved :) a big thanks for the tip, now I can read it ;) regards tux ___ Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
Re: [Geany-Users] Geany list
Thanks for the replies. And kind offers of condolences. But I'm afraid I didn't make myself clear. If, in the normal edit window, I type the line 'for i=1, 10 do'enter I want it to automatically go to the next line with that line indented 3 spaces. ( or 2 or 4 or whatever the indentations is set to) and when I enter a line 'end'enter the 'end' is automatically unindented whatever the setting is. I'm aware of using snippets and tabs within macros. It seems with Geany that is used to do this (Geany 1.18 or 1.19) But my memory is not so good these days and I may be wrong. But I'm sure that it used to work in Scite (but does not work now) which uses Scintilla same as Geany. I don't remember how I made it work in Scite or Geany. But both have gone through several upgrades since those days and my memory may be flawed about this. If this isn't possible any more, I understand and thank-you for any offers of assistance. Doug ___ Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
Re: [Geany-Users] Geany list
Autoindentation is not handled by the Scintilla component. SciTE and Geany are hugely different in practice. Some Scintilla-based editors (such as Notepad++) don't even offer autoindentation at all. I already gave you a link which shows you how to configure SciTE to autoindent Lua. John ___ Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
[Geany-Users] RFC: Ubuntu colour scheme for geany
Attached is a preliminary version of a Geany colour scheme for my fellow Ubuntu fanboys and girls. Even if you dont use Ubuntu, you might like it, so feel free to drop it into ~/.config/geany/colorschemes and try it out. James -- Unix is the worst computer operating system, except all the others that have been tried. [theme_info] name=Ubuntu description=A theme for Ubuntu fanboys and fangirls. version=0.01 author=James Brierley url= [named_styles] default=0x00;0xff;false;false error=0xff;0xff # Editor styles #--- selection=0x00;0xc0c0c0;false;true current_line=0x00;0xf0f0f0;true brace_good=0x33;0xFF;true;false brace_bad=0xFF;0x33;true;false margin_line_number=0x00;0xd0d0d0 margin_folding=0x00;0xdfdfdf fold_symbol_highlight=0xff indent_guide=0xc0c0c0 caret=0x00;0x00;false marker_line=0x00;0x00 marker_search=0x00;0xf0 marker_mark=0x00;0xb8f4b8 call_tips=0xc0c0c0;0xff;false;false white_space=0xc0c0c0;0xff;true;false # Programming languages #--- comment=0x808080 comment_doc=0x595959 comment_line=comment comment_line_doc=comment_doc comment_doc_keyword=comment_doc,bold comment_doc_keyword_error=comment_doc,italic number=0xDD4814 number_1=number number_2=number_1 type=0x5E2750;;true class=type function=0x80 parameter=function keyword=0x2C001E;;true keyword_1=keyword keyword_2=0x9f0200;;true keyword_3=keyword_1 keyword_4=keyword_1 identifier=0x151515 identifier_1=identifier identifier_2=identifier_1 identifier_3=identifier_1 identifier_4=identifier_1 string=0xDD4814 string_1=string string_2=string_1 string_3=default string_4=default string_eol=0x00;0xe0c0e0 character=string_1 backticks=string_2 here_doc=string_2 label=default,bold preprocessor=comment_doc,bold regex=number_1 operator=0x5E2750 decorator=string_1,bold other=0x404080 # Markup-type languages #--- tag=type tag_unknown=tag,bold tag_end=tag,bold attribute=keyword_1 attribute_unknown=attribute,bold value=string_1 entity=default # Diff #--- line_added=0x008B8B line_removed=0x6A5ACD line_changed=preprocessor ___ Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
Re: [Geany-Users] Geany list
On 10/11/13 23:48, Matthew Brush wrote: I wrote and use such a plugin for C/C++/Obj-c using Clang-Format. I actually use it real-time just always keeping my code perfectly formatted (triggers on a set of configurable chars like closing braces and semicolons and such), but auto/realtime formatting isn't on by default and you can choose to format a selection, document, or all open documents rather than having it in real-time/automatic mode. It's here: http://codebrainz.github.io/code-format/ And a boring demo video is here: http://codebrainz.ca/screencasts/GeanyCodeFormatC++.avi That looks darn good Matthew, good work. Thanks for the heads up. James -- Unix is the worst computer operating system, except all the others that have been tried. ___ Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
Re: [Geany-Users] Geany list
Hey, I try to build the Geany Code Format plugin from the git, usage the autoget.sh, and I get the follwoing errors (I have automake 1.14): /autoreconf: running: /usr/bin/autoheader --force usautoreconf: running: automake --add-missing --copy --force-missing r configure.ac:8: installing 'build-aux/compile' configure.ac:8: installing 'build-aux/config.guess' configure.ac:8: installing 'build-aux/config.sub' configure.ac:6: installing 'build-aux/install-sh' configure.ac:6: installing 'build-aux/missing' automake: warnings are treated as errors /usr/share/automake-1.14/am/ltlibrary.am: warning: 'codeformat.la': linking libtool libraries using a non-POSIX /usr/share/automake-1.14/am/ltlibrary.am: archiver requires 'AM_PROG_AR' in 'configure.ac' Makefile.am:10: while processing Libtool library 'codeformat.la Regards, Yosef Or Boczko בתאריך ב', נוב 11, 2013 בשעה 1:48 AM, Matthew Brush mbr...@codebrainz.ca כתב: On 13-11-10 03:35 PM, James Brierley wrote: Ah, this has reminded me: I forgot to mention, but perhaps it would be possible (for someone) to write a plugin which pipes your code through something such as Uncrustify, which is a modern version of the classic Unix utility ‘cb’. You would still need to hit a button to beautify your code (rather like the XML PrettyPrinter plugin) but at least it might be one way of having configurable indentation without costly on-the-fly parsing. I’d have a go at this myself, but for the fact that I’m a CS graduate student (learning all that new stuff is great but why do they have to give you piles of coursework as well? :P) I wrote and use such a plugin for C/C++/Obj-c using Clang-Format. I actually use it real-time just always keeping my code perfectly formatted (triggers on a set of configurable chars like closing braces and semicolons and such), but auto/realtime formatting isn't on by default and you can choose to format a selection, document, or all open documents rather than having it in real-time/automatic mode. It's here: http://codebrainz.github.io/code-format/ And a boring demo video is here: http://codebrainz.ca/screencasts/GeanyCodeFormatC++.avi I think Colomban also started working on a more general purpose version of something like this using GNU Indent, Astyle or Uncrustify (or one of those), but I'm not sure how far it got. Cheers, Matthew Brush ___ Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
Re: [Geany-Users] Geany-Users Digest, Vol 97, Issue 15
On 11/10/2013 02:00 PM, users-requ...@lists.geany.org wrote: Send Users mailing list submissions to users@lists.geany.org To subscribe or unsubscribe via the World Wide Web, visit https://lists.geany.org/cgi-bin/mailman/listinfo/users or, via email, send a message with subject or body 'help' to users-requ...@lists.geany.org You can reach the person managing the list at users-ow...@lists.geany.org When replying, please edit your Subject line so it is more specific than Re: Contents of Users digest... Today's Topics: 1. Re: Geany list (James Brierley) 2. Re: Geany list (John Yeung) 3. Re: Geany annoying colors in auto-complete (Matthew Brush) 4. RFC: Ubuntu colour scheme for geany (James Brierley) 5. Re: RFC: Ubuntu colour scheme for geany (Matthew Brush) 6. Re: Geany list (Lex Trotman) 7. Re: Difficulty installing geany dev version (Lex Trotman) -- Message: 1 Date: Sun, 10 Nov 2013 17:48:09 + From: James Brierley jmb8...@gmail.com To: Geany general discussion list users@lists.geany.org Subject: Re: [Geany-Users] Geany list Message-ID: 527fc6d9.7060...@gmail.com Content-Type: text/plain; charset=windows-1252; format=flowed On 10/11/13 17:23, Doug Darrow wrote: Thanks for the replies. And kind offers of condolences. But I'm afraid I didn't make myself clear. If, in the normal edit window, I type the line 'for i=1, 10 do'enter I want it to automatically go to the next line with that line indented 3 spaces. ( or 2 or 4 or whatever the indentations is set to) and when I enter a line 'end'enter the 'end' is automatically unindented whatever the setting is. Doug, try changing Complete snippet in Preferences (Keybindings) to Enter, and add this to snippets.conf: do=do\n\t%cursor% That solves the first case. I?m afraid I don?t know if Geany supports unindentation via snippets. Developers? Sorry I can?t be more helpful. James Hi list; First I'd like to thank all of you for the replies. The problem seems to lie in my own foggy gray-matter. What I remember as working in older versions obviously doesn't and apparently never did. Oh well...Geany is still a good editor and I will probably continue to use it. Anybody know where I can get a good brain-upgrade? (preferably with auto-indentation?) Doug ___ Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
Re: [Geany-Users] Geany list
On 13-11-10 03:58 PM, Yosef Or Boczko wrote: Hey, I try to build the Geany Code Format plugin from the git, usage the autoget.sh, and I get the follwoing errors (I have automake 1.14): /autoreconf: running: /usr/bin/autoheader --force usautoreconf: running: automake --add-missing --copy --force-missing r configure.ac:8: installing 'build-aux/compile' configure.ac:8: installing 'build-aux/config.guess' configure.ac:8: installing 'build-aux/config.sub' configure.ac:6: installing 'build-aux/install-sh' configure.ac:6: installing 'build-aux/missing' automake: warnings are treated as errors /usr/share/automake-1.14/am/ltlibrary.am: warning: 'codeformat.la': linking libtool libraries using a non-POSIX /usr/share/automake-1.14/am/ltlibrary.am: archiver requires 'AM_PROG_AR' in 'configure.ac' Makefile.am:10: while processing Libtool library 'codeformat.la Weird. I don't know too much about Autotools but I guess it wants to see AM_PROG_AR to be placed, for example on line 9 in configure.ac just before AC_PROG_CC_C99. I never got this error here (Automake 1.11.6) and I don't really understand since I'm not building any static libraries (I thought I even explicitly disabled them in configure.ac:6 with disable-static). If you happen to know the cause and/or don't mind taking a minute, could you open an Issue on the Github project (https://github.com/codebrainz/code-format/issues) and I'll see if I can figure out what's happening there shortly. Thanks, Matthew Brush ___ Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
Re: [Geany-Users] Geany list
On 11 November 2013 10:35, James Brierley jmb8...@gmail.com wrote: Ah, this has reminded me: I forgot to mention, but perhaps it would be possible (for someone) to write a plugin which pipes your code through something such as Uncrustify, which is a modern version of the classic Unix utility ‘cb’. You would still need to hit a button to beautify your code (rather like the XML PrettyPrinter plugin) but at least it might be one way of having configurable indentation without costly on-the-fly parsing. What about http://www.geany.org/manual/current/index.html#sending-text-through-custom-commands Ok, you need an extra ctrl+a to select all before the keybinding for the command, but two keys isn't too bad :) BTW do not use astyle for this, it lies through its teeth about working from a piped stdin, it tries to do a seek on the input and thats not possible on pipes. I havn't done it for ages, but uncrustify used to work. Cheers Lex I’d have a go at this myself, but for the fact that I’m a CS graduate student (learning all that new stuff is great but why do they have to give you piles of coursework as well? :P) James -- Unix is the worst computer operating system, except all the others that have been tried. ___ Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
Re: [Geany-Users] 8Bits Plugin for Microcontrollers
Hi guys, for what I understand plugindata.h have the structs of the Program data, and geanyfunctions.h, an functions to access the places in plugindata.h, geanyplugin.h include both...am I right? I have this table,table_box = gtk_table_new(1,4,FALSE); with a label, two combox's and a button at the end , I want to add them at the end of the toolbar... Is that possible?I am struggling with this , and I am in a dead end.. I have search in geanyfunctions.h, but I only found a macro for this... :S plugin_add_toolbar_item(geany_plugin, table_box); //*Is this the only way to add items to toolbar?* *plugin_add_toolbar_item* only accept a GtktoolItem * ? I think that means only GtkToolButton,GtkSeparatorToolItem, but if I want to add a table(1,4)?how can I do that? I noticed that I can't do that with gtk_container_add( GTK_CONTAINER( geany_data-main_widgets-toolbar), table_box ); I don't know why... does any body knows, how to do this? thanks regards tux ___ Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
Re: [Geany-Users] 8Bits Plugin for Microcontrollers
On 13-11-10 08:03 PM, lmx wrote: Hi guys, for what I understand plugindata.h have the structs of the Program data, and geanyfunctions.h, an functions to access the places in plugindata.h, geanyplugin.h include both...am I right? I have this table,table_box = gtk_table_new(1,4,FALSE); with a label, two combox's and a button at the end , I want to add them at the end of the toolbar... Is that possible?I am struggling with this , and I am in a dead end.. I have search in geanyfunctions.h, but I only found a macro for this... :S plugin_add_toolbar_item(geany_plugin, table_box); //*Is this the only way to add items to toolbar?* *plugin_add_toolbar_item* only accept a GtktoolItem * ? I think that means only GtkToolButton,GtkSeparatorToolItem, but if I want to add a table(1,4)?how can I do that? GtkToolItem implements GtkContainer, so you could do like this probably: ... GtkWidget *tool_item = gtk_tool_item_new(); gtk_container_add(GTK_CONTAINER(tool_item), GTK_WIDGET(your_table)); gtk_widget_show_all(tool_item); plugin_add_toolbar_item(geany_plugin, tool_item); ... Although it seems a little weird using a GtkTable in a toolbar, maybe you have a good reason. If you want a better example, IIRC the Latex plugin adds stuff to the main toolbar. BTW, it's probably best to discuss development stuff on the developer's mailing list. Cheers, Matthew Brush ___ Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
Re: [Geany-Users] 8Bits Plugin for Microcontrollers
On 11/11/13 04:12, Matthew Brush wrote: On 13-11-10 08:03 PM, lmx wrote: Hi guys, for what I understand plugindata.h have the structs of the Program data, and geanyfunctions.h, an functions to access the places in plugindata.h, geanyplugin.h include both...am I right? I have this table,table_box = gtk_table_new(1,4,FALSE); with a label, two combox's and a button at the end , I want to add them at the end of the toolbar... Is that possible?I am struggling with this , and I am in a dead end.. I have search in geanyfunctions.h, but I only found a macro for this... :S plugin_add_toolbar_item(geany_plugin, table_box); //*Is this the only way to add items to toolbar?* *plugin_add_toolbar_item* only accept a GtktoolItem * ? I think that means only GtkToolButton,GtkSeparatorToolItem, but if I want to add a table(1,4)?how can I do that? GtkToolItem implements GtkContainer, so you could do like this probably: ... GtkWidget *tool_item = gtk_tool_item_new(); gtk_container_add(GTK_CONTAINER(tool_item), GTK_WIDGET(your_table)); gtk_widget_show_all(tool_item); plugin_add_toolbar_item(geany_plugin, tool_item); ... thanks Matthew, yes it works ;) Although it seems a little weird using a GtkTable in a toolbar, maybe you have a good reason. If you want a better example, IIRC the Latex plugin adds stuff to the main toolbar. its because I will have in this plugin a section to choose board/microcontroller, based on that I will generate a config_board.h for a specific MCU...this is the easiest way, I think... The components seems a litle bit height , but for now its fine ;) thanks BTW, it's probably best to discuss development stuff on the developer's mailing list. ok, I'm sorry for the noise. thanks for the help ;) regards tux ___ Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users