* xclip/pbcopy/clipboard 'target' for export backends?
@ 2021-01-05 14:01 Tim Visher
2021-01-05 15:18 ` John Kitchin
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Tim Visher @ 2021-01-05 14:01 UTC (permalink / raw
To: Emacs Org Mode mailing list
[-- Attachment #1: Type: text/plain, Size: 613 bytes --]
Hi Everyone,
I'm interested in adding something to the export dispatcher that would
automatically put the exported text (or perhaps even file?) onto my
clipboard.
Preferably I'd like to define this once and have it available to each
backend. So maybe I want markdown this time but rather than to a buffer or
file I want it to go straight to my clipboard. Next time I want HTML or
Plain Text but the same thing.
Can anyone give me some hints on where to start looking for that? Or maybe
it's already been done?
Thanks in advance!
--
In Christ,
Timmy V.
https://blog.twonegatives.com
http://five.sentenc.es
[-- Attachment #2: Type: text/html, Size: 856 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: xclip/pbcopy/clipboard 'target' for export backends?
2021-01-05 14:01 xclip/pbcopy/clipboard 'target' for export backends? Tim Visher
@ 2021-01-05 15:18 ` John Kitchin
2021-01-05 15:27 ` Eric S Fraga
2021-01-05 16:13 ` Diego Zamboni
2 siblings, 0 replies; 5+ messages in thread
From: John Kitchin @ 2021-01-05 15:18 UTC (permalink / raw
To: Tim Visher; +Cc: Emacs Org Mode mailing list
[-- Attachment #1: Type: text/plain, Size: 1153 bytes --]
I guess you are looking for something like
https://github.com/jkitchin/ox-clip.
It doesn't support all the backends you want, but might be a start for
you. you can also install it from MELPA.
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 Tue, Jan 5, 2021 at 9:03 AM Tim Visher <tim.visher@gmail.com> wrote:
> Hi Everyone,
>
> I'm interested in adding something to the export dispatcher that would
> automatically put the exported text (or perhaps even file?) onto my
> clipboard.
>
> Preferably I'd like to define this once and have it available to each
> backend. So maybe I want markdown this time but rather than to a buffer or
> file I want it to go straight to my clipboard. Next time I want HTML or
> Plain Text but the same thing.
>
> Can anyone give me some hints on where to start looking for that? Or maybe
> it's already been done?
>
> Thanks in advance!
>
> --
>
> In Christ,
>
> Timmy V.
>
> https://blog.twonegatives.com
> http://five.sentenc.es
>
[-- Attachment #2: Type: text/html, Size: 2036 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: xclip/pbcopy/clipboard 'target' for export backends?
2021-01-05 14:01 xclip/pbcopy/clipboard 'target' for export backends? Tim Visher
2021-01-05 15:18 ` John Kitchin
@ 2021-01-05 15:27 ` Eric S Fraga
2021-01-05 16:13 ` Diego Zamboni
2 siblings, 0 replies; 5+ messages in thread
From: Eric S Fraga @ 2021-01-05 15:27 UTC (permalink / raw
To: Tim Visher; +Cc: Emacs Org Mode mailing list
On Tuesday, 5 Jan 2021 at 09:01, Tim Visher wrote:
> Preferably I'd like to define this once and have it available to each
> backend.
I cannot help directly but I can contribute a random thought: many of
the exporters have the ability to export to a buffer. Maybe there could
be a hook (there isn't one at present that is appropriate, I think) that
you can add to that captures the contents of the buffer and puts them in
the clipboard? Or you might be able to "advice" the export (or each
exporter maybe) dispatcher to do so?
--
: Eric S Fraga via Emacs 28.0.50, Org release_9.4.4-166-g291993
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: xclip/pbcopy/clipboard 'target' for export backends?
2021-01-05 14:01 xclip/pbcopy/clipboard 'target' for export backends? Tim Visher
2021-01-05 15:18 ` John Kitchin
2021-01-05 15:27 ` Eric S Fraga
@ 2021-01-05 16:13 ` Diego Zamboni
2021-01-05 18:14 ` Tim Visher
2 siblings, 1 reply; 5+ messages in thread
From: Diego Zamboni @ 2021-01-05 16:13 UTC (permalink / raw
To: Tim Visher; +Cc: Emacs Org Mode mailing list
[-- Attachment #1: Type: text/plain, Size: 1261 bytes --]
Hi Tim,
Funny - just a few minutes ago, before reading your message, I learned
while installing https://github.com/stig/ox-jira.el, about =
org-export-copy-to-kill-ring=:
org-export-copy-to-kill-ring is a variable defined in ox.el.
Non-nil means pushing export output to the kill ring.
This variable is ignored during asynchronous export.
In my brief testing, it does exactly what you want: regardless of the
export output or method (to a file or to a temporary buffer), the result is
placed in the clipboard.
Best,
--Diego
On Tue, Jan 5, 2021 at 3:03 PM Tim Visher <tim.visher@gmail.com> wrote:
> Hi Everyone,
>
> I'm interested in adding something to the export dispatcher that would
> automatically put the exported text (or perhaps even file?) onto my
> clipboard.
>
> Preferably I'd like to define this once and have it available to each
> backend. So maybe I want markdown this time but rather than to a buffer or
> file I want it to go straight to my clipboard. Next time I want HTML or
> Plain Text but the same thing.
>
> Can anyone give me some hints on where to start looking for that? Or maybe
> it's already been done?
>
> Thanks in advance!
>
> --
>
> In Christ,
>
> Timmy V.
>
> https://blog.twonegatives.com
> http://five.sentenc.es
>
[-- Attachment #2: Type: text/html, Size: 2207 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: xclip/pbcopy/clipboard 'target' for export backends?
2021-01-05 16:13 ` Diego Zamboni
@ 2021-01-05 18:14 ` Tim Visher
0 siblings, 0 replies; 5+ messages in thread
From: Tim Visher @ 2021-01-05 18:14 UTC (permalink / raw
To: Diego Zamboni; +Cc: Emacs Org Mode mailing list
[-- Attachment #1: Type: text/plain, Size: 679 bytes --]
On Tue, Jan 5, 2021 at 11:13 AM Diego Zamboni <diego@zzamboni.org> wrote:
> Funny - just a few minutes ago, before reading your message, I learned
> while installing https://github.com/stig/ox-jira.el, about =
> org-export-copy-to-kill-ring=:
>
> org-export-copy-to-kill-ring is a variable defined in ox.el.
>
> Non-nil means pushing export output to the kill ring.
>
> This variable is ignored during asynchronous export.
>
>
> In my brief testing, it does exactly what you want: regardless of the
> export output or method (to a file or to a temporary buffer), the result is
> placed in the clipboard.
>
Hah! Good old C-x M-c M-butterfly. I'll have to play with this myself.
[-- Attachment #2: Type: text/html, Size: 1357 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2021-01-05 18:16 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-05 14:01 xclip/pbcopy/clipboard 'target' for export backends? Tim Visher
2021-01-05 15:18 ` John Kitchin
2021-01-05 15:27 ` Eric S Fraga
2021-01-05 16:13 ` Diego Zamboni
2021-01-05 18:14 ` Tim Visher
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.