Discussion:
Ways to copy long URL conveniently
Yubin Ruan
2018-02-28 10:09:44 UTC
Permalink
Hi, do you guys have any ways to conveniently copy a long URL which spans
across several lines and have + prefixes before it. Currently in the pager I
have to copy each part separatly in order to advoid copying the + prefix.

Hmm...is this question sound too trivial...?

Yubin
--
Yubin Ruan <http://fastdrivers.org>
Ken Moffat
2018-02-28 10:28:18 UTC
Permalink
Post by Yubin Ruan
Hi, do you guys have any ways to conveniently copy a long URL which spans
across several lines and have + prefixes before it. Currently in the pager I
have to copy each part separatly in order to advoid copying the + prefix.
I have the following in my ~/.muttrc:

# turn off '+' in continuations, which breaks pasting urls.
set markers=no

Apparently it is in the manual, but I got it from a post on this
list years ago.

ĸen
--
Truth, in front of her huge walk-in wardrobe, selected black leather
boots with stiletto heels for such a barefaced truth.
- Unseen Academicals
Alexander Dahl
2018-02-28 12:15:47 UTC
Permalink
Hei hei,
Post by Ken Moffat
Post by Yubin Ruan
Hi, do you guys have any ways to conveniently copy a long URL which spans
across several lines and have + prefixes before it. Currently in the pager I
have to copy each part separatly in order to advoid copying the + prefix.
# turn off '+' in continuations, which breaks pasting urls.
set markers=no
Apparently it is in the manual, but I got it from a post on this
list years ago.
Thanks for that. I had the same problem and I found it annoying for
years, without ever searching for a solution.

(My mutt runs on a server in a screen session, I connect through ssh.
Firefox removes newlines, if you paste a multiline URL, so now this
works for me.)

:-)
Alex
--
»With the first link, the chain is forged. The first speech censured,
the first thought forbidden, the first freedom denied, chains us all
irrevocably.« (Jean-Luc Picard, quoting Judge Aaron Satie)
*** GnuPG-FP: C28E E6B9 0263 95CF 8FAF 08FA 34AD CD00 7221 5CC6 ***
Darac Marjal
2018-02-28 10:31:43 UTC
Permalink
Post by Yubin Ruan
Hi, do you guys have any ways to conveniently copy a long URL which spans
across several lines and have + prefixes before it. Currently in the pager I
have to copy each part separatly in order to advoid copying the + prefix.
Hmm...is this question sound too trivial...?
The easy way:
set markers = no

The fancy way:
Use a terminal that supports "OSC 8", and patch mutt to wrap URLs in
the appropriate escape sequences. See
https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda
for more details.
Post by Yubin Ruan
Yubin
--
Yubin Ruan <http://fastdrivers.org>
--
For more information, please reread.
Mart Lubbers
2018-02-28 10:46:18 UTC
Permalink
Post by Yubin Ruan
Post by Yubin Ruan
Hi, do you guys have any ways to conveniently copy a long URL which
spans
Post by Yubin Ruan
across several lines and have + prefixes before it. Currently in the
pager I
Post by Yubin Ruan
have to copy each part separatly in order to advoid copying the +
prefix.
Post by Yubin Ruan
Hmm...is this question sound too trivial...?
set markers = no
Use a terminal that supports "OSC 8", and patch mutt to wrap URLs in
the appropriate escape sequences. See
https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda
for more details.
Post by Yubin Ruan
Yubin
--
Yubin Ruan <http://fastdrivers.org>
Another option is to use a helper program. I usually pipe the message to urlview which is configured to feed it to xclip or xsel.

Best,
Mart
Loading...