Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Atom doesn't use snippets in the snippets folder ~/.atom/snippets #6006

Closed
Enkouyami opened this issue Mar 17, 2015 · 7 comments
Closed

Atom doesn't use snippets in the snippets folder ~/.atom/snippets #6006

Enkouyami opened this issue Mar 17, 2015 · 7 comments

Comments

@Enkouyami
Copy link

I moved working snippets from the ~/.atom/snippets.cson file to new individual cson files in the snippets folder in ~/.atom/snippets (which I had to create) and they stopped working.

Atom Version: 0.187.0

@mnquintana
Copy link
Contributor

Is this a feature request? I'm pretty sure that Atom only supports a snippets.cson file and not a snippets folder right now.

@izuzak
Copy link
Contributor

izuzak commented Mar 18, 2015

@Enkouyami Can you explain your motivation -- why would you like to move the snippets.cson file to a different location? Atom expects the snippets.cson file to be where it is now, it can't really know where the file is if you move it around like that.

@Enkouyami
Copy link
Author

Based on this latest doc for using snippets and this v0.187 doc for snippets,

There is also a directory called ~/.atom/snippets that you can fill with multiple json or cson files in the snippets format if you want to organize your snippets in a more coherent way.

@thomasjo
Copy link
Contributor

I think the documentation is wrong. The snippets folder concept only applies to packages as far as I know. Had a very quick glance over the relevant code and it seems to confirm my suspicion. Although I might be wrong.

/cc @schacon

@izuzak
Copy link
Contributor

izuzak commented Mar 20, 2015

Thanks for the 👀, @thomasjo! I was looking at the code myself yesterday and forgot to add a comment 😬 -- I didn't see anything in there about a snippets/ folder either. I'm going to close this and open an issue on the docs repository: atom/flight-manual.atom.io#30

@Enkouyami sorry for the confusion here and thanks for pointing this out. 👍

@izuzak izuzak closed this as completed Mar 20, 2015
@danielbayley
Copy link
Contributor

I just published modular-snippets. See also atom/snippets#124.
apm install modular-snippets

@lock
Copy link

lock bot commented Apr 6, 2018

This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!

@lock lock bot locked and limited conversation to collaborators Apr 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants