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

Firefox

17953 readers
201 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?

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 1 points 1 year ago (2 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.