Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* copy & pasting to also include hyperlinks
@ 2014-04-20 12:24 Sharon Kimble
  2014-04-21 13:31 ` Alexander Baier
  2014-05-11 10:39 ` Gareth Smith
  0 siblings, 2 replies; 3+ messages in thread
From: Sharon Kimble @ 2014-04-20 12:24 UTC (permalink / raw)
  To: info-gnus-english


[-- Attachment #1.1: Type: text/plain, Size: 460 bytes --]

I'm subscribed to several sites using their rss feed, and occasionally I like
to save the content by highlighting everything and then copy and pasting it to
an org document. It works but it doesn't get any hyperlinks, so how else can I
get it please?

Thanks
Sharon.
-- 
A taste of linux = http://www.sharons.org.uk
my git repo = https://bitbucket.org/boudiccas/dots
TGmeds = http://www.tgmeds.org.uk
Debian testing, Fluxbox 1.3.5, emacs 24.4.50.7

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: copy & pasting to also include hyperlinks
  2014-04-20 12:24 copy & pasting to also include hyperlinks Sharon Kimble
@ 2014-04-21 13:31 ` Alexander Baier
  2014-05-11 10:39 ` Gareth Smith
  1 sibling, 0 replies; 3+ messages in thread
From: Alexander Baier @ 2014-04-21 13:31 UTC (permalink / raw)
  To: info-gnus-english

On 2014-04-20 14:24 Sharon Kimble wrote:
> I'm subscribed to several sites using their rss feed, and occasionally
> I like to save the content by highlighting everything and then copy
> and pasting it to an org document. It works but it doesn't get any
> hyperlinks, so how else can I get it please?
>
> Thanks
> Sharon.

Using C-u g will show you the original article, thus allowing you to
copy the hyperlinks. A major drawback is, that this is ASCII-7 encoding
(at least I think so) which will screw up umlauts and such things.

Another thing to take a look at, might be text properties. The actual
link of a hyperlink displayed in gnus should be in the text properties.

HTH,
--
 Alexander Baier



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: copy & pasting to also include hyperlinks
  2014-04-20 12:24 copy & pasting to also include hyperlinks Sharon Kimble
  2014-04-21 13:31 ` Alexander Baier
@ 2014-05-11 10:39 ` Gareth Smith
  1 sibling, 0 replies; 3+ messages in thread
From: Gareth Smith @ 2014-05-11 10:39 UTC (permalink / raw)
  To: info-gnus-english

Sharon Kimble <boudiccas@talktalk.net> writes:
> I'm subscribed to several sites using their rss feed, and occasionally
> I like to save the content by highlighting everything and then copy
> and pasting it to an org document.

I see your question has been answered properly elsewhere, but just in
case it's helpful to think around the edge of the topic:

I never copy-paste emails into org, because I find it more convenient to
use org-capture to automatically create hyperlinks to the emails
themselves instead. Of course, it may be that you know about org-capture
and have excellent reasons why it doesn't suit your use-case here.
However, just in case you haven't heard about this feature before; I'll
explain my setup below, and you can read about the full thing here:
(info "(org) Capture")

My setup looks a bit like this:

--8<---------------cut here---------------start------------->8---
(global-set-key "\C-cc" 'org-capture)

(setq org-capture-templates
      '(("t" "Todo" entry (file "~/Documents/org/Inbox.org")
         "* TODO %? \n  %a\n  %K" 
         )
        ("s" "Spam" item (file+olp "~/Documents/org/home.org" "HomeIT" "Spam")
        "%a\n  %K" :immediate-finish t)))
--8<---------------cut here---------------end--------------->8---

With this setup, I can hit C-c c t when I'm reading any email, and it'll
create an entry in my Inbox.org file which contains a hyperlink to the
email I was reading when I hit C-c c. It'll pop up a window into which I
can type a note (which will be included in the entry), and when I'm done
I hit C-c C-c to go back to the email where I started. The magic that
inserts the hyperlink to the email you just came from is the "%a".

There's a second template in the code above, so that when I hit C-c c s,
I'll get an entry under the Spam heading in my home.org file. I use this
as a reminder to update my filters if something slips through to my
inbox when it shouldn't have. The interesting thing about this template
is the ":immediate-finish" clause. This means I don't get a pop-up
window into which I might type a note. The entry is just inserted
automatically, and I immediately go back to reading my email.

I massively recommend using org-capture. I've described it here as a
feature for capturing hyperlinks to emails (it integrates with gnus very
nicely), but it can actually capture a link to anything that can be
linked to. Web pages, emails, code files, particular lines of code
files, IRC logs, git commits -- the lot.

G



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-05-11 10:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-20 12:24 copy & pasting to also include hyperlinks Sharon Kimble
2014-04-21 13:31 ` Alexander Baier
2014-05-11 10:39 ` Gareth Smith

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).