VSCodeVim / VSCodeVim/Vim

Formatting with `gqq` doesn't work while recording a macro

Open
#3,241 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area/macro kind/bug
Dominant language
TypeScript
Stars
15.2k
Forks
1.5k
Avg merge
3d 18h
Merged PRs (30d)
6

Description

Describe the bug

Formatting with gqq doesn't work while recording a macro. The text is not formatted and the recording is canceled instead.

To Reproduce

  1. Start recording a macro to a register qn (the register doesn't matter)
  2. Attempt to format a text with gqq and observe that the text was not formatted and the recording canceled.

Expected behavior

As in Vim, the text should be formatted and the recoding should continue without any interruption.

Environment (please complete the following information):

  • Extension (VsCodeVim) version: v0.16.13
  • VSCode version: 1.29.1
  • OS: macOS 10.14.1

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 reproducing the reported sequence in VSCodeVim: record to register qn, then run gqq, using the listed VSCodeVim and VSCode versions if available. Trace the key handling for formatting during macro recording; done means the text is formatted and recording continues without interruption, as in Vim.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.