Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Yank decorator function #18

Open
jgkamat opened this issue Jan 27, 2019 · 2 comments
Open

Yank decorator function #18

jgkamat opened this issue Jan 27, 2019 · 2 comments

Comments

@jgkamat
Copy link
Member

jgkamat commented Jan 27, 2019

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

Eg:

  • https://github.com/qutebrowser/qutebrowser -> [email protected]:qutebrowser/qutebrowser.git
  • https://github.com/qutebrowser/qutebrowser-extensions/issues/18 -> #18 (or qutebrowser/qutebrowser-extensions#18)
  • https://github.com/qutebrowser/qutebrowser -> github.com/qutebrowser/qutebrowser
  • http://no-www.org/ -> http://www.no-www.org/
  • https://badssl.com/ -> http://badssl.com/
  • https://github.com/qutebrowser/qutebrowser -> https://com.github/qutebrowser/qutebrowser

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

  • https://www.reddit.com/ -> https://www.old.reddit.com/
  • https://www.facebook.com/ -> https://mbasic.facebook.com/
  • https://twitter.com/ -> https://mobile.twitter.com/
  • https://github.com/qutebrowser/qutebrowser -> https://gitlab.com/qutebrowser/qutebrowser
@jgkamat jgkamat changed the title Yank advice Yank decorator function Jan 27, 2019
@jgkamat
Copy link
Member Author

jgkamat commented Mar 23, 2019

@jgkamat
Copy link
Member Author

jgkamat commented Apr 13, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant