Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Duplicate prefixes in snippets #14

Closed
miketheman opened this issue Mar 1, 2014 · 1 comment · Fixed by #111
Closed

Duplicate prefixes in snippets #14

miketheman opened this issue Mar 1, 2014 · 1 comment · Fixed by #111

Comments

@miketheman
Copy link
Contributor

Brought into visibility after mega-commit eb6db3d, which joined them all together.

Some snippets have identical prefixes, and it looks like Atom will choose the last-defined one.
The TextMate behavior was to pop open a prompt after pressing Tab, allowing interactive selection of any of the available methods via (1, 2, ...) selection.

textmate_snippet_prompt

Scope of problem:

$ grep --color=none prefix snippets/language-ruby.cson|sort|uniq -c|sort|grep -v 1
   2     'prefix': 'Dir'
   2     'prefix': 'File'
   2     'prefix': 'eac-'
   2     'prefix': 'mod'
   3     'prefix': 'cla'

Also referenced here: http://discuss.atom.io/t/multiple-snippets-key/2297

So I'm uncertain whether the functionality will be part of Atom, or whether by the time Atom compiles and loads CSON, there's no other way to get at those keys.

@kevinsawicki
Copy link
Contributor

Yes, there is no way to get to those keys, I tried going through and renaming/removing duplicates since this isn't currently supported but I must have missed these in this grammar.

This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants