[Feature Request] Reflow Chinese text
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 15.2k
- Forks
- 1.5k
- Avg merge
- 3d 18h
- Merged PRs (30d)
- 6
Description
FEATURE REQUEST
What happened:
Usually there is no space in Chinese texts, so gq won't work for Chinese. In real Vim with :set formatoptions+=m, vim can break at multi-byte characters to let gq work for Chinese (and other Asian languages).
What did you expect to happen:
Use an option to enable multi-byte character reflow, just like vim.
Thx!
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
Start by locating the implementation of gq and any existing handling for Vim's formatoptions; compare the requested m behavior for Chinese and other multibyte text. Done means an option enables reflow at multibyte characters and gq works for text without spaces, with behavior matching Vim where applicable.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, vscode
- Domain
- internationalization, tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100