From: Max Mikhanosha <max@openchat.com>
To: emacs-orgmode@gnu.org
Subject: Re: RFQ - new contribution - org-screenshot.el
Date: Mon, 20 May 2013 20:14:16 -0400 [thread overview]
Message-ID: <87y5b9dw9z.wl%max@openchat.com> (raw)
In-Reply-To: <20130520184548.GL26045@cardamom.adamsinfoserv.com>
At Mon, 20 May 2013 13:45:48 -0500,
Russell Adams wrote:
> I use this for all screenshots. This inserts a link named by buffer
> with a timestamp appended using the Imagemagick import utility, where
> I can just click a window or drag an area.
>
> (defun org-screenshot ()
> "Take a screenshot into a time stamped unique-named file in the same directory as the org-buffer and insert a link to this file."
> (interactive)
> (setq filename (concat (make-temp-name (concat (buffer-file-name) "_" (format-time-string "%Y%m%d_%H%M%S_")) ) ".png"))
> (call-process "import" nil nil nil filename)
> (insert (concat "[[" filename "]]")))
>
> What advantages would org-screenshot provide by comparison?
I started with the similar function.
To me the most useful feature is actually "screenshot rotation"
shortcuts, that cycle image before point, with other files in the
`(org-screenshot-image-directory)'.
Taking screenshot itself and inserting link is simple I agree.
Maybe that rotation code can be uplifted into Org itself , because I
think its probably useful for people working with a lot of image
links, not just screenshots. Another is specifying screenshot delay
by C-u prefix (C-u C-u C-u -> 3 seconds), for making screenshot of menus.
I would love to add more to it, but don't have time. If someone wants
to hack on it, you welcome :-)
Some ideas are:
1. Allow customizing the screenshot program used, ie like imagemagic
2. Option to automatically rotate when taking a screenshot, and the
first thing before point is already an image
3. Command to enter crop mode, where you would press arrow keys (or
jklh) and it would crop the displayed image only (emacs supports
that in properties), and then on RET will use image manipulation
program to crop it
4. Have ability to inject screenshot via emacsclient, so that you can
bind a global shortcut instead, it feels silly to go to emacs to
take screenshot.. I prefer to make lots of screenshot first, and
then use rotate keys to select ones I like most
Regards,
Max
next prev parent reply other threads:[~2013-05-21 0:14 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-17 3:21 RFQ - new contribution - org-screenshot.el Max Mikhanosha
2013-05-17 6:13 ` Bastien
2013-05-17 7:38 ` Rainer M. Krug
2013-05-17 10:41 ` Max Mikhanosha
2013-05-17 12:33 ` Daniel F
2013-05-17 13:17 ` Feng Shu
2013-05-17 13:49 ` Bastien
2013-05-17 10:46 ` Carsten Dominik
2013-05-17 13:05 ` Carsten Dominik
2013-05-17 14:37 ` Max Mikhanosha
2013-05-17 13:27 ` Feng Shu
2013-05-17 16:25 ` Max Mikhanosha
2013-05-17 17:20 ` Brett Viren
2013-05-17 18:33 ` Max Mikhanosha
2013-05-17 19:42 ` Brett Viren
2013-05-20 16:53 ` François Pinard
2013-05-20 18:45 ` Russell Adams
2013-05-21 0:14 ` Max Mikhanosha [this message]
2013-05-21 0:58 ` Russell Adams
2013-05-21 12:03 ` François Pinard
2013-05-21 12:45 ` Russell Adams
2013-05-21 13:42 ` Haider Rizvi
2013-05-21 15:36 ` Feng Shu
2013-05-21 16:16 ` François Pinard
2013-05-21 17:40 ` Viktor Rosenfeld
2013-05-21 17:42 ` Viktor Rosenfeld
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=87y5b9dw9z.wl%max@openchat.com \
--to=max@openchat.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).