-
Notifications
You must be signed in to change notification settings - Fork 11
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
"Go parent folder" feature only as a WebExtension/Firefox core feature #1
Comments
Hello @NicolasWeb, thank you much for the information. Hehe, ironic if after 17 years of asking, we converge to a solution a few months after I made the effort (1.5 month of week end work basically), but it was fun doing that anyway, and I am ready to help wherever I can ... inside or outside the engine as needed. Yes, I believe some of the code I wrote could be reused inside the engine itself .. I tried to be as similar to the product behavior, so in my strive to do so, I believe I made some choices in the objects used which should be close to what is used in the main code, and therefore make way for some reuse or acceleration. To be honest, this presumed easiness would be a side effect though, as the main reason why I tried (within limits of Web Extensions ..) to be as similar to the old "Sidebar bookmark search plus" and to the normal Bookmarks Sidebar is to be as less intrusive as possible, and as less habit changing as possible, for people like me who have the bookmarks sidebar open on their left all navigation time long, and search for bookmarks, reorganize, drag, drop tabs and links to new bookmarks in the same folder as their brothers and already existing ones .. "Bookmark search plus" was doing a very great job at that: thanks to XUL, it was a basic additional layer on top of the normal code as I get it .. therefore leaving the original behavior intact and adding what was needed. This is really why I tried to stick to that as close as possible, and if as a side effect this makes my code useful to truly solve the situation inside the engine other than by adding an extension, count me in to help. Cheers. |
@aaFn once again, it is great work you've done on "Bookmark search plus 2". As is it gives us most of the Go Parent Folder functionality that has been sorely missed. So it is useable out of the gate. Thanks for putting in those 1.5 months! It's already been agreed but, just to add another voice, I do think if the code you've written could be incorporated into the Firefox (FF) core: that'd probably be for the best. ( I note this is an easy view to take when one (i.e. me) doesn't have to do the work. :) ) For one thing when comparing the loading of the bookmark tree in the native "Bookmarks" manager Vs "Bookmark search plus 2", the former loads (in effect) instantly while the later loads with some delay (with my set of bookmarks about 1 second). No doubt the shortness of Bookmark search plus 2 delay has been hard won against various limitations around accessing the (so I'm now informed) sqlite DB. But presumably if you could work with the FF core code, you'll be able to leverage their native access to whatever form those bookmarks are stored and loaded. Perhaps, given your "count me in", you have to make a further decision about where you want to direct your efforts:
If it is the later then @NicolasWeb raises the first issue that arose when I started using the extension
I'd agree with that. Or perhaps some kind of option to show the parent folder(s) either: with opening the webpage; or without opening the wepage. E.g. Click for one action; Shift+Click for the other. Certainly when using the old Go Parent Folder I frequently searched for one bookmark in order to locate another (e.g. that I know is nearby in terms of folder grouping) - and in that case the searched for bookmark I therefore don't want to load. But that issue is separate to the issue of whether the extension should incorporated into the core. So, I suppose, if you let us know whether you want to also continue to improve "Bookmark search plus 2" I'd post it as a separate issue - if you answered in the affirmative. And, I'd like to emphasize, I don't think it would be bad choice to abandon effort on "Bookmark search plus 2" if you wanted to incorporate that code into the core. |
@JohnLukeBentley, so now I believe you made me understand that sentence from @NicolasWeb which I was not sure to interpret properly .. thank you much :-D
Sorry to be so slow gents ... as a matter of fact, you can do it :-) Simply, click on the search result on left or right of the "image+text", where the mouse pointer is an arrow, and not where it is a "hand with finger" ... and you'll get what you want.
By the way, the same behavior occurs for normal bookmarks, clicking outside the link/image simply highlights it with no action, clicking on it opens it in current tab, and right click = context menu .. On the second point, about delay before showing .. Yes I started to work in the add-on on an option to immediately show the tree while it is building, asynchronously loading it. I didn't really make it good for now as it was experimental, so you see no difference if you activate it in the add-on options panel (although it really is asynchronous behind the scene). Now, a dialog with a guy who has 80000 bookmarks (I am a micro-small player besides him with my 1800 bookmarks lol) on the add-on review page, made me envisage a number of alternatives to really make that effective. I'll try to work out something by end of next week that should visually get more responsive .. although that won't really improve real loading perfs by themselves, just visual feeling. As for the last question. I'll be practical =
I'd vote for #2 = continue BSP2, and at the same time contribute to core if there is community acceptance for me to do that. And when core is ready and there is no more value in BSP2, discontinue it. Thank you much for your both detailed feedback, and let me know what in the above possible improvements you would vow for, or any suggestion. |
That sounds like the right plan :) Therefore I've opened up new threads on the remaining two issues:
|
The bug 1420246 I opened on bugzilla to improve WebExtensions API and help go-parent-folder addons like migration will be discussed on March 27, 2018 meeting. I'm not sure to be able to join the meeting, and btw, I think that @aaFn have better skills than me to discuss that. (All needed info is in comment 1 to join the meeting) |
Hello @NicolasWeb , unfortunately I am currently in business travel in NY, given the schedule I understand that will be tomorrow around 13:55 to 14:00 NY time, and I will not be available at that moment. Or let me know if I understood wrong. |
Hi @aaFn, the order in which the bugs are checked might not be the one listed in the doc. May you be available at an other time from 13:00-14:00 ? The root bug of that one is bug 1420247, that list all API changes needed to port go-parent-folder to WebExtension. I originally opened that bug because of this discourse thread. |
@NicolasWeb , thanks for the history, this is useful. In terms of comments and contents, I can tell that bookmarks.show() represents some amount of code, but this is probably one of the best way to provide the functionality to extensions, and worth the investment given the big lack this represents to users (this is why I decided to go through the hassle of creating a new UI, mimicking as much the real one ..). However:
Therefore a WebExtension using it would need to be a popup, not a sidebar. Or something in the web page itself, but this would be quite limited I presume. It the menus.ContextType feature can be made to work from the library and from the bookmark sidebar (https://bugzilla.mozilla.org/show_bug.cgi?id=1419195), in particular from the search pane, that would enable the above bug to work from inside the native sidebar ... with the additional complexity that then the native sidebar should be able to show the bookmark pane at the same time than the search pane (which is the option I chose in BSP2, in line with the initial BSP extension from alice0775). Hope all the above makes sense :-) I am adding it to the bug. |
Ooops, my mistake, sorry. Thanks for the long answer :) |
Indeed, I believe there should be companion features .. I added some more on the bug itself to open the discussion https://bugzilla.mozilla.org/show_bug.cgi?id=1420246#c3 I will try to join at 13:30 NY time for 5 minutes, by phone. |
Caitlin agreed to move this bug as the first one for this meeting. I don't remember that much activity on the IRC channel during the meeting (but I may be wrong). If you can, you should definitely join by voice (so phone...) |
Ok, thanks @NicolasWeb , I will join by phone, just monitoring the IRC channel for keeping abreast |
Just sent a comment on the API bug, to try to say what my broken microphone didn't allow me to say during the meeting ;) |
I read it, well said. Thank you for the summary, this is a very good one, and well put. |
I'd be very much interested in this. Do you expect still any developments on Firefox' side? |
Hello @keunes , for now the feature request (bug) is still unassigned, so it should happen one day, but no idea of when at this stage. |
Bookmark search plus 2 or Show Parent Folder SeaMonkey 2.53 extension is badly needed! |
Hello @Romko-M, well for now I only do Firefox extensions. |
Another few years an Mozilla might actually get to it... |
Thank you for translating "Sidebar bookmark search plus" XUL extension (and its accompanying "Show parent folder" and "Go parent folder" ones) to WebExtension ! :-)
I would like to let you know about :
Do you think with the work you've done on Bookmark-search-plus-2 you could help one/both of these bugs to go forward/fixed please ? Or even implement a patch from the source code of your addon ?
I would love to be able to show parent folders while not having to open the web page of search result bookmark.
The text was updated successfully, but these errors were encountered: