Geany 1.37.1 Ubuntu 21.10
### STR - Open `snippets.conf` - Make changes e.g. `brace_open={\n\t` - Save `snippets.conf` - Open new `main.js` - Type `switch` and then TAB - Changes are not applied - Close Geany - Open Geany - Open new `main.js` - Type `switch` and then TAB - Changes are not applied
Should I be doing something else?
Did you remove the comments from both the line you changed and the heading above it?
I see .... Is the default `snippets.conf` completely commented off then? Where does the current built-in snippet come from? and where is it listed?
When you edit snippets.conf it is saved to your user config directory and, as pointed out in the manual, entries in the user file overload the system entries. So if you copied the whole file it would totally overload the system file and hide any system changes with later versions. So when copying the file to the user location it is commented with the "Toggle comment" (default `#~`) so only things you deliberately set will hide system values.
PS. How do you handle space in [Special] e.g. brace_open= {\n\t?
All whitespace characters have to be escaped, so `space` == `\s`
https://github.com/geany/geany/blob/142b8ffdd4b7372b77966abbc99435644210515a...
@elextr, while we're here, any plans to purge the Ferite templates from `snippets.conf` along with [the tags parser](https://github.com/geany/geany/pull/3075)?
https://github.com/geany/geany/blob/142b8ffdd4b7372b77966abbc99435644210515a...
@rdipardo well, now you have mentioned it :)
I understand now... thank you all for your help.
The actual default is in `/user/share/geany/snippets.conf``. The one at `/home/-user-/.config/geany/snippets.conf`` is the override snippet.
AFA my questions, feel free to close this topic.
github-comments@lists.geany.org