apply black only for selected lines - vim
Open
Nobody has claimed this yet.
C: integrations
C: vim
T: enhancement
- Dominant language
- Python
- Stars
- 41.8k
- Forks
- 2.9k
- Avg merge
- 5d 6h
- Merged PRs (30d)
- 9
Description
Hello there,
The problem is I just wanted to visualize some lines in vim and then run black just like other vim plugins. Sadly, black does not support range of lines (I think).
Thanks.
Contributor guide
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 by reviewing Black's current formatting entry points and its Vim integration, since the issue names no files or tests. Determine how a selected line range could be passed through formatting, then verify that formatting a selection works without unexpectedly changing unrelated lines.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, vim
- Domain
- developer-experience, tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100