-
Notifications
You must be signed in to change notification settings - Fork 101
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 Firefox and Cloud Sync (GitHub Gist) support #291
Comments
I was wondering whether it would be possible to synchronise tab groups using Firefox Sync, too. My idea was to sync them as bookmarks (loosing history, but that is OK for me), potentially storing the group names in tags (allows having the same tab belong to multiple groups) or using bookmark folders (allowing just one group per tab, if that is more desirable from a design / implementation perspective). |
+1 |
Hi all, I have been trying to implement this for a long time, but there is a restriction:
If you have a lot of tabs, the data size will be more than 100KB. And then the problem, the solution of which adds only more problems ... |
Is there any way to make us see the total of all tabs in Firefox sync? Because when I move tabs to groups, on my other device I only see tabs which are in the open group, tabs from other groups are not shown and hence inaccessible. As a use case, I use groups at work to group my work-related tabs into logical parts. When I get home and want to come back to some of my work tabs, I only see the active group tabs in my synced tabs, and other tabs are only accessible from my work device. |
I understand that synchronizing all tabs seems difficult, but it would be nice if at least we can synchronize groups and settings |
The solution is to allow backup of groups to bookmarks as in #328, that way you have 100KB data in firefox sync to store configuration. |
Hi all! I added option to export groups to bookmarks, you can sync groups/bookmarks this way |
Sorry, maybe I'm dumb, but I don't understand how I should use the new bookmark export to resolve syncing use cases. Can I set it up so that all my groups are periodically automatically bookmarked? Or can I only do it manually for each group? |
@hluposti you're quite right in that, this is not an automatic process.
Not currently, but maybe the author is working on some magic here :)
Currently this is the case. The current implementation in #328 is not fully automatic. It can backup automatically, but not restore automatically. So it's not really a sync though it can kind of be used that way in a manual process. To implement sync functionality using #328, the author would need to use the functionality implemented in #328 a little bit differently. One potential design approach would be to create a "SimpleTabGroupsSync" BookMark Folder, which STG would then automatically write all current STG Window groups. Second he would need to read this group if it exists on startup to make sure that the sync'ed bookmarks and the the current STG window groups match. To do this requires solving several hard computer science problems, something similar to a "cache invalidation" problem. He would have to keep a hash of every item in each STG window group to make sure existing items are updated and only new items are created, and vice versa. Or he can just start from scratch each time. It gets into the weeds quickly to try to implement this. He could potentially calculate a hash on the STGSync Bookmarks folder, or perhaps access a last sync'ed timestamp to know when he needs to update groups in STG from newly sync'ed bookmarks. The point is that this new implementation would require a private "STGSync BookMark Folder" which wouldn't be meant for any manual user interaction, which is how the current sync feature in #328 is implemented. In other words, the facility to backup window groups using firefox sync has been accomplished via bookmarks (which works around firefox sync data size limitations), |
Ah yes I didn't see that one! But how to import automatically from backup to new browser? |
Yes of course, I see that one. But I think this feature request is asking for automatic import from bookmark folders to groups. In other works automatic synchronization of window groups between browsers by using Firefox bookmarks to transfer the data. Computer 1 --> Browser 1 --> STG Window Groups >>>> Automatic STG BookMarks Folder Backup |
Automatic import is not yet possible due to technical reasons of the browser. |
What about a one click loading of some specific backup file from the drop down menu? The steps could be:
|
Automatically save the file is only possible in the download folder. And adding it to Dropbox is unlikely. |
Any savvy user could do a symlink or a small script to copy that automatically to Dropbox/Syncthing/etc |
I have a question about the backup to bookmark folder - it seems that when i close tabs from a tab group, they still remain in the backup and accumulate (i believe with a separator in between them). This might be the intended behavior for backups, but I tend to use this as a "sync" feature between browsers on different PCs. Therefore, it would be nice to have the option that the tabs are saved to the bookmarks "as is" - thereby replacing all the bookmarks in the previous backup. In other words, when i close a tab in the tab group, it will no longer appear in the backup, and this feature would operate as a true sync between browsers. Is this possible as an option? |
@lx0n2acl Yes, I thought to make this functionality customizable, but for some reason I didn’t)) in the near future I will make an option in the settings for the controllability of this behavior (bookmarks without tabs that are closed) |
Hi Drive4ik, sorry if I reopen this old discussion. |
I have been using Workona now. They just - finally - launched their plugin to Firefox. Works great so far, allows you to create groups much in the same manner as STG and automatically syncs across all your machines. I had some sync problems with it on Chrome, but now on Firefox they are gone. |
Hi @JackSlaterIV Bookmark sync already implemented and then you can change auto backup folder name manually create backup of all groups Then bookmarks will be synchronized between devices (if bookmark synchronization is enabled in the settings in the browser) |
@Drive4ik |
@JackSlaterIV |
Hello @Drive4ik Thanks for the extension. Firefox will never have, and shouldn't have MB sync limits for the reasons you mentioned in terms of sync start-complete delays. I do have a solution suggestion. A majority of the users are not having 3000+ tabs, and those who do should really look into using bookmarks, for the rest (and the majority of us) the following would work. Apply simple lookup of current tab numbers and use firefox sync if they are under a safe margin (let's say 500). If they are above the safe margin, show a little alert on the top of the simple tab group window that says "Tabs Exceed Firefox Sync limits". The sync issue is whats keeping me from adopting the plugin fully as others offer syncing. The groups really are most useful as a medium term management solution that is ideal for a desk to laptop workflow. Let me know if I can help with UX suggestions, I am mostly a designer. |
Hi everyone. 👋 So, what you need:
Keep in mind the condition for deleting a tab: If a tab was deleted on the first profile/computer, synchronization occurred, on another profile/computer it will be deleted if it is not active or was active before synchronization on the first computer. I hope I explained it clearly) I mean, if the tab was deleted and not opened on another computer, it will be deleted there automatically. Please ask what is unclear, and test only the synchronization functionality. Possible errors with logs should be sent by mail [email protected] with your github name. In this thread you can attach screenshots/videos of errors or incorrect behavior. So that I can connect logs in the mail and description in this thread. I hope for understanding. Thanks a lot !!! (unzip it) stg-sync-test-5.5.2.zip |
@Shirkit you need to unzip first |
It errored when I tried it out. Since I stopped using Firefox and moved into Zen in this meantime, it took a long time to test this out, I'm sorry. I've just sent to you the full log in the email you provided. Running on Zen 1.0.1-a.19 (Firefox 132.0.1) (64-bit) under Windows 11. Gonna try on my Linux machine. Here's a paste with just the error log part: https://pastebin.com/LCSq4CMs |
I've the same issue. Firefox 132.0.2 - Windows 11 |
same error, tested with both fine-grained and classic with all possible permissions |
created a workaround to get it started, need more testing to see if it fully works
lmk if this works for anyone else |
Cool, it's working. Thanks! |
@Drive4ik I believe it mostly works with the exception of the synchronization script not automatically creating the gist and instead throwing an error. other than that it's basically perfect also another question, if you have one pc (B) which last had a group open before it was closed, and you have another PC (A) and update that same synced group with 2 new tabs. What happens when you reopen the browser on B? |
Hey, everybody! Sorry for the long absence. I see you've dealt with the error yourself)))) Thanks @hentdisr! I have completely refactor the logic of sending and receiving Gist, and the gistId is no longer saved. It was the reason for this error, there are too many situations to keep track of to not have this error. Since gistId is no longer saved, synchronization will take ~100-300 ms longer, but I think it's not a problem. @vvirtues If I understand you correctly, when you open browser B, new 2 tabs will be created after synchronization. You can put the latest test version on a test Firefox profile and check how the addon behaves. I am open to any discussion on this topic. |
@mrjianlucah Hi! Thank you very much for your help! It was my mistake, it should be fixed in this version: |
@Drive4ik thanks a lot! I've two questions:
thanks for your awesome work! |
@mrjianlucah Thanks to you!
|
May I ask what your use case is for this? Personally I am not that interested in syncing too often, but more in being able to sync them across computers. I mainly use my laptop and my desktop. My ideal way would be:
One thing that is a problem is that the tabs are stored in separate folders with the same name "Simple Tab Groups" . I would love to be able to use the same (so that changes on one location get automatically picked up in the other) but if this is not possible then at least being able to set the name would be nice (like if I could set "STG desktop" and "STG laptop"). |
@karypid The button to synchronize is in the settings and in the popup itself. You can synchronize manually within the github api limit (100 changes per hour). Regarding synchronicity when idle or locked, that's a good idea. I read, I don't remember where, that Firefox has problems with that. It can't detect computer downtime or something like that. Just checked the API and it doesn't work as I expect, it always returns “active” instead of “locked” or “idle”. I'll do some more searching on this topic for solutions. |
@vvirtues Hi! Please, can you enable debug mode (in settings at the bottom), replicate this error, stop debugging and send logs to my email? |
sent |
The automatic backup of the tab groups is a very useful feature, but currently it is only usable in a single PC configuration, due to the fact that the backups are saved in the Downloads folder. Would it be possible to add the same functionality using Firefox Sync?
The text was updated successfully, but these errors were encountered: