Skip to content
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

Stylus and headings #7

Open
af opened this issue Jan 11, 2017 · 0 comments
Open

Stylus and headings #7

af opened this issue Jan 11, 2017 · 0 comments

Comments

@af
Copy link

af commented Jan 11, 2017

Hi, I really love this plugin for stylus but I've come across an edge case with headings being auto-completed. Say I have this snippet (assume [] is the cursor):

.myComponent
  font-size: 20px

  h1[]

h1 is intended to be a nested selector inside .myComponent, but instead when I hit Enter hyperstyle completes this into height: 1px. Obviously this is an ambiguous situation, as normally this would be a valid expansion. Any ideas for how to discern what the user intends here, and preserve the heading selector without expanding it?

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

1 participant