[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/clipboard-collector 7504300 03/31: Update Docs

From: Stefan Monnier
Subject: [elpa] externals/clipboard-collector 7504300 03/31: Update Docs
Date: Sun, 6 Jan 2019 17:16:18 -0500 (EST)

branch: externals/clipboard-collector
commit 7504300317b804420fb80d0a5db792978a1037d2
Author: Clemera <address@hidden>
Commit: Clemera <address@hidden>

    Update Docs
 README.org             | 15 ++++++++++++++-
 clipboard-collector.el |  3 ++-
 2 files changed, 16 insertions(+), 2 deletions(-)

diff --git a/README.org b/README.org
index 2d274e2..80d177f 100644
--- a/README.org
+++ b/README.org
@@ -1,6 +1,19 @@
+* Introduction
+When collecting information using copy/paste, it would be useful if one could
+stay in the application where things are copied instead of constantly switching
+between Emacs and the other application to pase each item separately.
+Further it would be great if Emacs could detect clipboard entries and adjust 
+to the format one would like to save them.
+This is what clipboard-collector is about. Here is an example for collecting
+contact information from a website for org capture (contact info translated to
+be used as property drawer items).
 #+BEGIN_SRC elisp
-;; example capturing org propertry drawer items for org capture:
 (clipboard-collector-create cc-capture-rss
  (("^http.*twitter.com"                           ":TWITTER: %s")
   ("^http.*reddit.com"                            ":REDDIT: %s")
diff --git a/clipboard-collector.el b/clipboard-collector.el
index e03853f..a18408b 100644
--- a/clipboard-collector.el
+++ b/clipboard-collector.el
@@ -94,7 +94,8 @@ the placeholder is replaced by the clipboard contents.
 If you want to transform the clipboard contents using a function
 specify TRANSFORM-CLIPBOARD-FUNC. This is applied before contents
-are applied to TRANSFORM-FORMAT-STRING.")
+are applied to TRANSFORM-FORMAT-STRING and can use match-data of
+the matched regex.")
 (defvar clipboard-collector--finish-function nil
   "Default function used by `clipboard-collector-finish'.")

reply via email to

[Prev in Thread] Current Thread [Next in Thread]