psf / psf/black

apply black only for selected lines - vim

Open
#987 4 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.