yorkxin / copy-as-markdown

A browser extension to copy tabs and links as Markdown
MIT License
546 stars 83 forks source link

Copy Chrome tab groups #123

Closed NomarCub closed 6 months ago

NomarCub commented 1 year ago

Chrome tab groups provide some nice organization. They could be exported something like this with a sub list hierarchy:

* group name
    * [link](url)
    * [link2](url)
* other group name
    * [link](url)
    * [link](url)

or alternatively with headings:

# group name

* [link](url)
* [link2](url)

# other group name

* [link](url)
* [link](url)

There are plugins that already access tab groups, like Save Tabs, so there's probably some API you could use.

yorkxin commented 7 months ago

Thanks for the suggestion. Indeed there are APIs available: https://developer.chrome.com/docs/extensions/reference/api/tabGroups

yorkxin commented 6 months ago

Hi @NomarCub , as of version 2.16.0, "Copy Tabs as X" will now be wrapped in groups when they exist. Please try it out!

NomarCub commented 6 months ago

It works well, thank you!