vim-jukit icon indicating copy to clipboard operation
vim-jukit copied to clipboard

add user commands to allow for remapping

Open mbpowers opened this issue 2 years ago • 2 comments

This exposes the rest of the private commands as user commands to allow for user remapping. I didn't test all the commands but I tried to set the correct nargs and pass <q-args> when necessary. Not sure if this is the ideal way to expose them but it was enough to get it working.

mbpowers avatar Aug 05 '23 04:08 mbpowers

Hi, thanks for the contribution. I'm not sure why it's necessary to add these as commands though, you should just be able to remap each of them directly, no?

luk400 avatar Oct 22 '23 16:10 luk400

Ah yep! Not sure at this point, but I remember having trouble with remapping the functions, but it works fine now. I'm used to plugins exposing commands so that might've thrown me for a loop but the example in the readme is quite clear, but its been a while so I'm not sure.

That aside, I think these could still be useful for anyone opting not to use keybinds, as it reduces the amount of typing necessary to call a function. I only use keybinds myself though.

mbpowers avatar Oct 26 '23 20:10 mbpowers