Movements `(` and `)` should respect `startofline` setting
@J-Fields is already working on this.
Since Jan 8, 2020.
- Dominant language
- TypeScript
- Stars
- 15.2k
- Forks
- 1.5k
- Avg merge
- 3d 18h
- Merged PRs (30d)
- 6
Description
Is your feature request related to a problem? Please describe.
Movements ( and ) should respect startofline setting (enabled by default).
Describe the solution you'd like
Given
one
two
>t<hree
Pressing ( twice should place the cursor at significant start of line (whitespace removed).
one
>t<wo
three
Currently cursor is placed at first column no matter if followed by whitespace.
one
>< two
three
Describe alternatives you've considered
Remapping to (_ seems to work. Supporting visual mode requires additional remappings. However, I think this is what startofline is meant to configure?
"vim.normalModeKeyBindingsNonRecursive": [
{
"before": ["("],
"after": ["(", "_"]
},
{
"before": [")"],
"after": [")", "_"]
}
]
Related to https://github.com/VSCodeVim/Vim/issues/4137.
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.
Assessment
This issue has not been assessed yet.