-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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 new keyboard shortcuts for things not already customizable #39489
Comments
For example, it'd be useful if I could do |
It'd also be nice if I could add a shortcut to clear all downloads, maybe with |
I think it'd be really helpful if user-created custom keyboard shortcuts could be page-specific. |
@hamirmahal we have brave://settings/system/shortcuts - are there things we're missing? I guess check the page and see if the above actions are registered on the page |
@bsclifton it looks like there aren't any preexisting shortcuts for clearing all downloads and exporting bookmarks. I think it'd be really useful for users if we could add custom keyboard shortcuts for arbitrary browser actions. |
Hey @hamirmahal! Thanks, for you feedback - I agree that it'd be pretty handy, but unfortunately it will probably be quite a bit of work to expose everything the browser can do as a command 🫤 If you wanted to add a command for exporting bookmarks and/or clearing downloads we'd definitely accept a PR - otherwise it's probably going to be a while until we can get to it though. |
Hello, @fallaciousreasoning! You're welcome. I'm interested in what the process looks like for adding a new keyboard shortcut. What parts of the code base would someone need to modify to do that? |
This PR here adds a few new commands: Basically there are a few different bits:
After this the commands should be available from the command palette and
The hardest parts will probably be:
Happy to lend a hand if you need it! |
Thanks for offering to help! I did some rebasing after making some changes locally and some commands like I don't mind re-cloning the repository for a fresh slate, but I'd like to avoid re-downloading 30 GB for |
Hmm, that's weird, normally sync is pretty consistent. (completely understand not wanting to reclone Chromium - its massive)! Can you try:
followed by an
|
Hmm... I should be running
It errors with a similar message. The working tree was clean in
Full output
|
Yeah that sounds right @hamirmahal. Hmm, could you try manually resetting Chromium (in your And in your brave folder
and then try to init again? |
Ah, the |
Hmm... That doesn't seem to work, either. Full output
|
okay, that seems super weird - it seems to think you're on the right revision but the If you check, does that folder/file exist? I checked on my local and its there. Interestingly it looks like it might be failing to apply patches. Do you get the same error running
(in src/brave) |
It looks like that file doesn't exist.
And I get a similar error when doing
|
Okay that's interesting - it sounds like your Chromium checkout might be in a weird state. I just had a look at the My Chromium is at Additionally, what is the Chromium version you have in One last debugging idea - what if you do a I wonder how it got into this state? Normally |
git show --stat
"config": {
"projects": {
"chrome": {
"dir": "src",
"tag": "128.0.6613.40",
"repository": {
"url": "https://github.com/brave/chromium"
}
},
"depot_tools": {
"dir": "vendor/depot_tools",
"repository": {
"url": "https://chromium.googlesource.com/chromium/tools/depot_tools.git"
}
}
}
},
Just as a sanity check, are the
|
@hamirmahal I had a talk to a few other people and it sounds like maybe something went wrong with the initial checkout? Not sure what to do at this point except try recloning. (the remote URLs all look good to me) |
Platforms
Linux, macOS, Windows
Description
It'd be nice if users could create custom keyboard shortcuts to do specific things in Brave.
The text was updated successfully, but these errors were encountered: