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

Copy the page title to the clipboard #889

Closed
baskerville opened this issue Jul 25, 2013 · 13 comments
Closed

Copy the page title to the clipboard #889

baskerville opened this issue Jul 25, 2013 · 13 comments

Comments

@baskerville
Copy link

I'd like to be able to copy the page title to the clipboard.

@chowie
Copy link

chowie commented Jul 30, 2013

+1

@baskerville
Copy link
Author

Brought by 3841a0e.

@philc
Copy link
Owner

philc commented Aug 3, 2013

So that we can understand how this would be generally useful for a large chunk of vimium users, can you describe your use case for copying titles of pages?

@baskerville
Copy link
Author

I'm using it to fill the Subject field of emails which content is just an URL.

@baskerville
Copy link
Author

In fact I think there might be better tools for the given use case.

@jkeks
Copy link

jkeks commented Dec 14, 2013

copy title very needable thing.
yeah !

good for my russian

@vincentbernat
Copy link
Contributor

@philc What better tools are available for that? This seems an useful feature for me.

@smblott-github
Copy link
Collaborator

What better tools are available for that?

If you're feeling really geeky, then perhaps chromix. chromix list gives:

849 https://github.com/philc/vimium/issues/889 Copy the page title to the clipboard ? Issue #889 ? philc/vimium

This seems an useful feature for me.

It might be useful, but I'm not sure it's sufficiently useful to warrant a new command. An undiscoverable hack would be to have 2yy yank the title.

@mrmr1993
Copy link
Contributor

@vincentbernat you could create a bookmarklet with the address javascript:void(prompt("You may copy the page title below:", document.title));, trigger that from the Vomnibar, and copy the title from the resulting prompt.

A resolution to #1392 would allow custom commands — so you, rather than the project maintainers, get the final say in which functionality you can have — but that's not a high priority issue at the moment.

@vincentbernat
Copy link
Contributor

@mrmr1993 Well, I would need to use the mouse. Even if you can put the text somewhere else, copy/pasting it would be rather less convenient than a two key shortcut.

@smblott-github Using Linux, I am currently using xwininfo -root -children | grep Chromium. I could do an alias. But this seems more natural to put just that in Vimium.

@mrmr1993
Copy link
Contributor

I would need to use the mouse.

@vincentbernat you shouldn't need to. If you create the bookmarklet and give it a name like titleText, you should be able to access it with btitleText (the b will trigger bookmark selection in thr Vomnibar), maybe tab a few times to select the bookmarklet, and then ctrl-c when the prompt comes up. It's not ideal, but it should work.

@vincentbernat
Copy link
Contributor

@mrmr1993 Oh, yes, sorry, I missed the comma before document.title. That seems a good workaround. Thanks!

@ymyke
Copy link

ymyke commented Apr 29, 2024

@philc Here's my use case why I think something like yp or ys to yank the page title would be useful: I often send around links to web pages to friends or work colleagues. Most of the time, I want to send not only the link but also the page title, as it usually contains,e.g., the title of an article and helps recipients better understand what the link is about.

Today, I need to painstakingly select and copy an article's title manually. (And first need to scroll all the way up and then back to where I was reading.)

Edge allows me to copy link+title in one, however a) other browsers don't and b) I'd like to have the two things separate.

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

8 participants