vim-surround issues with template strings on new lines
Open
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
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
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