Skip to content

tab stops not working? #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
guidorice opened this issue Aug 19, 2016 · 11 comments
Open

tab stops not working? #1

guidorice opened this issue Aug 19, 2016 · 11 comments

Comments

@guidorice
Copy link

First off thanks so much for creating this snippets package! It's helping me learn Aurelia.

One thing I have noticed, is that in my ES6 project, the tab stops do not seem work. I was investigating this and noticed the way you have annotated the tabs stops is slightly different than shown here:

http://flight-manual.atom.io/using-atom/sections/snippets/

Also I noticed some of the javascript snippets use Typescript syntax. Maybe you could provide an option in the package config to select ESNext or Typescript syntax?

using: Atom 1.9.9

Let me know if you have any suggestions- I would be happy to fork, if that would be best way to proceed.

Cheers

@unicodeveloper
Copy link
Owner

unicodeveloper commented Aug 19, 2016

Hi @guidorice I'm sorry you are experiencing this, but none of the javascript snippets use Typescript. I'll be happy if you can point me to anyone that looks like typescript

@guidorice
Copy link
Author

guidorice commented Aug 19, 2016

Hi, are the tab stops working for you? Maybe it's just a problem with my setup- they have never worked at all, but just for these aurelia snippets.

re: the typescript, I thought that what I was seeing in some places was type definitions, for example:

"Aurelia: created(ov, mv) { ... }":
    prefix: "_cre"
    body: "created(owningView: View, myView: View) {\n\t${1}\n}${2}"

So : View is the type definition for TS, right?

@unicodeveloper
Copy link
Owner

Oh, that's just Aurelia way of typehinting the parameters. It perfectly works for me and others that have tried it. What version of atom are you using?

@guidorice
Copy link
Author

Ah- weird! I am using 1.9.9 on OS X. For example if I type _req [ENTER] it fills in <require from="${url}"></require> and the cursor is after the closing tag. Hitting tab just inserts tabs to the right of there.

@unicodeveloper
Copy link
Owner

Enter or tab should work fine. So Enter works for you?

@guidorice
Copy link
Author

No ENTER has the same result as if I hit TAB.

@unicodeveloper
Copy link
Owner

Can you try this on another machine?

@guidorice
Copy link
Author

Sure, here are steps I took to repro, this time on another machine (Linux Ubuntu 16.04)

  • Upgraded Atom to latest 1.9.9
  • Disabled all other packages in Atom, except for aurelia-snippets, to make sure no conflicts come up.
  • npm install aurelia-cli -g
  • au new test-prj
Project Configuration
    Name: test-prj
    Platform: Web
    Transpiler: Babel
    CSS Processor: None
    Unit Test Runner: Karma
    Editor: Atom
  • cd test-prj/
  • atom .
  • open src/app.html
  • type _req[TAB]
  • snippet fills in <require from="${url}"></require> with cursor at end of line. The tab stop does not occur.
  • confirmed same for other snippets, like _rpf and also confirmed ENTER has same behavior as TAB.

@guidorice
Copy link
Author

I also nuked my ~/.atom config, and started with vanilla settings, re-installed aurelia-snippets, and confirmed the same results again.

@unicodeveloper
Copy link
Owner

Is this still an issue?

@guidorice
Copy link
Author

Yes, still does not work. I have not had time to debug it any more, beyond what I already posted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants