Feature/unicode input #2

Merged
lohhiiccc merged 3 commits from feature/unicode-input into main 2025-08-19 14:55:32 +00:00
lohhiiccc commented 2025-08-19 14:50:03 +00:00 (Migrated from github.com)

This pull request adds Unicode support and input validation to the vim-singlechar plugin, enhancing its capability to insert a wider range of characters and improving user feedback when multiple characters are entered. It also introduces new configuration options for warning messages, updates documentation, and refines command handling for character insertion.

Feature enhancements

  • Added support for inserting Unicode characters by using strcharpart and strchars in InsertChar, and updated documentation to reflect Unicode support. [1] [2] [3]
  • Implemented warn users if more than one character is entered, with customizable warning messages. [1] [2] [3] [4]

Configuration and documentation

  • Introduced new global variables: g:singlechar_keylen_warning (to enable/disable warnings) and g:singlechar_warning_message (to customize the warning), with sensible defaults and documentation updates. [1] [2] [3]

Command improvements

  • Updated InsertCharAt and InsertCharAfter commands to accept an optional character argument, enabling direct insertion of specified characters including Unicode.

General documentation updates

  • Revised README.md and doc/singlechar.txt to describe new features, configuration options, and Unicode support. [1] [2] [3] [4]
This pull request adds Unicode support and input validation to the `vim-singlechar` plugin, enhancing its capability to insert a wider range of characters and improving user feedback when multiple characters are entered. It also introduces new configuration options for warning messages, updates documentation, and refines command handling for character insertion. ### Feature enhancements * Added support for inserting Unicode characters by using `strcharpart` and `strchars` in `InsertChar`, and updated documentation to reflect Unicode support. [[1]](diffhunk://#diff-7ecf286a65a62ff3716162098c9f142a2ece2f58768579b1fe7529e4f001a4f9L3-R38) [[2]](diffhunk://#diff-e0fe54db06837563528336cff6510d2c38d7437e1eb254a9f443f189cba6936dL30-R30) [[3]](diffhunk://#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5L3-R13) * Implemented warn users if more than one character is entered, with customizable warning messages. [[1]](diffhunk://#diff-7ecf286a65a62ff3716162098c9f142a2ece2f58768579b1fe7529e4f001a4f9L3-R38) [[2]](diffhunk://#diff-4a58eccd238093bbbbb0ad525d91c47b7da452db1b1a12cc682962ef1f08714fR38-R45) [[3]](diffhunk://#diff-e0fe54db06837563528336cff6510d2c38d7437e1eb254a9f443f189cba6936dR114-R119) [[4]](diffhunk://#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5R75-R81) ### Configuration and documentation * Introduced new global variables: `g:singlechar_keylen_warning` (to enable/disable warnings) and `g:singlechar_warning_message` (to customize the warning), with sensible defaults and documentation updates. [[1]](diffhunk://#diff-4a58eccd238093bbbbb0ad525d91c47b7da452db1b1a12cc682962ef1f08714fR38-R45) [[2]](diffhunk://#diff-e0fe54db06837563528336cff6510d2c38d7437e1eb254a9f443f189cba6936dR114-R119) [[3]](diffhunk://#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5R75-R81) ### Command improvements * Updated `InsertCharAt` and `InsertCharAfter` commands to accept an optional character argument, enabling direct insertion of specified characters including Unicode. ### General documentation updates * Revised `README.md` and `doc/singlechar.txt` to describe new features, configuration options, and Unicode support. [[1]](diffhunk://#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5L3-R13) [[2]](diffhunk://#diff-e0fe54db06837563528336cff6510d2c38d7437e1eb254a9f443f189cba6936dL30-R30) [[3]](diffhunk://#diff-e0fe54db06837563528336cff6510d2c38d7437e1eb254a9f443f189cba6936dR114-R119) [[4]](diffhunk://#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5R75-R81)
Sign in to join this conversation.
No description provided.