kofigumbs / multi

Create custom, lightweight macOS apps from websites
GNU General Public License v3.0
1.29k stars 40 forks source link

[Question] Tabs & Sessions #122

Closed voltechs closed 1 year ago

voltechs commented 1 year ago

Hello!

Pretty slick project. I was introduced to it via the Nativefier project. Chief complaint with Nativefier is the size of the resulting applications, all using up about 200mb. Gets a little out of hand when you've got 10+ different applications.

I had some questions about Multi after taking it for a spin. I'm a software engineer, and one of the apps I like to have is one for the AWS Console. Unfortunately, Multi does not seem to remember my session, so I have to log in between launches. Am I doing something wrong here?

Additionally, I was wondering if it's possible to allow multiple tabs in the same window? For me, I like to use tabs, but would find a huge performance boost if I all my tabs could be grouped by "app". That is to say, I'd have an AWS Console "Multi" App, and could have multiple tabs in that app. Then I could have another app, let's say, Github.com for example, also with multiple tabs.

Then I could launch/close those as needed. Basically just a fancy "chromeless" WebKit wrapper that remembers sessions/state, including tabs etc. Is that something that is or could be within scope of Multi, and if not, is there something else out there that would fit this use-case?

kofigumbs commented 1 year ago

Thanks for checking out the project!

Multi remembers sessions between launches and supports multiple tabs in the same window. All tabs in a window use the same session though. It sounds like you are interested in each tab have a separate session so that you can access separate accounts at once. That feature has been requested in #9.

voltechs commented 1 year ago

Hi @kofigumbs thanks for the fast reply! Luckily (?) I'm not actually looking for support for different sessions between tabs, but I could see how some might want that. That's great to hear that the functionality I'm looking for exists!

Just to be clear, I can make a (for example) AWS Console "Multi" app, and then hit ⌘T to make a new tab of the same session?

Also, what do I need to do to enable session persistence between launches, because currently it has me logging in each time to AWS when I launch the multi app.

Cheers!

Update: You're correct, it does persist sessions; I had a URL that was forcing a login landing page each time. I still haven't found out how to enable ⌘T for a new tab yet, though 😇 Update 2: Seems now my remaining issue (⌘T) is a duplicate of this one: https://github.com/kofigumbs/multi/issues/57

voltechs commented 1 year ago

I'm back! I should note, I did all the above on macOS Mojave. I just tried this on my work computer, which is running macOS Ventura, and if you show the tab bar in any given app (at least in so far as ones created with only one "multi" tab via the JSON config from the beginning), a "+" does show up on the far right, and when clicked it does create a new tab from the same page (see screengrab).

Screenshot 2023-08-01 at 11 08 40

kofigumbs commented 1 year ago

I think I disabled the "+" button in 3.0 since the behavior (always re-opening the first tab) didn't make much sense. Once there's a workflow for dynamic tabs, it would make sense to connect it to that button.

I think between the two issues linked above, we've tackled both of your questions. I'm going to close this issues, but still feel free to reply if you have other questions.