Add "absolute direction" option to sneak emulation
Nobody has claimed this yet.
- 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.
It is unnecessary mental overhead to have to think if ; and , will move forward or backward in char/chars search depending on whether we used s/S, t/T, f/F to search forward or backward. An option to use absolute direction where ; always repeats the search action forward and , always repeats the search action backwards already exists in the original vim sneak, and it'd be great to see it added to vscodevim -- especially given that (I think) it'd not be much work.
Describe the solution you'd like
I'd like to be able to opt in to a flag in vscodevim settings where ; always searches forward after an initial search with f/F, t/T, s/S, and , always searches backward.
Describe alternatives you've considered
There is a clever-f implementation idea pending for vscodevim, but that's more of a shift than what I'm proposing here.
If this is a duplicate of another issue/feature request, apologies!
Thanks in advance for your consideration --
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
No files, tests, or entry points are named. Start by locating the handling for f/F, t/T, s/S and the repeat keys ; and , plus the VSCodeVim settings definitions. Done means a setting enables absolute forward and backward repeat directions, with tests covering the requested behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- devtools
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100