Add dot repeat, safer undo, leader passthrough, and V selection#22
Add dot repeat, safer undo, leader passthrough, and V selection#22hamidi-dev wants to merge 2 commits into
Conversation
|
hey @hamidi-dev thx for the contribution. I prefer each PR to address a single specific issue, to allow easy rollback and troubleshooting. If possible, please split and send whatever you want out of this, and I will review and approve. Thanks! |
|
I'm really looking forward for "Pass through OpenCode leader" feature/fix. If I can help, let me know. Right now, it's akin to tmux |
|
@samuelmasuy it is already supported a few versions back :) please see LMK if you like it or find something missing please (you can reuse issue 21 or open a new one) |
|
@oribarilan @samuelmasuy sorry i haven't gotten the time yet to address @oribarilan requests. |
I should have been more precise: this is not working for me, unless I configured something incorrectly. [
"vimcode@git+https://github.com/oribarilan/vimcode.git#v0.13.0",
{
"modeToast": false,
"startMode": "normal",
"leader": "C-x",
},
]When I’m in normal mode and press |
|
@samuelmasuy vimcode doesn't require you to configure it, it uses the leader key you already have configured. |
I tried that too, here is a simple tui.json that reproduces for me: {
"$schema": "https://opencode.ai/tui.json",
"keybinds": {
"leader": "ctrl+x"
},
"plugin": [
[
"vimcode@git+https://github.com/oribarilan/vimcode.git#v0.13.0",
{
"modeToast": false,
"startMode": "normal"
}
]
]
}
|
Summary
.repeat for command-based changes likedw,dd,x, andr{char}TabVto select the current line and enter visual modeFixed
dw..now repeats the delete-word changeuafterdw..walks back each repeated delete3dwnow restores in one undo step<leader>e,<leader>l, and<leader>nare no longer swallowed by vimcodeTesting
bun testbunx biome ci --error-on-warnings .