[Github-comments] [geany/geany] User defined snippets not being detected (#2646)

Ian Kenney notifications at xxxxx
Sat Nov 7 18:09:25 UTC 2020


Geany version: 1.36
OS: Linux Mint 20

Copying `/usr/share/geany/snippets.conf` to `$HOME/.config/geany/snippets.conf` and replacing the block

```
# [Python]
# for=for i in xrange(%cursor%):\n\t%cursor%
# 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
```

with (added one line at bottom)
```
# [Python]
# for=for i in xrange(%cursor%):\n\t%cursor%
# 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
# customsnippet=customsnippet
```
does not produce the expected output. I restarted Geany after saving the new config file. Writing `customsnippet` and hitting tab just adds whitespace.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/2646
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20201107/b87cb9dd/attachment-0001.htm>


More information about the Github-comments mailing list