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

What is the difference between "y" and "yf" ? #2778

Closed
rackstraw opened this issue Nov 7, 2017 · 6 comments
Closed

What is the difference between "y" and "yf" ? #2778

rackstraw opened this issue Nov 7, 2017 · 6 comments

Comments

@rackstraw
Copy link

v enter visual mode; use p/P to paste-and-go, use y to yank
yf copy a link url to the clipboard

  1. Isn't "yank" the same as "copy to the clipboard"?
  2. Doesn't visual mode have to be used in either case to select a link?

Any other examples?

@smblott-github
Copy link
Collaborator

yf uses link-hints mode to select a link on the page (and yank it).

Your other example uses visual mode to select any text on the page then either yank it, or paste and go.

@rackstraw
Copy link
Author

rackstraw commented Nov 8, 2017 via email

@smblott-github
Copy link
Collaborator

yF is not a command. F is a command. When you type yF, Vimium sees that there is no command bound to yF, then checks just F on its own.

@MikiGrit
Copy link

Will "yf" actually copy link to clipboard? When I type "Ctrl+v" in any editor, the clipboard does not contain the link...

@mrmr1993
Copy link
Contributor

If you're using Firefox, we don't currently support copy/paste, because the APIs are broken. See #2601 for more info.

If you're using Chrome, this is a new issue and we should investigate it.

@MikiGrit
Copy link

Oh... thanks, that explains it. (yes, I'm using Firefox :) )

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

4 participants