-
Notifications
You must be signed in to change notification settings - Fork 965
feat: keyboard shortcut to export all bookmarks #25827
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
feat: keyboard shortcut to export all bookmarks #25827
Conversation
Current behaviorScreencast.from.10-06-2024.10.58.15.AM.webm |
Nice work @hamirmahal! If you want to show a FilePicker this seems like a good place to start looking: (it sounds like you can pass |
With this pull requestI recommend watching this at 2x speed. Screencast.from.10-17-2024.03.54.15.PM.webm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is looking great! Few more changes and I think I can kick off CI
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is looking great - I'm kicking of CI
Would you mind rebasing? I just tried to run CI on latest but the rebase failed for conflicts |
I can try! The last time I did, brave/brave-browser#40509 happened. What are the instructions to rebase properly? Is it just following the steps in https://github.com/brave/brave-browser/wiki/Chromium-rebases, exactly? I think I rebased both repositories last time, which may have caused issues. |
Ah yeah so in the
I think those instructions are for rebasing brave on top of the latest Chromium, which is done by our rebase team. You shouldn't need to do anything in the Chromium repo (at |
Thanks for the detailed instructions.
Should I
|
Hmm yeah, maybe do a if you do a
what does it output? I'm wondering whether its using your fork as the remote, rather than
Afterwards, do a fetch
and try (maybe I was wrong about the
and then
|
I'm taking a look at the other commands now... |
Use
|
No worries! I think it'd be nice if users could export bookmarks from any page without having to navigate to How much work would it be to add a shortcut to the WebUI itself? I can look into enabling the command only if the active page is chrome://bookmarks. I'm not sure if there are any downsides to that implementation. |
I think the approach is fine for now - I think if you add the shortcut you won't be too surprised if it works from anywhere (and I don't expect a huge number of people will add one). The other advantage of this way is it will show up in the list of quick commands (i.e if you press Ctrl+Space) |
Nice work @hamirmahal! I remember you were keen on shortcuts a while back and wow - you dug in for sure! Since this isn't a bound shortcut by default, it should be fine to be a global shortcut (ex: not restricted to a Web UI). Like @fallaciousreasoning is saying, it'll show in the quick commands which is kind of a nice touch @hamirmahal a good rule of thumb when doing browser dev when you're not sure about something: check what our existing code does or what Chromium does. I don't think we have any page specific shortcuts and I doubt Chromium does either. If that's the case, then you're safe having it as a global one. I would only change if there was a good example that Chromium had (ex: they set a precedent) |
Thanks @bsclifton! Speaking of checking existing code, I saw That seems to have a lot of the functionality we want, but it looks like it's not in this repository, so maybe we want to reproduce the function in its entirety in |
@hamirmahal yeah that seems like a reasonable approach to me (just taking what that function does). Nice work 😄 |
the default filepath for bookmark export. This changes the default bookmark filename from `YYYY_MM_DD_brave_browser_bookmarks.html` to `bookmarks_MM_DD_YY.html`
looks good - kicked off CI again 🤞 |
#26113 looks good! Merging 😄 Thanks @hamirmahal! |
Released in v1.75.9 |
You're welcome, @bsclifton! |
Great work @hamirmahal! |
Thanks @fallaciousreasoning! |
Glad we got it in eventually, sorry for the endless rebase-CI cycles :/ Looks like it made it into todays Nightly! |
Resolves brave/brave-browser#41412
Allow users to create a keyboard shortcut that exports all bookmarks.
This is an action that some users, like myself, do very often. It would improve the user experience (UX) if there was a way to do this with one keyboard shortcut, as opposed to several, successive clicks.
CI: #26113
Submitter Checklist:
QA/Yes
orQA/No
;release-notes/include
orrelease-notes/exclude
;OS/...
) to the associated issuenpm run test -- brave_browser_tests
,npm run test -- brave_unit_tests
wikinpm run presubmit
wiki,npm run gn_check
,npm run tslint
git rebase master
(if needed)Reviewer Checklist:
gn
After-merge Checklist:
changes has landed on
Test Plan: