VSCodeVim / VSCodeVim/Vim

Make `sentenceEndRegex` configurable to support non-period-delimited sentences navigation.

Open
#7,337 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

Is your feature request related to a problem? Please describe.
It's convenient to use ( or ) to navigate through period-delimited sentences in most European language contexts, but not so in many Asian one. Making sentenceEndRegex configurable allows users customize their sentence detecting to fit their language, and even for some programming languages (maybe).

An use case is given in Addtional context.

Describe the solution you'd like

  1. make sentenceEndRegex configurable.

Describe alternatives you've considered
None

Additional context

To support CJK sentences navigation, one may set the sentenceRegex as follows:

sentenceRegexConfiguration

The following picture shows how that regular expression cooperates with both CJK and the default punctuations:

sentenceEndRegex

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

Locate references to sentenceEndRegex and sentenceRegex, then trace the sentence-navigation configuration and behavior. Confirm how the existing default punctuation is detected before adding configurability. Done means users can customize the sentence-ending expression for CJK punctuation while retaining the default behavior.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.