vimium icon indicating copy to clipboard operation
vimium copied to clipboard

macros!

Open varung opened this issue 8 years ago • 5 comments

Would it be possible to use "q" to record a macro, and invoke it, just like in vim?

varung avatar Aug 23 '16 20:08 varung

There was a similar request https://github.com/philc/vimium/issues/910

But in general I would definitly vote for thi feature and give a usecase: I want to automate a search of some url (written and text) on the page, visually select it and open it in the same or a new tab.

a-b avatar Oct 15 '16 20:10 a-b

Unfortunately, this is quite hard to implement. Because many things in Vimium happen asynchronously, we don't really know when one command ends, so we don't know when to launch the next one. Also, injecting keyevents into all of the different parts of the code base touched in your example, @a-b, would be a nightmare.

smblott-github avatar Oct 16 '16 05:10 smblott-github

Still, macros are really helpful and speed things up. Even a buggy implementation would be nice to have. Especially considering that current extensions for ff are going to die a "natural" death (thanks mozilla) and vimium seems to be the only ray of hope (#2425) on the horizon.

Current ff extensions also have some bugs when it comes to macro support (e.g. https://github.com/vimperator/vimperator-labs/issues/588), but it's a lot better than having nothing at all.

zetok avatar Apr 15 '17 21:04 zetok

@smblott-github about the asynchronicity problem, can't you let the user decide on a specific amount of time (interval) to wait before every action?

3m4r5 avatar Jan 25 '23 06:01 3m4r5

Perhaps make it possible to have each action only happen after a specific key is pressed (which would act as a "step to the next action").

Macros would be a fantastic addition!

Drowze avatar Dec 13 '23 14:12 Drowze