JavaScript snippets don't work in splt panels


#1

I don’t know if anyone else is seeing this but snippets don’t seem to work in split right, down or up panels. The problem exists in Atom 1.9.6 and Atom 1.1.0-beta-7 for OSX (10.11.6 - El Capitan).


#2

I can’t reproduce that using Atom v1.9.9 on Mac OS X 10.11.6. Here’s what I tried:

  1. Launch Atom in my local atom repository
  2. Use Cmd+T to open README.md
  3. Use Cmd+K Right to open a pane to the right with README.md in it
  4. Use Cmd+N to create a new file
  5. Use Cmd+S to save the file under the name test.js
  6. Type kf and wait a fraction of a second for autocomplete to show up
  7. Press Tab to expand the snippet

Expected and Actual: Autocomplete shows up as normal and the snippet expands

Can you give some more information as to what you did, what you saw happen and what you expected to happen instead?


#3

Here’s what I’m doing.

  1. Pick a JS source file in the tree and open it.
  2. Right click an associated JS test file in the tree and use Split Right in the context menu.
  3. Enter the prefix for a JS snippet in the left pane. For example, I have a snippet for a console log. It works in the left pane.
  4. Enter the prefix for the same snippet in the right pane. It does not work.

I tried using cmd-K-> but with no difference.


#4

I have similar problems. This sounds like https://github.com/atom/atom/pull/12522. What @leedohm was doing wrong is to create a new file to test in. The problem would be in one of the README.md editors and not in test.js.