[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/webpaste f0a36e2 140/298: Added some docs of how to enable
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/webpaste f0a36e2 140/298: Added some docs of how to enable the confirmation dialog before pasting |
Date: |
Thu, 9 Dec 2021 19:00:01 -0500 (EST) |
branch: elpa/webpaste
commit f0a36e24cab482e3f33a9a70103f600b478f9c79
Author: Elis Axelsson <elis.axelsson@gmail.com>
Commit: Elis Axelsson <elis.axelsson@gmail.com>
Added some docs of how to enable the confirmation dialog before pasting
---
README.org | 14 ++++++++++++++
webpaste.el | 4 ++--
2 files changed, 16 insertions(+), 2 deletions(-)
diff --git a/README.org b/README.org
index 49f7649..af83fff 100644
--- a/README.org
+++ b/README.org
@@ -54,6 +54,20 @@ This can be added to the =:config= section of use-package:
(setq webpaste-provider-priority '("ptpb.pw" "dpaste.de"))))
#+END_SRC
+*** Confirm pasting with a yes/no confirmation before pasting
+To enable a confirmation dialog to always pop up and require you to confirm
+pasting before text is actually sent to a paste-provider you just need to set
+the variable =webpaste/paste-confirmation= to a value that is non-nil.
+
+Example:
+#+begin_src emacs-lisp :tangle yes
+ ;; Require confirmation before doing paste
+ (setq webpaste/paste-confirmation t)
+#+end_src
+
+Can also be put in the =:config= section of =use-package= the same way as the
+provider definitions above.
+
** TODO Providers to implement [6/9]
- [X] ptpb.pw
- [X] ix.io
diff --git a/webpaste.el b/webpaste.el
index 2d303ed..0fd17ec 100644
--- a/webpaste.el
+++ b/webpaste.el
@@ -68,9 +68,9 @@ default to all providers in order defined in
‘webpaste-providers’ list."
:type '(alist :key-type symbol :value-type string)
:group 'webpaste)
+
(defcustom webpaste/paste-confirmation nil
- "Prompt for a yes/no confirmation before attempting to paste a region or
-buffer"
+ "Prompt for a yes/no confirmation before attempting to paste a region or
buffer."
:group 'webpaste)
- [nongnu] elpa/webpaste 1bfa9ec 120/298: Bump version for stable release and copyright year, (continued)
- [nongnu] elpa/webpaste 1bfa9ec 120/298: Bump version for stable release and copyright year, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 6ea53d0 123/298: Added support for custom handler of how to build the post data for providers, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste aff4e42 124/298: The error-lambda now has a default value and is now optional, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 2dc2206 126/298: Added github anonymous gists as provider. This fixes #8., ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste b3bcde1 128/298: Updated some docs that was missed before release..., ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 0fa48e2 129/298: Switch github pastes to not be public. This fixes #9., ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 4e58b0a 131/298: Fix bug in link returned from dpaste.de, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste b35b30d 134/298: Added documentation for how to configure provider priority, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 70e8fd0 135/298: Bump version for new release, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste b03b90f 138/298: Add confirmation dialog of paste, before pasting, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste f0a36e2 140/298: Added some docs of how to enable the confirmation dialog before pasting,
ELPA Syncer <=
- [nongnu] elpa/webpaste 272757b 056/298: Change documentation string, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 58f66ef 069/298: Bump version to prepare for melpa stable, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 6e34759 072/298: Added another privider to list to implement, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste f378ca9 075/298: Added Cask file, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 2bb8a4c 077/298: Set up tests directory, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste f338ca7 083/298: Added Travis-CI build status image, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste f658339 096/298: Bump version number for stable release, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste e485847 107/298: Break out pasting to provider to own function, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 406d713 115/298: Shared success lambdas between different paste providers, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 7f62fed 118/298: Tidy up some lists in tests with backquotes, ELPA Syncer, 2021/12/09