this post was submitted on 04 Jul 2023
24 points (100.0% liked)

Firefox

17301 readers
2 users here now

A place to discuss the news and latest developments on the open-source browser Firefox

founded 4 years ago
MODERATORS
 

I just went through a long list of keyboard shortcuts for Firefox. One that I didn't see that I would find useful is to press something like ⇧ Shift + ⌘ + C to copy the URL and then paste it into an email or message to send to someone. Does something like this exist?

top 23 comments
sorted by: hot top controversial new old
[–] [email protected] 19 points 1 year ago

Personally I just use Ctrl+L to quickly access to the URL Bar and then use Ctrl+C, I know is not exactly what you are searching but it works for me.

[–] [email protected] 12 points 1 year ago (1 children)

I don’t know a single shortcut, but does Ctrl-L Ctrl-C do what you want?

[–] plazman30 4 points 1 year ago
[–] [email protected] 8 points 1 year ago

Well yes... Ctrl+L then Ctrl+C gets it.

[–] WhoRoger 6 points 1 year ago (1 children)

Just F6 and then whatever your OS has to copy to clipboard.

[–] plazman30 3 points 1 year ago

Thank you. That worked!

[–] [email protected] 5 points 1 year ago* (last edited 1 year ago)

I do ⌘ + L to move focus to the url bar then ⌘ + C to copy

edit: apparently others have already said this and those comments just haven't gotten to my server yet

[–] [email protected] 2 points 1 year ago

Ctrl +L will move your cursor to the URL bar and select the address, and you can Ctrl+C from there. Should work on a Mac but may need to use cloverleaf button instead of ctrl.

[–] [email protected] 1 points 1 year ago (1 children)

I use Tridactyl for Vim bindings. It's just yy to yank the URL.

[–] plazman30 1 points 1 year ago (1 children)

I wish there was a plugin that made every text box a neovim instance.

[–] [email protected] 1 points 1 year ago

I use the following short script linked to a hotkey. I'm sure it would be easy to make it better, but it works for me.

#!/bin/bash

f=$(mktemp) &&
gvim --nofork +startinsert -S <(echo 'inoremap <C-Q> <Esc>ZZ') "$f" -c 'set wrap' -c 'set spell' &&
xsel < "$f"
sleep 0.5
xdotool type "$( xclip -o )"

I don't bother opening Vim in a terminal, because I just use this for quick edits. When in the text field, I hit my shortcut, gvim pops up in insert mode. I can type up whatever I want, then when I exit (allows for ctrl-q) it pastes what I wrote.

[–] [email protected] 1 points 1 year ago* (last edited 1 year ago)

You can do Ctrl+F6+C. Though the C should be after the F6.

[–] [email protected] 1 points 1 year ago (1 children)

Install Vimium C browser extension and then you press just 'y'-key twice. It means yank in vim.

[–] plazman30 1 points 1 year ago (1 children)

I wish there was browser extension that let me use vim keyboard binding inside of text boxes like this one.

[–] [email protected] 1 points 1 year ago

You can configure Qutebrowser for that. In Qutebrowser the insert mode isn't that intuitive as in bloated browsers, but you get used to it.

My Qutebrowser uses Vim keys for scrolling and browsing, but in insert mode I use Emacs keybinds. Best of both worlds (for me).

[–] [email protected] 1 points 1 year ago

Generic shortcuts - F6 and Ctrl+L both get the URL selected. Ctrl+C can copy - switch window and paste.

Alternatively, if the windows are both open you can drag the Padlock icon (certainly with Firefox) to your field.