Feature/begin end #3

Merged
lohhiiccc merged 6 commits from feature/begin-end into main 2025-08-21 15:26:13 +00:00

6 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
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