Noitidart / Profilist

ff-addon: Profile manager for Australis
https://addons.mozilla.org/en-US/firefox/addon/profilist/?src=github
34 stars 1 forks source link

Move tabs or windows to another profile #36

Open cheater opened 8 years ago

cheater commented 8 years ago

Add functionality to move tabs or windows to another firefox profile.

Background: I'm looking for an addon that lets me move tabs or windows from one profile to another. Currently the best I can do is start up both profiles and use Copy Urls Expert; but that's messy and it isn't conductive to quickly editing things as it actually has to load the websites etc. A solution that just edits the tab lists in both profiles would be much cooler. I think Profilist would be well enhanced by that - or perhaps a stand-alone application would be better.

Issues with using Copy Urls Expert: 1. sluggish 2. loses history information 3. requires both profiles to be running (=resource hog) 4. doesn't give me a good overview of what's where.

Example scenarios: E.g. say I have two ff profiles, Work and Games, and while i was in Games I had to open a few pages which would normally belong in Work but I didn't have the time to start up the Work ff profile so I opened the pages in Games. Now I would like to move them to Work.

Another example: I created a profile for a specific project of mine, but I have so many references etc opened up that it's all sluggish and I would like to split the ff profile into a few different ones (e.g. one for front-end, one for backend, one for help file).

UI: I imagine a sort of user interface that can be navigated by keyboard and allows me to see several profiles side by side (or in a tabbed interface) and allows me to ctrl-x and ctrl-v tabs, or windows. The list of tabs for each profile looks like the one in session restore, the top level is windows and under each window there are tabs. Perhaps tab tree structure could be preserved. Search functionality should be available (search titles of tabs/windows for regex and only display matching results). You should be able to drag and drop tabs as well as drag em around inside the window. When pasting the new tabs will show up after (under) the tab currently selected. All actions should be possible from the keyboard. The user interface would ideally be accessible without running firefox. It will ideally work even if the profiles are currently running (I am ok with that requiring that the plugin is installed as this can be automated so that all profiles, even existing ones, install the plugin at next run).

It was suggested that this be split off to another project.

cheater commented 8 years ago

BTW, bear in mind cookies might need to be moved as well. For example when moving a gmail tab. But in the beginning I'm fine without cookies.

cheater commented 8 years ago

Here's a related feature request in Tab Mix Plus: http://tmp.garyr.net/forum/viewtopic.php?f=4&t=19420 :rolleyes: :)

Noitidart commented 8 years ago

Fantastic idea! Thanks for this post. Because I don't want to clutter Profilist, I like the LInux mentality, do one thing and do it good. I'll plan for a seperate addon for this. I was hoping to make an addon that adds to context menu "Open Link in Profile". I think this feature of moving tabs between profiels would be a great featre in that addon.

But note because profiles are different processes, the window/tabs cannot be moved, it will have to be re-opened in that other profile. So the states (like dynamic javascript html) will not be there, it will be like loading the page anew in the other profiel.

Yoric commented 8 years ago

Well, definitely interested in this feature. When you have a prototype, don't hesitate to blog about it :)

Noitidart commented 8 years ago

Oooh I read your replies. Moving cookies along with it is a great idea. This will be a bit involved maybe. Could be great!

Hey Yoric! :D

cheater commented 8 years ago

The caveat is understandable. But I hope all the history information etc can be preserved, as well as cookies (this last part could be optional due to privacy concerns). When reopening the tab, maybe you could even replicate the exact request headers that have been used in the original tab.

cheater commented 8 years ago

Maybe the name could be something obvious, like Tab In Profile?