* preview src blocks that generate image files
@ 2020-01-26 8:11 Matt Huszagh
2020-01-26 9:35 ` Fraga, Eric
2020-01-26 12:29 ` John Kitchin
0 siblings, 2 replies; 3+ messages in thread
From: Matt Huszagh @ 2020-01-26 8:11 UTC (permalink / raw)
To: emacs-orgmode@gnu.org
Hi,
I'm considering adding the ability to display an image preview overlay of
source blocks that generate an image file, much in the same way that
latex fragments can be previewed.
Is anyone else interested in this feature? Any general thoughts/feature
requests?
Matt
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: preview src blocks that generate image files
2020-01-26 8:11 preview src blocks that generate image files Matt Huszagh
@ 2020-01-26 9:35 ` Fraga, Eric
2020-01-26 12:29 ` John Kitchin
1 sibling, 0 replies; 3+ messages in thread
From: Fraga, Eric @ 2020-01-26 9:35 UTC (permalink / raw)
To: Matt Huszagh; +Cc: emacs-orgmode@gnu.org
On Sunday, 26 Jan 2020 at 00:11, Matt Huszagh wrote:
> Is anyone else interested in this feature? Any general thoughts/feature
> requests?
This sounds quite appealing. The only issue might be the need to be
able to distinguish between images that are purely there because of a
link and those that correspond to a src block.
--
Eric S Fraga via Emacs 28.0.50, Org release_9.3.1-94-g0ac6a9
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: preview src blocks that generate image files
2020-01-26 8:11 preview src blocks that generate image files Matt Huszagh
2020-01-26 9:35 ` Fraga, Eric
@ 2020-01-26 12:29 ` John Kitchin
1 sibling, 0 replies; 3+ messages in thread
From: John Kitchin @ 2020-01-26 12:29 UTC (permalink / raw)
To: Matt Huszagh; +Cc: emacs-orgmode@gnu.org
[-- Attachment #1: Type: text/plain, Size: 1475 bytes --]
How would you handle source blocks that generate many figures? In iPython,
for example this happens pretty easily. I guess you are thinking about
blocks with a :file output or something though?
Once a preview was on it, would you have to C-c C-x C-v to toggle it off to
edit it? I have explored a few different approaches with latex fragments,
like clicking on it would turn the preview off, or entering it to turn it
off.
What would trigger putting the image preview on? Running C-c C-c on a
block? something more manual?
I guess you have a use case where this makes sense, but you can already see
an image preview on a link output, and there are ways to have the source
blocks be in other places in a document than where the results are.
Maybe for some src blocks like graphiz, or gnuplot where they more or less
only produce one graphic this idea could be a good one.
John
-----------------------------------
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu
On Sun, Jan 26, 2020 at 3:11 AM Matt Huszagh <huszaghmatt@gmail.com> wrote:
> Hi,
>
> I'm considering adding the ability to display an image preview overlay of
> source blocks that generate an image file, much in the same way that
> latex fragments can be previewed.
>
> Is anyone else interested in this feature? Any general thoughts/feature
> requests?
>
> Matt
>
>
[-- Attachment #2: Type: text/html, Size: 2199 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-01-26 12:30 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-01-26 8:11 preview src blocks that generate image files Matt Huszagh
2020-01-26 9:35 ` Fraga, Eric
2020-01-26 12:29 ` John Kitchin
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.