Closed 15cm closed 6 years ago
@15cm looks good! Thanks for the contribution!
Thanks for merging. BTW, it will be helpful if you can add document for this option when you have time.
@15cm yeah, I created an issue for that #113. I will document it when I have spare time. :)
Totally agree with you. I was not clear how to handle dependency in Elisp. Modified the PR based on your suggestion. Let's see how it goes when GitHub is up.
On Sun, Oct 21, 2018 at 9:56 PM Alexey Kutepov notifications@github.com wrote:
@rexim requested changes on this pull request.
In org-cliplink.el https://github.com/rexim/org-cliplink/pull/112#discussion_r226890245:
@@ -403,8 +403,63 @@ Used when the current transport implementation is set to :group 'org-cliplink :type '(repeat string))
+(defcustom org-cliplink-clipboard-source-is-system nil
Honestly, I'm not a big fan of simply copy-pasting a big chunk of code from another project and be done with it. Could we just integrate with simpleclip?
We could create a custom var org-cliplink-simpleclip-source and when it's true, check that simpleclip is installed and call simpleclip-get-contents.
After all the simpleclip devs may introduce useful changes to that function and copy-pasting them over and over again is not a good idea.
In org-cliplink.el https://github.com/rexim/org-cliplink/pull/112#discussion_r226890309:
@@ -403,8 +403,63 @@ Used when the current transport implementation is set to :group 'org-cliplink :type '(repeat string))
+(defcustom org-cliplink-clipboard-source-is-system nil
- "Clipboard source. +Non-nil means use system clipboard as source.
+When nil, use the first element of kill-ring as source"
- :group 'org-cliplink
- :type 'boolean)
+;; Copied from https://github.com/rolandwalker/simpleclip/blob/master/simpleclip.el
Honestly, I'm not a big fan of simply copy-pasting a big chunk of code from another project and be done with it. Could we just integrate with simpleclip?
We could create a custom var org-cliplink-simpleclip-source and when it's true, check that simpleclip is installed and call simpleclip-get-contents.
After all the simpleclip devs may introduce useful changes to that function and copy-pasting them over and over again is not a good idea.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rexim/org-cliplink/pull/112#pullrequestreview-166813530, or mute the thread https://github.com/notifications/unsubscribe-auth/AHZmxHCcffT0PyoV9EHjZCIjyXS0iUAGks5unSXMgaJpZM4Xysqi .
Add a custom var
org-cliplink-simpleclip-source
to specify clipboard source.System clipboard will be used only if
org-cliplink-simpleclip-source
ist
andsimpleclip-get-contents
is defined.Documents about the dependency of
simpleclip.el
needs to be added for this option later.