Setting for default attribute order in HTML (attrs_order)
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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