qutebrowser / qutebrowser-extensions

Extension ideas (and at some point code) for qutebrowser
31 stars 1 forks source link

Yank decorator function #18

Open jgkamat opened 5 years ago

jgkamat commented 5 years ago

It would be very nice to have an api to provide advice to various functions, for example, for yank.

Eg:

This would also be useful for paste and/or opened links:

jgkamat commented 5 years ago

A paste decorator is not needed, you can use the redirection api:

https://gitlab.com/jgkamat/dotfiles/blob/c84cdc1dd8c9dbf9670ee599686fe87ba881e7ec/qutebrowser/.config/qutebrowser/pyconfig/redirectors.py

jgkamat commented 5 years ago

The yank function is pretty trivial, so I ended up just re-implementing it to get the functionality I wanted. I think that some sort of decorator api would still be pretty nice though.

http://gitlab.com/jgkamat/dotfiles/blob/531d216667d2195efa06fb4424b65eef73016202/qutebrowser/.config/qutebrowser/pyconfig/smartyank.py