Wow -- this looks like a neat project. :)
I've been looking for a simple, fast, modern, GTK+ based editor with some amount of code browsing features, and geany seems to really fit the bill.
Some issues I had:
1. One problem I noticed right off the bat: auto-completion. I opened a new file (some Ruby), and typed:
def foo puts "hi" end[<-- cursor here]
then when I hit <Enter> to end the line, geany quickly tacks on "DocumentSAXFunc" leaving me with:
def foo puts "hi" endDocumentSAXFunc
I've got no idea what "endDocumentSAXFunc" is related to. Where is geany getting this name from?
How can I shut this auto-complete off? Or at least just tell it I only want it to try and autocomplete for core Ruby names (or names I've 'require'd in)? I've tried unchecking "Preferences --> Editor --> Construct auto completion" but that didn't seem to do anything. Maybe a keybinding to only use autocomplete when I want it?
2. How can I write my own syntax highlighting colorscheme? I'd like to maybe make something like this: http://radarzombies.org/slinky/zenburn-snapshot.png (http://www.vim.org/scripts/script.php?script_id=415).
3. How can I learn about more text editing keybindings such as up-/down-by-paragraph, indent-/dedent-current selection, go to definition, hop between matching brackets/braces/parenthese, etc.?
4. How do I shut off current-line-highlight?
5. "Find next" isn't Ctrl-G. :) Ctrl-g seems to duplicate the current line. Just a personal preference (and I think lots of folks may be used to it too). The 'f' keys on my keyboard are tiny little things that I never touch and try to avoid. :)
And also, a few other questions:
Regarding regexes, what library does geany use for those? pcre, or are you rolling your own?
By the way, although I'm not familiar with GTK programming, I think I'd read that some GTK-based editors (such as Anjuta and GEdit) use GtkSourceview (http://gtksourceview.sourceforge.net/). Does geany use Scintilla in place of that? If so, just curious, why?
Finally, stuff I really like so far:
* All the helpful pop-up help text (in the yellow boxes). Very nice -- please keep it up. :) * Edit --> Insert Comments --> GPL notice. Nice touch. :) (though why the extra indent there?) * geany is quite fast. * Color chooser seems handy to have around. * built-in help feature found firefox right off the bat. * <Control>-click-drag rectangual selection! :) * Web page looks great.
Nice work.
Thanks, ---John
On Wed, 2006-07-19 at 01:33 -0400, John Gabriele wrote: ...
- Edit --> Insert Comments --> GPL notice. Nice touch. :) (though why
the extra indent there?)
Reminds me: a configurable "date/time" would be a good addition to that list.
Another proposal: sorting file tabs doesn't sort the order shown in file listing sidebar; the file listing should be synced with the order of the tabs.
Bug: option "Load files from last session" doesn't work correctly. files opened are not reopened when restarting Geany.
Nexu
On Wed, 19 Jul 2006 09:51:39 +0200, Nexu nexu.jin@gmail.com wrote:
On Wed, 2006-07-19 at 01:33 -0400, John Gabriele wrote: ...
- Edit --> Insert Comments --> GPL notice. Nice touch. :) (though
why the extra indent there?)
Reminds me: a configurable "date/time" would be a good addition to that list.
It's on the TODO list.
Another proposal: sorting file tabs doesn't sort the order shown in file listing sidebar; the file listing should be synced with the order of the tabs.
Oops. You are right, they should be in sync.
Bug: option "Load files from last session" doesn't work correctly. files opened are not reopened when restarting Geany.
Can you explain it in more detail? This feature exists since 0.1 and nobody reported a malfunction. There are only a few cases where Geany ignore or doesn't open the files from last session: - one or more of the files can't be opened(moved, deleted, no permission) - Geany was started with filenames specified on the command line - the option to load files from last session was disabled(default is on)
Regards, Enrico
-- Get my GPG key from http://www.uvena.de/pub.key
On 19/07/06 10:02:14, Enrico Tröger wrote:
On Wed, 19 Jul 2006 09:51:39 +0200, Nexu nexu.jin@gmail.com wrote:
On Wed, 2006-07-19 at 01:33 -0400, John Gabriele wrote: Bug: option "Load files from last session" doesn't work correctly. files opened are not reopened when restarting Geany.
Can you explain it in more detail? This feature exists since 0.1 and nobody reported a malfunction. There are only a few cases where Geany ignore or doesn't open the files from last session:
- one or more of the files can't be opened(moved, deleted, no
permission)
- Geany was started with filenames specified on the command line
- the option to load files from last session was disabled(default is
on)
The SVN version will remember files opened from the command line ;-) I expect this was why it seemed the feature didn't work. (Geany 0.7 didn't use the current directory for command-line opened files).
Regards, Nick
On Wed, 19 Jul 2006 09:51:39 +0200, Nexu nexu.jin@gmail.com wrote:
Another proposal: sorting file tabs doesn't sort the order shown in file listing sidebar; the file listing should be synced with the order of the tabs.
Fixed.
Regards, Enrico
-- Get my GPG key from http://www.uvena.de/pub.key
- How can I write my own syntax highlighting colorscheme? I'd like to
maybe make something like this: http://radarzombies.org/slinky/zenburn-snapshot.png (http://www.vim.org/scripts/script.php?script_id=415).
read ~/.geany/filedefs/filetypes.README
3. How can I learn about more text editing keybindings such as
up-/down-by-paragraph, indent-/dedent-current selection, go to definition, hop between matching brackets/braces/parenthese, etc.?
indent: Tab unindent: Shift+Tab
By the way, although I'm not familiar with GTK programming, I think I'd read that some GTK-based editors (such as Anjuta and GEdit) use GtkSourceview (http://gtksourceview.sourceforge.net/). Does geany use Scintilla in place of that? If so, just curious, why?
check the mailinglist archive, this has been discussed before. yes it's scintilla, and that's because it has more features (or used to have more, and now it's too late to change).
I don't know about the other questions.
cheers ~luzi
On Wed, 19 Jul 2006 01:33:39 -0400, "John Gabriele" jmg3000@gmail.com wrote:
Hi,
- One problem I noticed right off the bat: auto-completion. I opened
a new file (some Ruby), and typed:
def foo puts "hi" end[<-- cursor here]
then when I hit <Enter> to end the line, geany quickly tacks on "DocumentSAXFunc" leaving me with:
This is fixed in the current SVN version.
- How can I write my own syntax highlighting colorscheme? I'd like to
maybe make something like this: http://radarzombies.org/slinky/zenburn-snapshot.png (http://www.vim.org/scripts/script.php?script_id=415).
Please read http://geany.uvena.de/manual/ch03s09.html and if you need more information, just ask here. If you finished your sheme and you think it is nice, it would be cool if you send it to the list, so other people can use it too.
- How can I learn about more text editing keybindings such as
up-/down-by-paragraph, indent-/dedent-current selection, go to definition, hop between matching brackets/braces/parenthese, etc.?
Please read http://geany.uvena.de/manual/ch03s08.html and http://geany.uvena.de/manual/apa.html.
- How do I shut off current-line-highlight?
At the moment it can't be completely disabled. You can just set the background of the current line to 0xffffff, so it has the same background with most styles. How to this, is described in http://geany.uvena.de/manual/ch03s09.html. There will be a feature to completely disable it.
- "Find next" isn't Ctrl-G. :) Ctrl-g seems to duplicate the current
line. Just a personal preference (and I think lots of folks may be used to it too). The 'f' keys on my keyboard are tiny little things that I never touch and try to avoid. :)
Where is the problem? You can reassign the shortcuts in the preferences dialog.
And also, a few other questions:
Regarding regexes, what library does geany use for those? pcre, or are you rolling your own?
Regexps are passed to Scintilla. The regexps are described here http://geany.uvena.de/manual/ch03s04.html and since yesterday(so only in the SVN version) POSIX-like regexps are also possible.
By the way, although I'm not familiar with GTK programming, I think I'd read that some GTK-based editors (such as Anjuta and GEdit) use GtkSourceview (http://gtksourceview.sourceforge.net/). Does geany use Scintilla in place of that? If so, just curious, why?
As Luzi already mentioned, we already had this discussion on Thu, 13 Jul 2006 18:26:48. The main reason for Scintilla was: it had more features than GtkSourceView when i started writing Geany.
Finally, stuff I really like so far:
- All the helpful pop-up help text (in the yellow boxes). Very nice --
please keep it up. :)
- Edit --> Insert Comments --> GPL notice. Nice touch. :) (though why
the extra indent there?)
Do you mean between # and the text? You can edit these templates, please read http://geany.uvena.de/manual/ch03s10.html
- geany is quite fast.
- Color chooser seems handy to have around.
- built-in help feature found firefox right off the bat.
- <Control>-click-drag rectangual selection! :)
- Web page looks great.
Thanks for all.
Regards, Enrico
-- Get my GPG key from http://www.uvena.de/pub.key
2006/7/19, Enrico Tröger enrico.troeger@uvena.de:
On Wed, 19 Jul 2006 01:33:39 -0400, "John Gabriele" jmg3000@gmail.com wrote:
Hi,
- One problem I noticed right off the bat: auto-completion. I opened
a new file (some Ruby), and typed:
def foo puts "hi" end[<-- cursor here]
then when I hit <Enter> to end the line, geany quickly tacks on "DocumentSAXFunc" leaving me with:
This is fixed in the current SVN version.
- How can I write my own syntax highlighting colorscheme? I'd like to
maybe make something like this: http://radarzombies.org/slinky/zenburn-snapshot.png (http://www.vim.org/scripts/script.php?script_id=415).
Please read http://geany.uvena.de/manual/ch03s09.html and if you need more information, just ask here. If you finished your sheme and you think it is nice, it would be cool if you send it to the list, so other people can use it too.
- How can I learn about more text editing keybindings such as
up-/down-by-paragraph, indent-/dedent-current selection, go to definition, hop between matching brackets/braces/parenthese, etc.?
Please read http://geany.uvena.de/manual/ch03s08.html and http://geany.uvena.de/manual/apa.html.
- How do I shut off current-line-highlight?
At the moment it can't be completely disabled. You can just set the background of the current line to 0xffffff, so it has the same background with most styles. How to this, is described in http://geany.uvena.de/manual/ch03s09.html. There will be a feature to completely disable it.
- "Find next" isn't Ctrl-G. :) Ctrl-g seems to duplicate the current
line. Just a personal preference (and I think lots of folks may be used to it too). The 'f' keys on my keyboard are tiny little things that I never touch and try to avoid. :)
Where is the problem? You can reassign the shortcuts in the preferences dialog.
And also, a few other questions:
Regarding regexes, what library does geany use for those? pcre, or are you rolling your own?
Regexps are passed to Scintilla. The regexps are described here http://geany.uvena.de/manual/ch03s04.html and since yesterday(so only in the SVN version) POSIX-like regexps are also possible.
By the way, although I'm not familiar with GTK programming, I think I'd read that some GTK-based editors (such as Anjuta and GEdit) use GtkSourceview (http://gtksourceview.sourceforge.net/). Does geany use Scintilla in place of that? If so, just curious, why?
As Luzi already mentioned, we already had this discussion on Thu, 13 Jul 2006 18:26:48. The main reason for Scintilla was: it had more features than GtkSourceView when i started writing Geany.
And, since I kinda like started that discussion that time, I would like to add that my sources were wrong. I've been trying and checking GtkSourceView the last week and it still lacks A LOT of features that Geany use. Scintilla is by far the best open option for us, I guess.
GtkSourceView support for some stuff we already use will probably be done after google summer of code only.
Finally, stuff I really like so far:
- All the helpful pop-up help text (in the yellow boxes). Very nice --
please keep it up. :)
- Edit --> Insert Comments --> GPL notice. Nice touch. :) (though why
the extra indent there?)
Do you mean between # and the text? You can edit these templates, please read http://geany.uvena.de/manual/ch03s10.html
- geany is quite fast.
- Color chooser seems handy to have around.
- built-in help feature found firefox right off the bat.
- <Control>-click-drag rectangual selection! :)
- Web page looks great.
Thanks for all.
Regards, Enrico
-- Get my GPG key from http://www.uvena.de/pub.key
Geany mailing list Geany@uvena.de http://uvena.de/cgi-bin/mailman/listinfo/geany
Cheers,
Alexandre Moreira.
On 7/19/06, Alexandre Moreira alexandream@gmail.com wrote:
2006/7/19, Enrico Tröger enrico.troeger@uvena.de:
On Wed, 19 Jul 2006 01:33:39 -0400, "John Gabriele" jmg3000@gmail.com wrote: [snip]
By the way, although I'm not familiar with GTK programming, I think I'd read that some GTK-based editors (such as Anjuta and GEdit) use GtkSourceview (http://gtksourceview.sourceforge.net/). Does geany use Scintilla in place of that? If so, just curious, why?
As Luzi already mentioned, we already had this discussion on Thu, 13 Jul 2006 18:26:48. The main reason for Scintilla was: it had more features than GtkSourceView when i started writing Geany.
And, since I kinda like started that discussion that time, I would like to add that my sources were wrong. I've been trying and checking GtkSourceView the last week and it still lacks A LOT of features that Geany use. Scintilla is by far the best open option for us, I guess.
GtkSourceView support for some stuff we already use will probably be done after google summer of code only.
Thanks for the follow-up Alexandre. I hadn't realized that there was a SOC project dedicated to working on GtkSourceView (http://code.google.com/soc/gnome/about.html). It'll be interesting to see how it looks when the summer is over. :)
---John
On 7/19/06, Enrico Tröger enrico.troeger@uvena.de wrote:
On Wed, 19 Jul 2006 01:33:39 -0400, "John Gabriele" jmg3000@gmail.com wrote:
Hi,
- One problem I noticed right off the bat: auto-completion. I opened
a new file (some Ruby), and typed:
def foo puts "hi" end[<-- cursor here]
then when I hit <Enter> to end the line, geany quickly tacks on "DocumentSAXFunc" leaving me with:
This is fixed in the current SVN version.
Ah. Ok. Grabbed the svn version. Works great. Thanks. :)
- How can I write my own syntax highlighting colorscheme? I'd like to
maybe make something like this: http://radarzombies.org/slinky/zenburn-snapshot.png (http://www.vim.org/scripts/script.php?script_id=415).
Please read http://geany.uvena.de/manual/ch03s09.html and if you need more information, just ask here.
Whoops. Sorry. Dunno how I missed that.
Ahh.. ok. I see. The filetypes.foo file knows *all* about the foo language. Keywords, syntax highlighting colors, everything. Hm... but, I'd like to be able to have the same colorscheme for all my files -- whether it's a config file in /etc, a Ruby source file, a C file, etc... Looks like I need to edit my own ~/.geany/filedefs/filetypes.common as well as the others in there too. I think it would be very nice if syntax highlighting color schemes could be abstracted out of the filetypes files. This way the editor could provide *two* separate settings here: filetype, *and* colorscheme.
BTW, I see that setting "Document --> Set File Type --> Config file" works good for editing these filetypes.foo files. Though, after I set a file type, I think it should place a checkmark next to the menu item for the current setting (next to "Config file" in this case).
If you finished your sheme and you think it is nice, it would be cool if you send it to the list, so other people can use it too.
Ok. But it seems to me so far that making a "theme" will entail making my own versions of *all* the filetypes.foo files. :(
Incidentally, search/replace seems a bit scary: when I hit the Replace button, I don't really have any way of knowing which text it's going to replace next. I think what might be better is to have a Find button that takes you to the next bit of found text, then also provide "Replace" and "Replace and Find again" buttons as well.
- How can I learn about more text editing keybindings such as
up-/down-by-paragraph, indent-/dedent-current selection, go to definition, hop between matching brackets/braces/parenthese, etc.?
Please read http://geany.uvena.de/manual/ch03s08.html and http://geany.uvena.de/manual/apa.html.
Ahh... thanks.
- How do I shut off current-line-highlight?
At the moment it can't be completely disabled. You can just set the background of the current line to 0xffffff, so it has the same background with most styles. How to this, is described in http://geany.uvena.de/manual/ch03s09.html. There will be a feature to completely disable it.
Cool. Thank you.
- "Find next" isn't Ctrl-G. :) Ctrl-g seems to duplicate the current
line. Just a personal preference (and I think lots of folks may be used to it too). The 'f' keys on my keyboard are tiny little things that I never touch and try to avoid. :)
Where is the problem? You can reassign the shortcuts in the preferences dialog.
Sorry. No problem. I should've put a winky ( ;) ) instead of a smiley ( :) ). :)
And also, a few other questions:
Regarding regexes, what library does geany use for those? pcre, or are you rolling your own?
Regexps are passed to Scintilla. The regexps are described here http://geany.uvena.de/manual/ch03s04.html and since yesterday(so only in the SVN version) POSIX-like regexps are also possible.
Sorry, I don't understand. What's the difference between the regexes that the stable version of geany supports and posix regexes?
I asked about them just because I'm familiar with the Perl/Python/Java/Ruby style, and had just figured that the other way was an older style.
By the way, although I'm not familiar with GTK programming, I think I'd read that some GTK-based editors (such as Anjuta and GEdit) use GtkSourceview (http://gtksourceview.sourceforge.net/). Does geany use Scintilla in place of that? If so, just curious, why?
As Luzi already mentioned, we already had this discussion on Thu, 13 Jul 2006 18:26:48. The main reason for Scintilla was: it had more features than GtkSourceView when i started writing Geany.
I see.
Finally, stuff I really like so far:
- All the helpful pop-up help text (in the yellow boxes). Very nice --
please keep it up. :)
- Edit --> Insert Comments --> GPL notice. Nice touch. :) (though why
the extra indent there?)
Do you mean between # and the text?
Yes.
You can edit these templates, please read http://geany.uvena.de/manual/ch03s10.html
Thanks. Will look into it.
Oh, one other thing I just noticed: under the "Build" menu it says "Execute", but the icon on the button bar says "Run". You might consider changing the one under Build to say "Run" also.
- geany is quite fast.
- Color chooser seems handy to have around.
- built-in help feature found firefox right off the bat.
- <Control>-click-drag rectangual selection! :)
- Web page looks great.
Thanks for all.
You're welcome. Thank you for all your hard work. :)
Regards, Enrico
---John
On 19/07/06 22:25:46, John Gabriele wrote:
On 7/19/06, Enrico Tröger enrico.troeger@uvena.de wrote:
On Wed, 19 Jul 2006 01:33:39 -0400, "John Gabriele" jmg3000@gmail.com wrote:
Ahh.. ok. I see. The filetypes.foo file knows *all* about the foo language. Keywords, syntax highlighting colors, everything. Hm... but, I'd like to be able to have the same colorscheme for all my files -- whether it's a config file in /etc, a Ruby source file, a C file, etc... Looks like I need to edit my own ~/.geany/filedefs/filetypes.common as well as the others in there too. I think it would be very nice if syntax highlighting color schemes could be abstracted out of the filetypes files. This way the editor could provide *two* separate settings here: filetype, *and* colorscheme.
Yes at some point we will have the default highlighting all in one file so it can be used for all filetypes.
BTW, I see that setting "Document --> Set File Type --> Config file" works good for editing these filetypes.foo files. Though, after I set a file type, I think it should place a checkmark next to the menu item for the current setting (next to "Config file" in this case).
This will be done by 1.0.
Incidentally, search/replace seems a bit scary: when I hit the Replace button, I don't really have any way of knowing which text it's going to replace next. I think what might be better is to have a Find button that takes you to the next bit of found text, then also provide "Replace" and "Replace and Find again" buttons as well.
I've been meaning to do this, will be done soon.
And also, a few other questions:
Regarding regexes, what library does geany use for those? pcre, or
are
you rolling your own?
Regexps are passed to Scintilla. The regexps are described here http://geany.uvena.de/manual/ch03s04.html and since yesterday(so only in the SVN version) POSIX-like regexps are also possible.
Sorry, I don't understand. What's the difference between the regexes that the stable version of geany supports and posix regexes?
The difference is that bracket matching uses plain brackets according to a POSIX-like regex syntax, instead of the Scintilla default which was to escape the brackets, but not the other regex characters. The online documentation will catch up soon (as of now it shows the 0.7 syntax). Basically this is closer to the way grep interprets regexes by default.
For example, if the search string was Fred([1-9])XXX and the replace string was Sam\1YYY, when applied to Fred2XXX this would generate Sam2YYY.
Support for back references in the replace text was added on tuesday.
Oh, one other thing I just noticed: under the "Build" menu it says "Execute", but the icon on the button bar says "Run". You might consider changing the one under Build to say "Run" also.
OK, will do.
Regards, Nick
On 7/20/06, Nick Treleaven nick.treleaven@btinternet.com wrote:
On 19/07/06 22:25:46, John Gabriele wrote:
On 7/19/06, Enrico Tröger enrico.troeger@uvena.de wrote:
On Wed, 19 Jul 2006 01:33:39 -0400, "John Gabriele" jmg3000@gmail.com wrote:
Ahh.. ok. I see. The filetypes.foo file knows *all* about the foo language. Keywords, syntax highlighting colors, everything. Hm... but, I'd like to be able to have the same colorscheme for all my files -- whether it's a config file in /etc, a Ruby source file, a C file, etc... Looks like I need to edit my own ~/.geany/filedefs/filetypes.common as well as the others in there too. I think it would be very nice if syntax highlighting color schemes could be abstracted out of the filetypes files. This way the editor could provide *two* separate settings here: filetype, *and* colorscheme.
Yes at some point we will have the default highlighting all in one file so it can be used for all filetypes.
Great. Looking forward to it. :) Meantime, I'll look more into how to use the current setup.
Incidentally, search/replace seems a bit scary: when I hit the Replace button, I don't really have any way of knowing which text it's going to replace next. I think what might be better is to have a Find button that takes you to the next bit of found text, then also provide "Replace" and "Replace and Find again" buttons as well.
I've been meaning to do this, will be done soon.
That'll be a very nice improvement. Thank you.
And also, a few other questions:
Regarding regexes, what library does geany use for those? pcre, or
are
you rolling your own?
Regexps are passed to Scintilla. The regexps are described here http://geany.uvena.de/manual/ch03s04.html and since yesterday(so only in the SVN version) POSIX-like regexps are also possible.
Sorry, I don't understand. What's the difference between the regexes that the stable version of geany supports and posix regexes?
The difference is that bracket matching uses plain brackets according to a POSIX-like regex syntax, instead of the Scintilla default which was to escape the brackets, but not the other regex characters.
Ah. Ok, so, the older syntax was (this), but the newer is (this).
But, <this> stays the same I guess.
The online documentation will catch up soon (as of now it shows the 0.7 syntax). Basically this is closer to the way grep interprets regexes by default.
For example, if the search string was Fred([1-9])XXX and the replace string was Sam\1YYY, when applied to Fred2XXX this would generate Sam2YYY.
Support for back references in the replace text was added on tuesday.
You folks are moving geany forward at a quick pace! :)
---John
On Wed, 19 Jul 2006 17:25:46 -0400, "John Gabriele" jmg3000@gmail.com wrote:
- How do I shut off current-line-highlight?
At the moment it can't be completely disabled. You can just set the background of the current line to 0xffffff, so it has the same background with most styles. How to this, is described in http://geany.uvena.de/manual/ch03s09.html. There will be a feature to completely disable it.
Cool. Thank you.
Should be working in SVN. You can completely disable the highlighting of the current line by setting the third value of "current_line" in filetypes.common to false.
Regards, Enrico
P.S.: sorry John for duplicate mail.
-- Get my GPG key from http://www.uvena.de/pub.key
On 7/20/06, Enrico Tröger enrico.troeger@uvena.de wrote:
On Wed, 19 Jul 2006 17:25:46 -0400, "John Gabriele" jmg3000@gmail.com wrote:
- How do I shut off current-line-highlight?
At the moment it can't be completely disabled. You can just set the background of the current line to 0xffffff, so it has the same background with most styles. How to this, is described in http://geany.uvena.de/manual/ch03s09.html. There will be a feature to completely disable it.
Cool. Thank you.
Should be working in SVN. You can completely disable the highlighting of the current line by setting the third value of "current_line" in filetypes.common to false.
Regards, Enrico
(Sorry for the delayed reply)
Great. Thanks Enrico!
BTW, you'd previously written:
- How can I write my own syntax highlighting colorscheme? I'd like to
maybe make something like this: http://radarzombies.org/slinky/zenburn-snapshot.png (http://www.vim.org/scripts/script.php?script_id=415).
I forgot to mention, that at the moment there is a small bug in Geany which causes Geany to interpret some hex colours wrong. But we didn't fixed it because then we have to change many of the default colour shemes. It will be fixed soon.
So, I think it would be the best to wait one or two weeks with starting a new theme to avoid unnecessary work. Sorry.
Please keep us posted on the status of this fix. :)
Thanks, ---John