News for hackers. Stuff that matters.
Re:I've started using Firefox and can never go back to Chrome by spurgu on Sunday July 17, 2022 @03:18PM (#32130168)
I'd switch to Firefox in a heartbeat if I could somehow focus the URL bar with Cmd+D instead of Cmd+L (years of muscle memory with Alt+D on Linux previously).

Other browsers have a menu entry for this (File -> Open Location... in Chrome) so keyboard shortcuts can be switched in the Keyboard settings but Firefox doesn't have this. :|

I've tried various methods without success. If anyone had a working solution I'd be very grateful.

Re:I've started using Firefox and can never go back to Chrome by dan-robertson on Sunday July 17, 2022 @04:24PM (#32130857)
I think it may be possible to change browser shortcuts with a custom UserChrome.js but it is very much going down a nonstandard path.
Re:I've started using Firefox and can never go back to Chrome by spurgu on Thursday July 21, 2022 @05:08PM (#32185098)
I've tried various add-ons as well as modifying omni.ja (requires re-zipping it on Linux because zip is compiled with different flags on Mac making the omni.ja not work with FF).

This issue requires action from Mozilla, there are no user solutions as far as I'm aware.

Re:I've started using Firefox and can never go back to Chrome by bussierem on Sunday July 17, 2022 @03:51PM (#32130538)
I'm on Windows 10 with FF right now and Alt+D just worked for me, along with Cmd+L and F6 as other have said. I think your muscle memory should be just fine. Time to switch!
Re:I've started using Firefox and can never go back to Chrome by spurgu on Sunday July 17, 2022 @06:41PM (#32132211)
Time to switch to Windows? :o

Edit: I moved off Windows around 2005 followed by a decade of Linux and since then Mac.

Re:I've started using Firefox and can never go back to Chrome by bussierem on Sunday July 17, 2022 @07:57PM (#32132849)
Oh haha I assumed windows since you said you used to be on linux, and Mac doesn't have an Alt key! My mistake. Well at the very least it seems there are FF plugins that allow you to modify shortcuts, so you could probably rebind Option+D to the same control as Cmd+L/F6 and that might work.
Re:I've started using Firefox and can never go back to Chrome by siegecraft on Monday July 18, 2022 @01:08PM (#32140633)
You can do this with karabiner-elements (https://karabiner-elements.pqrs.org/) by remapping cmd-l to cmd-d. I believe you can even add a condition to make the mapping only active in firefox, but I haven't tested that.

Here is a rule that does it (only for left command, but that's probably sufficient): https://genesy.github.io/karabiner-complex-rules-generator/#...

Re:I've started using Firefox and can never go back to Chrome by mixmastamyk on Sunday July 17, 2022 @04:15PM (#32130782)
Option+D would be the analogue on Mac.

This might work: https://addons.mozilla.org/en-US/firefox/addon/shortkeys/

Re:I've started using Firefox and can never go back to Chrome by spurgu on Sunday July 17, 2022 @06:43PM (#32132223)
> Option+D would be the analogue on Mac.

For me it's "the key to the left of the spacebar" in terms of muscle memory, so Cmd on Mac.

Tried it, as well as modifying omni.ja... From the add-on page (I tried it):

> shortkeys cannot override Firefox default shortcuts

Re:I've started using Firefox and can never go back to Chrome by mixmastamyk on Saturday July 30, 2022 @10:10PM (#32292506)
Re:I've started using Firefox and can never go back to Chrome by kavothe on Sunday July 17, 2022 @03:33PM (#32130353)
Just press F6 and it'll focus into the URL bar
Re:I've started using Firefox and can never go back to Chrome by bl4ckcontact on Sunday July 17, 2022 @03:24PM (#32130236)
If I recall, F6 should get what you’re after.
Re:I've started using Firefox and can never go back to Chrome by spurgu on Sunday July 17, 2022 @03:36PM (#32130392)
As I said I want it specifically to be Cmd+D (instead of the default Cmd+L).
Re:I've started using Firefox and can never go back to Chrome by atwood22 on Sunday July 17, 2022 @04:00PM (#32130649)
It would be pretty trivial to write an extension that does that.
Re:I've started using Firefox and can never go back to Chrome by dan-robertson on Sunday July 17, 2022 @04:22PM (#32130844)
I don't think Firefox extensions can do this sort of thing.
Re:I've started using Firefox and can never go back to Chrome by atwood22 on Sunday July 17, 2022 @05:03PM (#32131235)
Yea you’re right. Looks like they removed the ability of extensions to do that back in 2017. Sad :(