emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Charles Berry <ccberry@ucsd.edu>
To: emacs-orgmode@gnu.org
Subject: Re: Carsten's Interview relates questions, esay insert images, attachemnt locations etc..
Date: Sat, 20 Apr 2013 03:15:18 +0000 (UTC)	[thread overview]
Message-ID: <loom.20130420T044050-350@post.gmane.org> (raw)
In-Reply-To: CAN2HUWjBfiy6K2uh7_a4Od0BXCifqg8nT6Kt5XLSOvCtyA6B=g@mail.gmail.com

zeltak <zeltak <at> gmail.com> writes:

> 
> Hi Charles and Carsten
> sorry for the belated repsonse but i have been tied up at work with other
projects. 
> 
> So going back to the original question, i have used your example code
Charles and modified it to work on my linux box, though i have zero lisp (or
any other programming) knowledge so im not sure its correct:

[snip code]

If it captures a screenshot in a file and puts a link in your org file,
then it is correct.


> there are still some question i have. the little function seems to work
and i do get an inline image inside org bit it seems to me it only work on
the current window/workspace, is that correct? how can i modify it catch a
screenshot from a web browser, PDF, other workspace etc?
>

This depends on how you navigate your window system, I think.

On Mac OS X Clover-Tab lets me move between open applications without
touching the mouse. When I get to the image I want to capture, I use
the mouse to get the screenshot.

IIRC, on KDE (linux) alt-tab cycles through open applications. I use this
to select text from a terminal window and paste it into emacs (under X11).

If you need the mouse to get to the view you want to capture, I think you
will need some help from outside emacs. You need an application that lets
you navigate a bit to get to the screen you need before setting off the
screenshot. Maybe you can create a shell script that will allow you to 
navigate first, then capture the screenshot before exiting. I do not
know of a way to do this purely within emacs. If you know how to put
that script together, then call the script rather than 'scrot'.


> 
> -also can one insert a delete mechanism for files deleted from the inline
buffer (with a confirmation ofc). the reason i ask is because alot of the
times the first 'take' isnt correct and that leaves alot of junk in these
folders that are hard to trace manually

In principal, you could put a confirmation query in the function, then 
unlink the file if you do not confirm it.

But if elisp is a hurdle, a keyboard macro could do the trick. Figure out 
the keystrokes to navigate to the newest image file, then delete it, then
get back to org. Then capture those keystrokes in a macro, save it, and 
you are good to go. See

http://www.gnu.org/software/emacs/manual/html_node/emacs/
Keyboard-Macros.html
 

HTH,

  reply	other threads:[~2013-04-20  3:15 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-19 17:53 Carsten's Interview relates questions, esay insert images, attachemnt locations etc zeltak
2013-04-20  3:15 ` Charles Berry [this message]
  -- strict thread matches above, loose matches on Subject: below --
2013-03-27  0:47 zeltak
2013-03-27  3:52 ` Charles Berry
2013-03-27  6:33   ` Carsten Dominik
2013-03-29 20:39     ` Stephen
2013-03-27 13:18 ` Memnon Anon

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=loom.20130420T044050-350@post.gmane.org \
    --to=ccberry@ucsd.edu \
    --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).