vim_cubed icon indicating copy to clipboard operation
vim_cubed copied to clipboard

Include Stop and Start Spin commands

Open holdenmh1214 opened this issue 5 years ago • 4 comments

Saw Zach was playing around with nim and decided to go down a 4hr rabbit hole to learn about it and add this feature.

Don't hate me

New commands: Stop Start Slower Faster

This commit addresses issue #3

holdenmh1214 avatar Apr 27 '20 03:04 holdenmh1214

HOLDEN!! long time no see man. yeah i am really into nim these days. funny enough, this is a feature i plan on adding directly to paravim -- custom commands like :whatever that run arbitrary code you specify. you did it without needing to modify paravim, impressive. you hacked a hack. more accurately, a hack²

oakes avatar Apr 27 '20 14:04 oakes

ZACH!!!! Yeah man it has been awhile since our fight club days. I was just starting to dive into Rust until I checked your repos. Nim is interesting. Yeah, this hack seemed like the simplest way of adding those features without diving very far into paravim.

This block made it possible: `pararules.query(vim.session, vim.rules.getVim).mode

I then added a log to see what the modes were for each state of paravim. Once I had those, the rest was really easy.

holdenmh1214 avatar Apr 27 '20 14:04 holdenmh1214

@oakes I added a "hammer_time" command.

Now when you enter the command "stop" and and then enter "hammer_time" the background image will change to MC Hammer. Because why not

holdenmh1214 avatar Apr 29 '20 04:04 holdenmh1214

image

oakes avatar Apr 30 '20 00:04 oakes