I've been using Geany for a while now, and love it! Great for java and html. I recently found out about the HTML snippets file. I saved it to ~/.geany and to /usr/share/geany. Also in prefrences the Tab key is set to complete constructs. But when I type for example li <Tab> there is just li and then a tab. Not the snippet. Am I doing something wrong here? Or is it a bug or install problem?
Thank you, Thomas de Meijer
On Thu, 04 Sep 2008 19:42:46 +0800, "thomas de meijer" 106498@gmail.com wrote:
Hi Thomas,
I recently found out about the HTML snippets file. I saved it to
I guess you are talking about http://citizen.ovh.org/stuff/snippets.conf?
~/.geany and to /usr/share/geany. Also in prefrences the Tab key is set to complete
The preferred path is ~/.geany/snippets.conf
constructs. But when I type for example li <Tab> there is just li and then a tab. Not the snippet. Am I doing something wrong here? Or is it a bug or install problem?
I don't know. I hope it's not a bug, at least it works fine here. Are you sure you tested it with an HTML file and Geany actually treated this file as a HTML file (check the statusbar)? The completions in this snippets.conf are only working for HTML files, if they should be available on all filetypes, move them into the "Default" section.
Regards, Enrico
Thank you for the reply. So it works for other peaople then...
I guess you are talking about http://citizen.ovh.org/stuff/snippets.conf?
Yes I am.
The preferred path is ~/.geany/snippets.conf
Yup I put it there
I don't know. I hope it's not a bug, at least it works fine here. Are you sure you tested it with an HTML file and Geany actually treated this file as a HTML file (check the statusbar)? The completions in this snippets.conf are only working for HTML files, if they should be available on all filetypes, move them into the "Default" section.
Yes I am sure that its a HTML file, and the statusbar says it as well. Also the snippets in the default section don't work either, none of them do. Maybe I should try install a more recent version of geany? I have 0.12
thomas de meijer wrote:
[...] Also the snippets in the default section don't work either, none of them do. Maybe I should try install a more recent version of geany? I have 0.12
Do you also have a file "autocomplete.conf" ? If you do, I think it will be read instead. As they say in Highlander, "there can be only one".
Ummm... actually, maybe 0.12 was looking for "autocomplete.conf" - check this by looking at your local copy of the help page, not the one on the interwebs.
I think you're right about that... There is a file autocomplete.conf in /usr/share/geany. Renamaed my files to autocomplete.conf but still no snippets.
On Fri, 05 Sep 2008 08:05:40 +0800, Ross McKay rosko@zeta.org.au wrote:
thomas de meijer wrote:
[...] Also the snippets in the default section don't work either, none of them do. Maybe I should try install a more recent version of geany? I have 0.12
Do you also have a file "autocomplete.conf" ? If you do, I think it will be read instead. As they say in Highlander, "there can be only one".
Ummm... actually, maybe 0.12 was looking for "autocomplete.conf" - check this by looking at your local copy of the help page, not the one on the interwebs.
thomas de meijer wrote:
I think you're right about that... There is a file autocomplete.conf in /usr/share/geany. Renamaed my files to autocomplete.conf but still no snippets.
Did you close and reopen Geany? It only reads the file at program start.
On Fri, 05 Sep 2008 10:38:47 +0800, "thomas de meijer" 106498@gmail.com wrote:
Thank you for the reply. So it works for other peaople then...
I guess you are talking about http://citizen.ovh.org/stuff/snippets.conf?
Yes I am.
The preferred path is ~/.geany/snippets.conf
Yup I put it there
I don't know. I hope it's not a bug, at least it works fine here. Are you sure you tested it with an HTML file and Geany actually treated this file as a HTML file (check the statusbar)? The completions in this snippets.conf are only working for HTML files, if they should be available on all filetypes, move them into the "Default" section.
Yes I am sure that its a HTML file, and the statusbar says it as well. Also the snippets in the default section don't work either, none of them do. Maybe I should try install a more recent version of geany? I have 0.12
Yes. 0.12 is old, buggy (compared to newer versions) and, erm, old :). As Ross mentioned, 0.12 was looking for a file "autocomple.conf". No idea why it still doesn't work for you after renaming the file but I strongly suggest to update your Geany version if possible.
Regards, Enrico
Well I took your advice and updated my geany to 0.15. Works great now! Thank you all for your replies.
On Sat, 06 Sep 2008 04:50:58 +0800, Enrico Tröger enrico.troeger@uvena.de wrote:
On Fri, 05 Sep 2008 10:38:47 +0800, "thomas de meijer" 106498@gmail.com wrote:
Thank you for the reply. So it works for other peaople then...
I guess you are talking about http://citizen.ovh.org/stuff/snippets.conf?
Yes I am.
The preferred path is ~/.geany/snippets.conf
Yup I put it there
I don't know. I hope it's not a bug, at least it works fine here. Are you sure you tested it with an HTML file and Geany actually treated this file as a HTML file (check the statusbar)? The completions in this snippets.conf are only working for HTML files, if they should be available on all filetypes, move them into the "Default" section.
Yes I am sure that its a HTML file, and the statusbar says it as well. Also the snippets in the default section don't work either, none of them do. Maybe I should try install a more recent version of geany? I have 0.12
Yes. 0.12 is old, buggy (compared to newer versions) and, erm, old :). As Ross mentioned, 0.12 was looking for a file "autocomple.conf". No idea why it still doesn't work for you after renaming the file but I strongly suggest to update your Geany version if possible.
Regards, Enrico
On Mon, 08 Sep 2008 20:02:46 +0800, "thomas de meijer" 106498@gmail.com wrote:
Well I took your advice and updated my geany to 0.15. Works great now! Thank you all for your replies.
But be aware that Geany 0.15 is still under development and might still have unexpected bugs :).
Regards, Enrico