Open VladimirAlexiev opened 1 year ago
In https://github.com/jkitchin/ox-clip/commit/2fec80f54e67b98f93e306952eb9d15f62d05784 I added a prefix arg to the function that will mark the subtree, and make it copy all content I think. I guess this is the most sensible default. WDYT?
diff --git a/ox-clip.el b/ox-clip.el
index 72dd176..0f7e9a9 100644
--- a/ox-clip.el
+++ b/ox-clip.el
@@ -60,6 +60,13 @@
:group 'org)
+(defcustom ox-clip-only-visible nil
(defcustom ox-clip-w32-cmd (format "python %s" (expand-file-name @@ -385,7 +392,7 @@ R1 and R2 define the selected region." (if (equal major-mode 'org-mode) (save-window-excursion (let* ((org-html-with-latex 'dvipng)
I think I like your fix better. Cheers!
https://github.com/jkitchin/ox-clip/blob/master/ox-clip.el#L388:
ox-clip-formatted-copy
uses the following org-export-to-buffer options:subtreep
= nilvisible-only
= tThis means that to copy a subtree, I need to:
org-mark-subtree (C-c @)
org-cycle (TAB)
until the subtree is visibleox-clip-formatted-copy
(in my caseC-S-M-w
)Please:
ox-clip-formatted-copy-subtree
to do that, even if not all of the subtree is visible?ox-clip-only-visible
to control the valuevisible-only
when invokingorg-export-to-buffer
? I think I like this variant better since it is natural to useorg-mark-subtree (C-c @)
if I want to copy it or formatted-copy it.Thanks!