Commit graph

2 commits

Author SHA1 Message Date
lohhiiccc
e3b5bdd392 feat: improve InsertChar handling for Unicode and input validation
- Use strcharpart for Unicode character support
- Add warning message if more than one character is entered
- Refactor InsertChar to clarify variable names and flow
- Make user input handling robust against accidental multi-char input
- Add global config for warning message
- Update commands and mappings for flexible argument handling
2025-08-19 16:34:43 +02:00
lohhiiccc
8463cdcf4b refactor: migrate core logic to autoload/singlechar.vim
- Move main functions (InsertChar, RepeatSingleChar) to autoload/singlechar.vim, using Vim9script and export for modularity
- Refactor plugin/singlechar.vim to import autoload module and update commands/mappings accordingly
- Prepare for improved maintainability and compatibility with vim-repeat
2025-08-19 11:05:27 +02:00