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

Include groups in list exporting #139

Merged
merged 3 commits into from
Apr 30, 2024
Merged

Include groups in list exporting #139

merged 3 commits into from
Apr 30, 2024

Conversation

yorkxin
Copy link
Owner

@yorkxin yorkxin commented Apr 29, 2024

Summary

  • When exporting list of tabs, if tabs are grouped, the Markdown code will also be grouped by tab groups along with their names.
  • Tab Grouping is available on Google Chrome and Microsoft Edge. On browsers that don't support this feature such as Firefox, a flattened list will be generated, as it used to be.

Example:

- [Page 0 - Copy as Markdown](http://localhost:5566/0.html)
- Group 1
  - [Page 1 - Copy as Markdown](http://localhost:5566/1.html)
  - [Page 2 - Copy as Markdown](http://localhost:5566/2.html)
- [Page 3 - Copy as Markdown](http://localhost:5566/3.html)
- Untitled green group
  - [Page 4 - Copy as Markdown](http://localhost:5566/4.html)
- [Page 5 - Copy as Markdown](http://localhost:5566/5.html)

Where Group 1 is the custom name of the group, and Untitled green group is a group that has never been named by the user.

For Task List, the group will also become a task:

- [ ] [Page 0 - Copy as Markdown](http://localhost:5566/0.html)
- [ ] Group 1
  - [ ] [Page 1 - Copy as Markdown](http://localhost:5566/1.html)
  - [ ] [Page 2 - Copy as Markdown](http://localhost:5566/2.html)
- [ ] [Page 3 - Copy as Markdown](http://localhost:5566/3.html)
- [ ] Untitled green group
  - [ ] [Page 4 - Copy as Markdown](http://localhost:5566/4.html)
- [ ] [Page 5 - Copy as Markdown](http://localhost:5566/5.html)

Closes #123

Tests

  • Chrome stable (macOS)
  • Firefox stable (macOS)
  • Chrome stable (Windows)
  • Firefox stable (Windows)

Optional:

  • Chrome beta (macOS)
  • Firefox beta (macOS)
  • Chrome beta (Windows)
  • Firefox beta (Windows)

src/background.js Outdated Show resolved Hide resolved
@yorkxin yorkxin merged commit d13342f into master Apr 30, 2024
1 check passed
@yorkxin yorkxin deleted the tab-groups branch April 30, 2024 01:28
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

Successfully merging this pull request may close these issues.

Copy Chrome tab groups
1 participant