VSCodeVim / VSCodeVim/Vim

vim-surround issues with template strings on new lines

Open
#3,696 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Template strings that contain new lines cannot be altered with any vim-surround commands.

@Component({
  selector: 'app-root',
  template: `
    <h1>Welcome to {{ title }}!</h1>
    <app-heroes></app-heroes>
  `,
  styleUrls: ['./app.component.scss'],
})

Only work around is to make the string single line, then you can manipulate the grave accents.

  template: ` <h1>Welcome to {{ title }}!</h1> <app-heroes></app-heroes> `,

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

The report concerns vim-surround commands applied to multiline template strings in the VS Code TypeScript extension. Start by reproducing the shown Angular-style example and trace how vim-surround handles template-string delimiters; done means surround operations work across newlines without requiring a single-line string.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.