[-- 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 --]
[-- 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 --]
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
[-- 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 --]
[-- 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 --]