Hi all,
I recently stumbled upon Sublime Text 2 and was pretty impressed with its Snippet completion and Code minimap.
I'm delighted to find out that Geany has snippet as well, but hitting Tab (my snippet completion keybinding) does not do anything for me... I did reload configuration + close/restart Geany
From my snippets.conf
# Optional keybindings to insert snippets # Note: these can be overridden by Geany's configurable keybindings [Keybindings] #for=<Ctrl>7
There is also the appropriate section for Python snippets
[Python] for=for i in xrange(%cursor%):\n\t if=if %cursor%:\n\t elif=elif %cursor%:\n\t else=else:\n\t while=while %cursor%:\n\t try=try:\n\t%cursor%\nexcept Exception, ex:\n\t with=with %cursor%:\n\t def=def %cursor% (%cursor%):\n\t""" Function doc """\n\t class=class %cursor%:\n\t""" Class doc """\n\t\n\tdef __init__ (self):\n\t\t""" Class initialiser """\n\t\tpass
The second issue is that I'm wondering if there's code minimap planned for Geany? I'm surprised that Google only turns up one such request.
Thank you all, Best regards, - Anh
On 1 December 2013 11:43, Anh ale@colgate.edu wrote:
Hi all,
I recently stumbled upon Sublime Text 2 and was pretty impressed with its Snippet completion and Code minimap.
I'm delighted to find out that Geany has snippet as well, but hitting Tab (my snippet completion keybinding) does not do anything for me... I did reload configuration + close/restart Geany
What version of Geany? What operating system? So you type for<tab> and nothing happens? Is the window you are in a Python filetype?
From my snippets.conf
# Optional keybindings to insert snippets # Note: these can be overridden by Geany's configurable keybindings [Keybindings] #for=<Ctrl>7
There is also the appropriate section for Python snippets
[Python] for=for i in xrange(%cursor%):\n\t if=if %cursor%:\n\t elif=elif %cursor%:\n\t else=else:\n\t while=while %cursor%:\n\t try=try:\n\t%cursor%\nexcept Exception, ex:\n\t with=with %cursor%:\n\t def=def %cursor% (%cursor%):\n\t""" Function doc """\n\t class=class %cursor%:\n\t""" Class doc """\n\t\n\tdef __init__ (self):\n\t\t""" Class initialiser """\n\t\tpass
The second issue is that I'm wondering if there's code minimap planned for Geany? I'm surprised that Google only turns up one such request.
No, its not planned. Its probably implementable as a plugin if somebody wants to do it.
Cheers Lex
Thank you all, Best regards,
- Anh
Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users