gwip - reflow paragraph does not work

Open
#8,054 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
42/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
typescript
Domain
tooling

Research direction

Start by locating the gwip command implementation and any tests covering paragraph reflow. Reproduce the example in VS Code, then trace how the surrounding comment lines are collected and wrapped. Done means typing gwip inside the example combines the short lines into the expected long lines on all supported operating systems.

Written by the indexing model from the issue text.

Description

Describe the bug
gwip - reflow paragraph does not work

To Reproduce

See example below.

Expected behavior

Reflow short lines to long lines.

E.g.: if this is the text:

# one two three four five six seven
# eight nine
# ten eleven twelve thirteen fourteen
# fifteen sixteen seventeen 
# eighteen
# nineteen

Typing gwip while located inside the above lines should reflow to:

# one two three four five six seven eight nine ten eleven twelve thirteen
# fourteen fifteen sixteen seventeen eighteen nineteen

Environment (please complete the following information):

  • Extension (VsCodeVim) version: all versions
  • VSCode version: using 1.72.2
  • OS: All OSes
Dominant language
TypeScript
Stars
15.2k
Forks
1.5k
Avg merge
3d 18h
Merged PRs (30d)
6

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.

More from VSCodeVim/Vim

All issues in VSCodeVim/Vim

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.