From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sebastien Vauban" Subject: Re: How to attach data in clipboard directly? Date: Fri, 24 Jun 2011 16:03:03 +0200 Message-ID: <80pqm3499k.fsf@somewhere.org> References: <98495103-9583-4D34-A516-85B15DAD785F@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hi Carlos Russo, Carlos Russo wrote: > Hello, > > I often need to paste fragments of pictures/images to my org file. > > Typically, I manually paste the fragment to a file, and then use C-c C-a m > to attach that file to my org-file. This is rather tedious, because there > are a few steps and extra programs involved, and I guess there must be a > better way to do this. > > What I want is that emacs/orgmode understands the contents of the clipboard > and creates that file for me. For instance, if it detects that the contents > of the clipboard is an image or some sort of non-text format, emacs would > dump the clipboard data to a file, auto-generate a filename, guessing the > data type, and attach that file to my org-file via org-attach-attach. > > I'm thinking of a org-attach-clipboard sort of command, accessible via the > C-c C-a (org-attach) menu. > > Perhaps I'm demanding too much from emacs and org-mode, but hey, couldn't it > be done? It would be a cool feature... More important, _hasn't_ this been > done already? See Automatic screenshot insertion on Worg: http://orgmode.org/worg/org-hacks.html#sec-3-8 Best regards, Seb -- Sebastien Vauban