nova-plugin icon indicating copy to clipboard operation
nova-plugin copied to clipboard

Multiple selectors in CSS, Emmet breaks

Open mark-tripney opened this issue 5 years ago • 2 comments

Describe the bug Entering a CSS rule with multiple selectors, separated by commas, is not possible without pressing Escape after every selector, and dismissing Emmet's suggestion. Not doing so deletes the selector.

To Reproduce Steps to reproduce the behavior:

  1. Create a simple HTML file with one heading and one paragraph.
  2. Link to CSS.
  3. In CSS file, type h1, and hit Enter (in order to move to the next line, and begin typing the next selector).
  4. h1, is deleted, and the cursor returns to the start of the line.

In this situation, this action occurs with all attempts at multi-selector rules.

Expected behavior Sequence of h1, > Enter > p { creates the following:

h1,
p {}

Screenshots If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

  • Nova version: 2 (Build 213794)
  • Emmet extension version: 1.2.3

Additional context Contrast with, for example, VS Code, which behaves as indicated in the 'Expected Behaviour' section, above.

mark-tripney avatar Oct 23 '20 08:10 mark-tripney

Looks like a problem with Nova, rather than the Emmet extension.

mark-tripney avatar Oct 27 '20 21:10 mark-tripney

Sincere apologies — I've been looking into this again, and I think it is an Emmet issue.

mark-tripney avatar Oct 28 '20 10:10 mark-tripney