Make `sentenceEndRegex` configurable to support non-period-delimited sentences navigation.
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
- make
sentenceEndRegexconfigurable.
Describe alternatives you've considered
None
Additional context
To support CJK sentences navigation, one may set the sentenceRegex as follows:
The following picture shows how that regular expression cooperates with both CJK and the default punctuations:
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
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