emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Marcelo de Moraes Serpa <celoserpa@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: [Orgmode] Automatic screenshot insertion
Date: Sun, 15 Jan 2012 13:31:02 -0600	[thread overview]
Message-ID: <CACHMzOFV+b-6zzCB-ReD115XeKtRgRpMWw4DU_oLWEiYkRtMXw@mail.gmail.com> (raw)
In-Reply-To: <20120115121048.GH3129@x201>

[-- Attachment #1: Type: text/plain, Size: 1726 bytes --]

Awesome! I will try that out.

What about hooking into the pasting event and check when it's an image (or
whatever file you want) ?

Thanks,

- Marcelo.

On Sun, Jan 15, 2012 at 6:10 AM, Russell Adams <RLAdams@adamsinfoserv.com>wrote:

> On Sun, Jan 15, 2012 at 12:37:16AM -0600, Marcelo de Moraes Serpa wrote:
> > A bit OT, but related.
> >
> > ---
> > It would be *awesome* if we could somehow hook into the emacs
> > paste/(drag-and)drop events and automatically "paste" or "drop" the image
> > in an org buffer. I don't know if it's possible, but I imagine that if
> > hooking into those events was somehow possible, then we could get the
> > "event handle" with information regarding the file, and automatically
> > insert a link to it, and if iimage is activated, it would then render the
> > image. It would be freaking awesome, this is the only thing I miss from
> > Evernote.
> > ---
> >
> > - Marcelo.
>
> Emacs has drag'n'drop support. In fact, I've been able to drag and
> drop image files from KDE's file manager (dolphin?) into emacs and make
> them custom links.
>
> .emacs:
> (defun dnd-from-kde (url action)
>  (insert url)
>  (select-frame-set-input-focus (selected-frame)))
>
> (custom-set-variables
>   '(dnd-protocol-alist (quote (("file:///" . dnd-from-kde)))))
>
> This ought to give you a place to start. The URL format may need to
> change to make it an Org link, I was using file:// for another text
> format.
>
>
>
> ------------------------------------------------------------------
> Russell Adams                            RLAdams@AdamsInfoServ.com
>
> PGP Key ID:     0x1160DCB3           http://www.adamsinfoserv.com/
>
> Fingerprint:    1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3
>
>

[-- Attachment #2: Type: text/html, Size: 2418 bytes --]

  reply	other threads:[~2012-01-15 19:31 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-18 17:16 Automatic screenshot insertion Jonathan BISSON
2010-11-18 17:50 ` Sébastien Vauban
2010-11-28 19:35 ` David Maus
2011-03-29 14:43   ` [Orgmode] " Russell Adams
2011-06-06 18:59     ` David Maus
2012-01-05  4:54     ` François Pinard
2012-01-09 18:27       ` Eric S Fraga
2012-01-09 20:22         ` François Pinard
2012-01-10  8:57           ` Eric S Fraga
2012-01-10 14:53             ` François Pinard
2012-01-10 16:08               ` Eric S Fraga
2012-01-10 19:27                 ` François Pinard
2012-01-10 19:46                   ` Skip Collins
2012-01-11  5:50                     ` Jambunathan K
2012-01-12  5:26                       ` Skip Collins
2012-01-12  6:26                         ` Thomas S. Dye
2012-01-14 21:35                     ` François Pinard
2012-01-15  6:37                       ` Marcelo de Moraes Serpa
2012-01-15 12:10                         ` Russell Adams
2012-01-15 19:31                           ` Marcelo de Moraes Serpa [this message]
2012-01-15 21:45                             ` Russell Adams
2012-01-10 20:26                   ` Eric S Fraga
2011-02-03 13:33 ` Bastien

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CACHMzOFV+b-6zzCB-ReD115XeKtRgRpMWw4DU_oLWEiYkRtMXw@mail.gmail.com \
    --to=celoserpa@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).