jkitchin / ox-clip

Copy formatted content from org-mode
67 stars 10 forks source link

option to export more than the visible region #18

Open VladimirAlexiev opened 1 year ago

VladimirAlexiev commented 1 year ago

https://github.com/jkitchin/ox-clip/blob/master/ox-clip.el#L388: ox-clip-formatted-copy uses the following org-export-to-buffer options:

           (buf (org-export-to-buffer 'html "*Formatted Copy*" nil nil t t))

This means that to copy a subtree, I need to:

Please:

Thanks!

jkitchin commented 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?

VladimirAlexiev commented 1 year ago

+(defcustom ox-clip-only-visible nil

I think I like your fix better. Cheers!