Closed sudo-tee closed 1 year ago
neovim-0.10.0~ubuntu1+git202307111704-06694203e-9b397864c
WSL Windows 10
When using jump labels with t-T motion custon char_actions don't work. It does not happen with and f-F motions where custom char_actions works
t-T
char_actions
f-F
here is my config example
{ modes = { char = { label = { exclude = "hjkliardcn[]" }, jump_labels = true, char_actions = function(motion) return { ["n"] = "next", ["N"] = "prev", ["]"] = "next", ["["] = "prev", } end, }, }, }
If I copy the full char_actions from the default config even the ; , actions don't work anymore in the t-T motion
;
,
t
vt
n
/
If I do the same with a f-F motion it works properly.
Hitting the char in the char_actions should behave the same as the f-F motion
-- My `init.lua` is the one from LazyVim
After more testing, If after the motion t-T I hit the ; or the , then now the registered custom char_actions will start to work.
Should be fixed now! Thank you for reporting this.
Did you check docs and existing issues?
Neovim version (nvim -v)
neovim-0.10.0~ubuntu1+git202307111704-06694203e-9b397864c
Operating system/version
WSL Windows 10
Describe the bug
When using jump labels with
t-T
motion custonchar_actions
don't work. It does not happen with andf-F
motions where customchar_actions
workshere is my config example
If I copy the full char_actions from the default config even the
;
,
actions don't work anymore in thet-T
motionSteps To Reproduce
t
motion or avt
n
(I like to have it consistent with nvim/
search)If I do the same with a
f-F
motion it works properly.Expected Behavior
Hitting the char in the char_actions should behave the same as the
f-F
motionRepro