Tree Tabs



  • I didn't know Tree Tabs was on the Opera add-ons site. This means we can add it as .crx extension. What I don't know is if Opera add-ons update automatically. I run one (and have run a couple) of these, but I can't recall if they ever updated themselves when installed in Vivaldi.



  • I think only officially downloaded extensions from chrome store gets updated automatically



  • @iAN-CooG I think so too, but in fact I don't know, there's a difference.



  • @kroppy said in Tree Tabs:

    @pina_coladas Sorry, for late response. Been busy (as you can tell) and tried to post only essentials, but now I can relax a bit more and respond to missed questions. About a year ago I've asked, on Opera's forum, how people would prefer tabs to be arranged, just in trees or in folders, but nobody seemed to be interested, so I decided to make just trees, because TST has the biggest user base on Firefox add-ons page and it will stop working with Firefox 57, so my decision was to make an alternative for all those folks that will cry for a big loss. Sorry about that. I can change that in the future, or make a branch extension, but take it as a grain of salt... Actually I still have a working prototype which was simpler to implement with folders+tabs structure, where tabs can be dropped only to folders, not to tabs. Structure is like folders and files in explorer, which I think is more logical.
    And heck I used Pano for years, it was my favorite extension for Firefox, until mozilla decided to ditch panorama tabs grouping, on which Pano relied.

    Thanks for the reply
    My vision isn't an either-or situation - why not combine folders/categories/whatever with tree tabs? The idea is to keep the whole tree tab concept but to add in an optional layer of sorting above. Say you're researching a subject, why not have all tabs and tab trees related to that subject isolated into their own group on the tab sidebar, a group that can be clearly labelled, collapsed and even unloaded with a click? We can already basically do this with tab trees, but the ability to explicitly label a broad category would make navigating my mazes of tab trees much easier. I guess there are a few ways one could go about this - a folder structure, where folders are displayed on the sidebar like blank parent tabs, or you could make some sort of tab group arrangement, with headers and horizontal separator lines that are displayed with the tabs in the sidebar. The latter is what I would prefer, though the folder idea might be more versatile.

    Am I asking for a re-implementation of panorama tab groups? Is this completely out of scope? Maybe... It would be awesome though. Just having more ability to visually organize tabs would be wonderful, however it is done. If the simplest way is just to throw in optional blank tab style folders I would be totally happy. And I bet lots of people would like that once they saw how it worked.

    Anyway, this is just something to think about. Don't let me distract you from the important stuff!



  • @luetage said in Tree Tabs:

    I didn't know Tree Tabs was on the Opera add-ons site. This means we can add it as .crx extension. What I don't know is if Opera add-ons update automatically. I run one (and have run a couple) of these, but I can't recall if they ever updated themselves when installed in Vivaldi.

    There is extra header in nex file and extra things in manifest.json for opera, if you simply change .nex to .crx, Vivaldi will not allow you to install. But you can try to unzip, and pack it back in Vivaldi. Then you will be able to install, but you still wont be able to update. Each extension has its private key assigned by Opera, they repack it, after that there is a small hash like id added to manifest.json file. Even I don't have access to the original key, as I said before they put it somewhere in the header of the file. It would be cool if it worked tho, I would not have to upload updates to google drive each time, and you would have auto updates. :cry:



  • @pina_coladas Yeah I know what you mean it would be a beast of a tabs manager.
    I have to finish what I have here first, it's still incomplete and buggy. There is no "simply" adding features at this point, it would mean a rewrite of half of the code. Might not be a bad idea, but getting to the point with what I've learned from my first vertical tabs extension which took me almost 2 years, this time it was only 3 months of hard work often till 4am, so maybe next fork may take less. Few months of allnighters and it can be done. Just kidding or maybe not ;) But I will need a little break before starting.



  • @kroppy Yeah, makes sense, but it's still nicer operating it packed instead of loading it unpacked. How about putting it on github so that we can just pull it with command line, instead of downloading it from google drive?



  • @kroppy lol sorry for the wild demands.
    I'd like to report that on the latest version tabs are sometimes shuffled out of order. I think this only happens when I close and restore vivaldi but I'm not sure.
    And when I drag and drop a URL onto the sidebar it loads the page in the tree tabs sidebar instead of loading normally with a new tab placed in the sidebar. I think I remember this working right in previous versions.



  • @pina_coladas said in Tree Tabs:

    @kroppy lol sorry for the wild demands.
    I'd like to report that on the latest version tabs are sometimes shuffled out of order. I think this only happens when I close and restore vivaldi but I'm not sure.
    And when I drag and drop a URL onto the sidebar it loads the page in the tree tabs sidebar instead of loading normally with a new tab placed in the sidebar. I think I remember this working right in previous versions.

    Drag&Drop does not load a page here. What is your Vivaldi version? But it does not load new tab either, I have to make it do so.
    As for shuffled tabs, yes it can happen, but only after restart. After dragging tabs around wait around 5 seconds before closing/restarting Vivaldi, otherwise some data might not get saved. I have a small fix for this, since in Firefox it was even slower. But I will not release it till somewhere next week, since I'm not at home.
    Sorry about that :disappointed_relieved:
    EDIT: by dragging tabs around I mean both, in sidepanel or in Vivaldi's TabBar. Each iteration of either requires 2 seconds to get to queue. Then it's saved in a millisecond. Moreover, once a minute there is an ulterior check if tabs were saved ok.



  • @luetage said in Tree Tabs:

    @kroppy Yeah, makes sense, but it's still nicer operating it packed instead of loading it unpacked. How about putting it on github so that we can just pull it with command line, instead of downloading it from google drive?

    Because I hate git? I use svn... Oh well, when I will have time I will put it there. But expect to some branches to appear from nowhere since I don't have much experience with git. ;)



  • @kroppy lol
    Then simply don't use git, it's not that important. On another note, the problem is not many people will find this thread on Vivaldi and most Vivaldi users won't go looking for extensions on the Opera add-ons site. But it seems your user base will be coming from Opera and Firefox. I noticed your original vertical tabs extension on opera too just now.



  • @kroppy said in Tree Tabs:

    Naaah, wait, I have to clarify it a little bit. I'm not modifying anything. Ctrl+tab is a global key in firefox, it's not getting the order that is inside of the sidebar, so it's switching tabs in the order you see on the tab bar at the top, not in order that is in the sidepanel

    Thank you very much! Now I understand.

    @kroppy said in Tree Tabs:

    TST has the biggest user base on Firefox add-ons page and it will stop working with Firefox 57, so my decision was to make an alternative for all those folks that will cry for a big loss

    You are a Savior! Thank you very much!



  • @kroppy It looks like WebExtensions API allows to switch tabs using Ctrl-Tab in the same order they are placed in the sidebar because that's exactly how ctrl-tab works in Sidebar tabs WebExtension written by Andy Mckay! I've just tried to drag tabs up and down and use ctrl-tab and it always worked perfectly!

    Addon is available on github and AMO:
    https://github.com/andymckay/sidebar-tabs
    https://addons.mozilla.org/en-US/firefox/addon/sidebar-tabs-webextension/

    I guess you can look at the source code and figure out how Andy managed to do that! I hope this helps.



  • @GHM113
    He does nothing with Ctrl+tab.
    All he does is move tabs along with his sidepanel's tabs when you drag them around. They move in syncro. In this way using Ctrl+Tab, tabs are switched in the same order that is present on top's tab bar and his panel. Sure, I can move tabs at the top as he does here, as I do in my original "Vertical tabs" extension for Opera where ctrl+tab works just like it should.... But how am I supposed to arrange them with trees? :disappointed_relieved:

    Let me explain the problem with a little example:
    This could be a tree structure inside of the sidepanel:
    a[ b[ c[1,2,3], 4,5,6,7 ], d[8,9] ], 10
    Lets say letters are collapsed (closed) parent tabs and numbers are children tabs inside of trees.

    And lets say I sorted them in the same way on top:
    a,b,c,1,2,3,4,5,6,7,d,8,9,10

    Let me confuse you a little more, but bare with me :dizzy_face:
    Now supposedly your active tab is a, when you press Ctrl+Tab, what would happen? You would end up in b instead of 10. Same goes on, if your active tab is b, you will end up in c, instead of d. This order would work only inside of a tree without any parents. If your active tab would be 1,2,4,5,6 or 8, Ctrl+tab would switch to the next correct tab which is on the same level.

    So as you can see, could it help? Sure, but only partially. When inside of a tree? Absolutely. But with any collapsed tree in between, nope, you would jump straight inside another tree.

    As things stand now, WebExtensions, can add own shortcuts, but can't replace original ones. Ctrl+Tab and Ctrl+Shift+Tab are Vivaldi/Opera/Firefox standard shortcuts, that cannot be replaced with Web extensions API. Probably for security reasons. I tried it already. Vivaldi at least lets you change shortcuts, so when Ctrl+Tab is freed I can "re assign" it with my own implementation of tabs switching. But to add even more salt to injury, Firefox don't have shortcut options... And before you mention TST, it has its own Ctrl+tab, since it uses old more flexible API, which is being ditched as we speak, which makes me angry as I was long time user before switching to Opera. Depressing isn't it? :cry:

    So in essence I can add a new shortcut, to switch tabs, but not Ctrl+tab. If you are okay with another combination I'm all ears ;)



  • @kroppy Thank you very much for such a detailed explanation! There is a bug on bugzilla about better keyboard shortcut support for WebExtensions, I left a comment there and tried to describe this problem:
    https://bugzilla.mozilla.org/show_bug.cgi?id=1215061#c41
    I hope this helps.

    Also, I personally think that moving tabs at the top synchronously with tabs in the sidebar like in Sidebar Tabs would be a better solution than the current implementation because it will allow to switch tabs one after another from top to bottom, I think it's more logical. But that's just my opinion!



  • @GHM113 said in Tree Tabs:

    There is a bug on bugzilla about better keyboard shortcut support for WebExtensions, I left a comment there and tried to describe this problem

    For now as things work this way and we don't have permissions to replace original keys. And as I explained before, sorting tabs in tabstrip will not help much as browser will switch tabs in order at the top instead of the trees depth and order...

    In next release which is almost ready to be published I made Alt+1 and Alt+2 shortcuts for next and previous tabs. Hope that it will be comfortable enough and will help. In Opera and Vivaldi you can change that manually afterwards to Ctrl+Tab/Ctrl+Shift+Tab in options under keyboard shortcuts, when you scroll down to Tree Tabs keys, although I don't recommend it.



  • @kroppy Thank you very much! I've just come across these two bugs, it looks like it will be possible to override built-in keyboard shortcuts by WebExtensions:
    https://bugzilla.mozilla.org/show_bug.cgi?id=1325692
    https://bugzilla.mozilla.org/show_bug.cgi?id=1320332
    However, related bugs are very low priority (P5).



  • @GHM113 Nice :)



  • Thought I'd share a theme here. Tried to appropriate it for Vivaldi's subtle/light themes (and my own highlight color).

    legacy_theme



  • Cool, I'm testing and it works nicely ;)
    It only miss an "audio icon" (probably not implemented yet).
    On latest stable, I see a glitch in the panel (due dark theme?)
    Other web panels are fine.

    0_1494536772882_Cattura.PNG


Log in to reply
 

Looks like your connection to Vivaldi Forum was lost, please wait while we try to reconnect.