Is there a keyboard shortcut to copy the URL of the page you're on?

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?

24 points · 23 comments · view on lemmy.world

23 Comments

Xirup@lemmy.one · 19 pts · 3y

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.

DirigibleProtein@aussie.zone · 12 pts · 3y (1 reply)

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

plazman30@lemmy.world · 4 pts · 3y

It does!

BendyLemmy@lemmy.ml · 8 pts · 3y

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

WhoRoger@lemmy.world · 6 pts · 3y (1 reply)

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

plazman30@lemmy.world · 3 pts · 3y

Thank you. That worked!

yoast@notdigg.com · 5 pts · 3y

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

CreativeImpasse@lemmy.world · 4 pts · 3y
[ removed ]
igorlogius@lemmy.world · 4 pts · 3y (1 reply)
[ removed ]
plazman30@lemmy.world · 1 pts · 3y

This looks quite interesting

somedaysoon@lemmy.world · 3 pts · 3y
[ removed ]
ptz@dubvee.org · 2 pts · 3y

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.

sin_free_for_00_days@lemmy.one · 1 pts · 3y (2 replies)

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

plazman30@lemmy.world · 1 pts · 3y (1 reply)

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

sin_free_for_00_days@lemmy.one · 1 pts · 3y

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.

BendyLemmy@lemmy.ml · 1 pts · 3y

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.

Sami@lemmy.zip · 1 pts · 3y

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

Nuuskis@sopuli.xyz · 1 pts · 3y (2 replies)

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

plazman30@lemmy.world · 1 pts · 3y (1 reply)

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

Nuuskis@sopuli.xyz · 1 pts · 3y

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).

WhoRoger@lemmy.world · 1 pts · 3y (2 replies)
[ removed ]
plazman30@lemmy.world · 1 pts · 3y (1 reply)

I think you replied to the wrong message.

WhoRoger@lemmy.world · 1 pts · 3y

Yes Jerboa messed and mixed up the threads.