From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id ULQEH7KT9F+sEQAA0tVLHw (envelope-from ) for ; Tue, 05 Jan 2021 16:28:34 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id MODeGrKT9F9sJgAAB5/wlQ (envelope-from ) for ; Tue, 05 Jan 2021 16:28:34 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 9440C94043A for ; Tue, 5 Jan 2021 16:28:33 +0000 (UTC) Received: from localhost ([::1]:57382 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kwpCC-0001mL-JE for larch@yhetil.org; Tue, 05 Jan 2021 11:28:32 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:54048) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kwoxT-0002Df-9W for emacs-orgmode@gnu.org; Tue, 05 Jan 2021 11:13:19 -0500 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]:36283) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kwoxQ-0006JQ-Ui for emacs-orgmode@gnu.org; Tue, 05 Jan 2021 11:13:19 -0500 Received: by mail-wm1-x32e.google.com with SMTP id y23so76705wmi.1 for ; Tue, 05 Jan 2021 08:13:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zzamboni-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=1KTchCVvetuuFzKf1LTyGUFBRE0//XgKxadS9Zzdfmg=; b=msC3hR6aopjhZ9kyS8qTsV+NNt/fytSoLR/uWrPA6onkoJwzV5fBF0dg55O2QhlCfm 6mlUYIWfdiDKDQzOYQGsmlaa/JlgQvZGiAUA4vndg5iwmTWU58rVlGUv2rY1gSZg4rYz TYErCO2UIWvsknNeFZ5xBAugMpIfXcUvamL7fhzZpiMJ6gRV55Ep6AWyCTTuLHYno5tz uZU87V+aMELs4eqtEOEljIY60NL9FpD/7YjS93ekGe80m9ppp4wphqR8ZuH+mYgopIcS wznep3FGF66wbOHf6WMnw5BtMkMemhb+mu1XmOZ7SXhBvPrHZ8sI4AmodY72F5eG2T0s 1VMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=1KTchCVvetuuFzKf1LTyGUFBRE0//XgKxadS9Zzdfmg=; b=T0kAPaoh/SZW8XMb0uGKU6pp7TdDQUPCCZRf0ky+WHKy33RgqwV0QYsKtq6nfnItbZ H1oF+msqn8y4qBJtzutwHnk5SBH7hCqKf+G/eCWz4BjSHKTu/I97Z5mmDAoFawaEwnfY k4QsPAju/48ZdwOMURluR/Eb6jaNNHuw9lC9/CyLjZg8/GzuTswB+7UPAu6iVXP+CEw+ ZxuF0p4pEBE+12m/+munPc04cte+3HM9ejZuSLmRJwnxY4RwFe1fjU80FnmD+BWMvRJf BTW/BVfDh9aLkltV5ot43kbE8mih8O6jleSQjYyjzGoawdBRElSt+oZw0hkhqy7/JFHc VFVw== X-Gm-Message-State: AOAM530YZ7BEHOX0SJMMt14MfrR3latTUE4JNC+hH1SXIKWAohJKchNL bXUHhp3oq1AM3LtESsNz4KqzwJ/5eVb4jOUIRk5B7A== X-Google-Smtp-Source: ABdhPJwLeJ21E2zzt5lCcw/EcVrVcgiTheRhcwGfaE/6PW4CPuOKnb/45gndsVybRzufLhRrFUl784oXs9zHb9nnoec= X-Received: by 2002:a1c:2e88:: with SMTP id u130mr4114099wmu.83.1609863194847; Tue, 05 Jan 2021 08:13:14 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Diego Zamboni Date: Tue, 5 Jan 2021 17:13:03 +0100 Message-ID: Subject: Re: xclip/pbcopy/clipboard 'target' for export backends? To: Tim Visher Content-Type: multipart/alternative; boundary="000000000000ddc12f05b8297b79" Received-SPF: none client-ip=2a00:1450:4864:20::32e; envelope-from=diego@zzamboni.org; helo=mail-wm1-x32e.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Emacs Org Mode mailing list Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -1.54 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=zzamboni-org.20150623.gappssmtp.com header.s=20150623 header.b=msC3hR6a; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 9440C94043A X-Spam-Score: -1.54 X-Migadu-Scanner: scn0.migadu.com X-TUID: tRKLAqrs9bR7 --000000000000ddc12f05b8297b79 Content-Type: text/plain; charset="UTF-8" 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 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 > --000000000000ddc12f05b8297b79 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Tim,

Funny - just a few minutes ago,= before reading your message, I learned while installing=C2=A0https://github.com/stig/ox-jira.el, a= bout =3Dorg-expor= t-copy-to-kill-ring=3D:

org-export-copy-to-kill-ring i= s a variable defined in ox.el.

Non-nil means p= ushing export output to the kill ring.

This variab= le 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<= /div>


On Tue, Jan 5, 2021 at 3:03 PM Tim Visher <tim.visher@gmail.com> wrote:
Hi Ev= eryone,

I'm interested in adding something to the ex= port 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=C2=A0for that? Or maybe it's already been done?

Thanks in advance!

--

In Christ,

Timmy= V.

http= s://blog.twonegatives.com
http://five.sentenc.es
--000000000000ddc12f05b8297b79--