Hi Lex,

Sorry for my late reply -- I just turned on Digest mode so it took a while to see your message.

1. I have Geany 1.23, Ubuntu 12.04. Yes, my file is .py
I went into Geany and did these extra things: Turn off "Tab key indents" in Indentation, Turn on "Snippet completion" in Completions.

Still, when I hit a tab key, it just inserts white spaces (sometimes 1, sometimes 4/tab).

2. What's the best way to raise interest in a feature like Code minimap? I looked at the Feature Request page on SourceForge and they seem to request mainly support for miscellaneous language. Whereas some of the slick Sublime-like features (minimap, multiple cursors, put both quotes around a highlighted word) would seem to be universally appealing.

Thanks, - Anh
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


------------------------------

Message: 2
Date: Sun, 1 Dec 2013 13:01:58 +1100
From: Lex Trotman <[email protected]>
To: Geany general discussion list <[email protected]>
Subject: Re: [Geany-Users] Snippet completion not working + is code
        minimap planned?
Message-ID:
        <cakhwkdnddqywbybv3fawzwmkuutq4h-mo0hyo83oge0vjrf...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

On 1 December 2013 11:43, Anh <[email protected]> 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
[email protected]
https://lists.geany.org/cgi-bin/mailman/listinfo/users



_______________________________________________
Users mailing list
[email protected]
https://lists.geany.org/cgi-bin/mailman/listinfo/users

Reply via email to