conjure

:neovim:+:clj: https://github.com/Olical/conjure - If you're enjoying Conjure and want to say thanks: https://github.com/users/Olical/sponsorship :smile: (alt https://conjure.fun/discord)
dharrigan 2021-02-03T20:51:29.053300Z

Has anyone got vim repeat by tpope working with the mappings?

dharrigan 2021-02-03T20:51:48.053800Z

I would love to be able to do ,ee to eval a form, then move to a new form and simply do . to repeat the eval.

dharrigan 2021-02-03T20:51:56.054Z

I think it can be done

dharrigan 2021-02-03T20:52:24.054400Z

needs this setting silent! call repeat#set("\<Plug>MyWonderfulMap", v:count) with the Plug being replace with the suitable command

dharrigan 2021-02-03T20:58:50.054700Z

Hmm, I don't think Conjure exposes <Plug>commands?

dharrigan 2021-02-03T21:05:34.054900Z

It works!

dharrigan 2021-02-03T21:06:42.055400Z

So, you can do this silent! call repeat#set(",ee", v:count)

dharrigan 2021-02-03T21:07:01.055900Z

and if you type in ,ee then move to another form and simply press ., it will invoke ,ee for you!

dharrigan 2021-02-03T21:07:21.056200Z

already 66% more efficient!

dharrigan 2021-02-03T21:08:41.056600Z

You can more... silent! call repeat#set(",ece", v:count)

dharrigan 2021-02-03T21:08:44.056800Z

and so on...

dharrigan 2021-02-03T21:09:38.057600Z

Hey @olical how about putting these into the build of Conjure so they are mapped automatically to repeat? Some other plugins do that on behalf of the user 🙂

dharrigan 2021-02-03T21:09:43.057800Z

<https://github.com/tpope/vim-repeat>

dharrigan 2021-02-03T21:09:52.058Z

The following plugins support repeat.vim:...

Olical 2021-02-03T21:13:07.058300Z

Ohhh nice!

Olical 2021-02-03T21:13:28.058800Z

I didn't realise there was integration work for it, but I'm happy to since it won't be too hard from my perspective (I think?)

dharrigan 2021-02-03T21:13:42.059100Z

I'll raise an issue on github

Olical 2021-02-03T21:13:49.059300Z

That'll be great! Thank you!

Olical 2021-02-03T21:13:55.059600Z

Hopefully I get some OSS time this weekend

dharrigan 2021-02-03T21:14:16.060100Z

silent! call repeat#set(",ee", v:count)
silent! call repeat#set(",ece", v:count)
silent! call repeat#set(",er", v:count)
silent! call repeat#set(",ecr", v:count)
silent! call repeat#set(",ew", v:count)
silent! call repeat#set(",ewc", v:count)
silent! call repeat#set(",eb", v:count)
silent! call repeat#set(",gd", v:count)

dharrigan 2021-02-03T21:14:17.060300Z

🙂

Olical 2021-02-03T21:14:32.060700Z

Nice! I'll hook that up for you automatically asap

dharrigan 2021-02-03T21:14:42.061Z

w00t. no hurry

2021-02-03T21:21:13.061100Z