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

Add WIP session URL save/load #4766

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Conversation

bovine3dom
Copy link
Member

@bovine3dom bovine3dom commented Sep 10, 2023

Todo:

  • get rid of new tabs in each new window
  • work out what to do with the old window
  • docs

Edit: fixes #4767 and #2941

return config.set("sessions", namestr, sessionstr)
}

//#background
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Background/async? What if there are lots of tabs or there is heavy CPU pressure and Firefox is responding slow? Will the user get any feedback while session is being saved? When the session is saved?

sessions[tab.windowId].push(tab.url)
}
let sessionstr = JSON.stringify(sessions)
return config.set("sessions", namestr, sessionstr)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[docs] I assume existing session with same name will get overwritten without warning.
[docs] [command?]: How to list sessions?

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.

Add session management functionality (save/restore named lists of tabs)
2 participants