Skip to content

Feat/column width control#49

Merged
kibi2 merged 5 commits intomainfrom
feat/column-width-control
Apr 4, 2026
Merged

Feat/column width control#49
kibi2 merged 5 commits intomainfrom
feat/column-width-control

Conversation

@kibi2
Copy link
Copy Markdown
Owner

@kibi2 kibi2 commented Apr 4, 2026

Add support for '.' repeat in column width operations

This PR adds support for repeating column width operations using the . command.

Changes

  • Integrated with tpope/vim-repeat via repeat#set()
  • Ensured repeat works correctly with count (e.g. 10<leader>t+.)
  • Fixed issues with invalid ranges by clearing range using <C-u>
  • Converted repeat command to termcodes to ensure proper key replay

Notes

  • vim-repeat is optional; repeat support is enabled automatically if available
  • No default keymaps are defined to avoid conflicts; users can configure their own mappings

Example

10<leader>t+ " increase width by 10
. " repeat last operation

kibi2 added 4 commits April 3, 2026 16:00
- enable '.' repeat for =c, >c, <c commands via repeat#set
- treat vim-repeat as optional dependency
- add safe fallback when repeat#set is unavailable
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 4, 2026

Codecov Report

❌ Patch coverage is 94.62366% with 5 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
lua/tirenvi/init.lua 96.07% 2 Missing ⚠️
lua/tirenvi/core/block.lua 91.66% 1 Missing ⚠️
lua/tirenvi/editor/commands.lua 91.66% 1 Missing ⚠️
lua/tirenvi/health.lua 75.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

- use repeat#set for repeat support
- escape <C-u> to clear range
- convert to termcodes for proper key replay
@kibi2 kibi2 force-pushed the feat/column-width-control branch from a35461b to a706eba Compare April 4, 2026 05:11
@kibi2 kibi2 merged commit ffce8a3 into main Apr 4, 2026
3 checks passed
@kibi2 kibi2 deleted the feat/column-width-control branch April 4, 2026 05:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant