Commit graph

22 commits

Author SHA1 Message Date
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
d26ea1e5a6 docs: Add new commands and mappings for begin/end-of-line insertion
- Document new commands: :InsertCharBegin [count] [char], :InsertCharEnd [count] [char]
- Update mappings to support begin/end-of-line insertion with [count]
- Add configuration options for <Leader>I and <Leader>A mappings
- Document static cursor option (g:singlechar_static_cursor)
- Clarify usage and mapping examples for all new features
2025-08-21 17:18:08 +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
5393ae0555 feat: enhance character insertion mappings in README
- Add new mappings for character insertion:
  - `[count]<Leader>I(char)` - Insert a character at the beginning of the line
  - `[count]<Leader>A(char)` - Insert a character at the end of the line
- Update insertion commands to reflect new functionalities:
  - `:InsertCharBegin (count) [char]` - Insert a character at the beginning of the line
  - `:InsertCharEnd (count) [char]` - Insert a character at the end of the line
- Introduce an option for a static cursor during insertion actions.
2025-08-21 16:51:03 +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
50dc5abfa9
Merge pull request #2 from lohhiiccc/feature/unicode-input
Feature/unicode input
2025-08-19 16:55:31 +02:00
lohhiiccc
9a44a23fc9 typo: strange and unnecessary "call" and fake news in README 2025-08-19 16:54:39 +02:00
lohhiiccc
2970edd2ab doc: update docs 2025-08-19 16:45:17 +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
b5f7e3bc89
Merge pull request #1 from lohhiiccc/feature/vim-repeat
Feature/vim repeat
2025-08-19 11:21:53 +02:00
lohhiiccc
cd5475bb20 typo(README): Licens -> License 2025-08-19 11:19:55 +02:00
lohhiiccc
8596234462 docs: add vim-repeat integration details to README and help
- Update README.md with instructions and notes for vim-repeat (`.`) support
- Update doc/singlechar.txt: add requirements, usage, and tips for vim-repeat, including installation and dot-repeat behavior
2025-08-19 11:17:17 +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
7808edb315 docs: add main help page 2025-08-19 06:44:12 +02:00
lohhiiccc
ff830bae38 doc: add README 2025-08-19 06:27:28 +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
lohhiiccc
2cdd4d8f3b
Initial commit 2025-08-06 19:49:37 +02:00