mattn / mattn/emmet-vim

Setting for default attribute order in HTML (attrs_order)

Open
#336 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Vim Script
Stars
6.5k
Forks
414
PR merge metrics
No merged PRs in 30d

Description

I'm following codeguide.co's guide for HTML (http://codeguide.co/#html-attribute-order) and the attribute order is class then id. At present, emmet has the default order set as id then class (configured from https://github.com/mattn/emmet-vim/blob/master/autoload/emmet.vim#L180).

Could an option be added that allows configuration of this default attr order?

Happy to prep a PR if that's necessary/acceptable. Thanks!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with autoload/emmet.vim around line 180, which the issue identifies as the source of the current default attribute order. Trace how that order is configured and make it possible to choose class-before-id or the existing order; done means the setting changes generated HTML attribute order.

Written by the indexing model from the issue text.

Assessment

Tech stack
html, vim
Domain
tooling
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.