CSS expansion, visual select values with defaults
Nobody has claimed this yet.
- Dominant language
- Vim Script
- Stars
- 6.5k
- Forks
- 414
- PR merge metrics
- No merged PRs in 30d
Description
I have
- Read through the docs but didn't found solution for my specific usecase
- Searched for issues but didn't found my usecase
Notations:
| - represents cursor position
*visually selected* - stuff between asterisk is visually selected
Current behaviour:
d|
expands to
// cursor is at the start of the 'block' keyword in insert mode
display: |block
Suggesting the behaviour to be:
// making the block visually selected
display: *block*
I actually came across this usecase multiple times.
While i think putting user in insert mode is really helpful where there is no default value for an attribute, like border but for the properties that have a default value like in case of display, putting the user in visual mode with the value highlighted could be of greater value as the user can then go ahead & immediately change it by pressing c once or exit from it by pressing esc.
If this is something that can be achieved currently, please guide me.
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
No file, test, or entry point is named in the report. Start by reproducing the CSS expansion behavior in emmet-vim and trace how default and non-default property values are selected; done means default values are visually selected while properties without defaults retain the current insertion behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- css, vim
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100