-
-
Notifications
You must be signed in to change notification settings - Fork 958
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(list): implement insert-mode like word deletion logic
Previous implementation couldn't remove ending symbols like '-'. This update introduces more refined word detection logic, similar to Neovim's insert mode behavior. Now, word boundaries are detected between characters of different classes, just as in other insert mode. For example, in a Japanese sentence, <C-w> works as follows: 今日はいい天気です 今日はいい天気 今日はいい 今日 This behavior stems from recognizing '気' as an 'ideograph' and 'で' as 'hiragana' - different character classes. I've adopted Neovim's character classification to achieve similar functionality. Moreover, this implementation ensures at least one character is always removed. Consequently, the issue of no characters being deleted, as observed in previous implementations, should no longer occur.
- Loading branch information
1 parent
07d6dc2
commit 9efc9c7
Showing
2 changed files
with
141 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters