Skip to content

VS Code extension for word-by-word cursor movement in Japanese and Chinese sentences

License

Notifications You must be signed in to change notification settings

yutotnh/word-divider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Word Divider

Format Lint Publish Test CodeQL

Create package Dependency Review Dev Containers

Enable cursor movement in Japanese and Chinese sentences on a word-by-word basis.

examples

Features

Command Keybinding for Windows and Linux Keybinding for Mac Command to be overwritten Description
wordDivider.cursorWordLeft Ctrl+LeftArrow cursorWordLeft Move cursor to the previous word
wordDivider.cursorWordEndRight Ctrl+RightArrow cursorWordEndRight Move cursor to the next word
wordDivider.cursorWordLeftSelect Ctrl+Shift+LeftArrow cursorWordLeftSelect Select the previous word
wordDivider.cursorWordEndRightSelect Ctrl+Shift+RightArrow cursorWordEndRightSelect Select the next word
wordDivider.deleteWordLeft Ctrl+Backspace Backspace deleteWordLeft Remove the previous word
wordDivider.deleteWordEndRight Ctrl+Delete Delete deleteWordRight Remove the next word

Differences from Japanese Word Handler

This extension is inspired by sgryjp/japanese-word-handler.

Japanese Word Handler move based on character type, while Word Divider move based on word recognition.

Using Word Handler

examples

Using Japanese Word Handler

While Word Divider divides 拡張機能 into 拡張 and 機能, and 使うと into 使う and , we can see that the Japanese Word Handler treats 拡張機能 as 拡張機能 and 使うと as 使 and .

Japanese Word Handler examples

Extension Settings

  • wordDivider.locale: The locale to use for word divider
    • auto: Use VS Code's configured display language (default)
    • ja: Japanese
    • zh-CN: Simplified Chinese
    • zh-TW: Traditional Chinese

Known Issues

  • Cannot double click to select a word. #50
  • Cannot move word by word in SOURCE CONTROL message box. #48

Release Notes

See CHANGELOG.md