philc / vimium

The hacker's browser.
https://chrome.google.com/webstore/detail/vimium/dbepggeogbaibhgnhhndojpepiihcmeb
MIT License
23.11k stars 2.48k forks source link

[Feature Request] Yank all tabs in window #4222

Open mcp292 opened 1 year ago

mcp292 commented 1 year ago

It would be very convenient to be able to grab all the tab urls in one window with ya. Ideally they are copied to clipboard, separated by newlines.

I would use this for emails, taking notes, adding to TODO lists and calendars, etc..

decadent commented 1 year ago

As a heads-up, there's the addon ‘Copy Selected Links to Clipboard’ for Firefox, and presumably analogous extensions for Chrome, that can copy multiple tabs. Plus, at least this addon allows configuring various formats for the links, so one could paste them in email or a chat appropriately displayed as the title instead of the url.

gdh1995 commented 1 year ago

You may also try my customized version of Vimium, named Vimium C (https://github.com/gdh1995/vimium-c), and it supports a new command of copyWindowInfo:

# copy all tabs in a current window into lines, in a format of `title: URL`
map Ct copyWindowInfo type="window"
# copy all tabs in a current window into lines, in a format of `URL`
map Ct copyWindowInfo type="window" format="${url}"
# copy all tabs in a current window into lines, in a format of `title`
map Ct copyWindowInfo type="window" format="${title}"
# copy all tabs in a current window into lines, in a format of `title`
map Ct copyWindowInfo type="window" format="[${title}](${url})"