Commit graph

13 commits

Author SHA1 Message Date
lohhiiccc
5c3dec5d7e
typo(plugin/singlechar.vim): warnign -> warning
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-08-21 17:25:45 +02:00
lohhiiccc
0e688387b9
docs: comment improvement
-  plugin/singlechar.vim

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-08-21 17:25:16 +02:00
lohhiiccc
502bf47ce4 docs: update singlechar.vim comments
- Updated comments to specify toggling off the static cursor.
- Revised usage instructions for character insertion mappings to include line positioning options.
2025-08-21 16:57:52 +02:00
lohhiiccc
de7d77d1b4 feature: Add begin/end line singlechar insertion and static cursor option
- Introduce InsertCharBegin and InsertCharEnd commands
to insert a character at the beginning or end of the line (<Leader>I and <Leader>A).
- Add configuration variables for customizable mappings:
 - g:singlechar_map_insert_begin
 - g:singlechar_map_insert_end
- Implement GetInsertCommand() and DoSingleChar() in autoload/singlechar.vim
to support new modes and static cursor feature.
- Add g:singlechar_static_cursor option:
    when enabled, cursor returns to its original position after insertion.
2025-08-21 16:13:10 +02:00
lohhiiccc
9a44a23fc9 typo: strange and unnecessary "call" and fake news in README 2025-08-19 16:54:39 +02:00
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
lohhiiccc
64bcd7a1a0 feat: vim-repeat optional is now optional 2025-08-19 10:16:33 +02:00
lohhiiccc
629a204590 style: remove unused 'import' keyword to functions 2025-08-19 09:14:57 +02:00
lohhiiccc
398c5a41d3 feat: add vim-repeat support 2025-08-19 09:09:34 +02:00
lohhiiccc
be8e79da7c typo: git repo 2025-08-19 07:12:47 +02:00
lohhiiccc
d725e8cb8d feat: keycount
now the plugin can handle count before singleinsert
also work with macro
2025-08-19 06:10:08 +02:00
lohhiiccc
01133ebc86 feat: initial commit 2025-08-06 19:51:46 +02:00