[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] shell-command+ f19569d 1/6: Add shell-command+-prompt option
From: |
Philip Kaludercic |
Subject: |
[elpa] shell-command+ f19569d 1/6: Add shell-command+-prompt option |
Date: |
Sun, 18 Apr 2021 17:12:40 -0400 (EDT) |
branch: shell-command+
commit f19569db820d6d005bf8282f509f0e7f7587bf45
Author: Philip K <philipk@posteo.net>
Commit: Philip K <philipk@posteo.net>
Add shell-command+-prompt option
---
shell-command+.el | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/shell-command+.el b/shell-command+.el
index ff93cc7..6a4dcbc 100644
--- a/shell-command+.el
+++ b/shell-command+.el
@@ -75,6 +75,11 @@ handlers if the symbol (eg. `man') is contained in the list."
:type '(choice (boolean :tag "Always active?")
(repeat :tag "Selected commands" symbol)))
+(defcustom shell-command+-prompt "Shell command:"
+ "Prompt to use when invoking `shell-command+'.
+This option doesn't require a trailing whitespace."
+ :type 'string)
+
(defconst shell-command+--command-regexp
(rx bos
;; ignore all preceding whitespace
@@ -130,7 +135,7 @@ These extentions can all be combined with one-another.
In case a region is active, `shell-command+' will only work with the region
between BEG and END. Otherwise the whole buffer is processed."
- (interactive (list (read-shell-command "Shell command: ")
+ (interactive (list (read-shell-command (concat shell-command+-prompt " "))
(if (use-region-p) (region-beginning) (point-min))
(if (use-region-p) (region-end) (point-max))))
(save-match-data
- [elpa] branch shell-command+ created (now c31f5f5), Philip Kaludercic, 2021/04/18
- [elpa] shell-command+ 8a46f0c 2/6: Require trailing whitespace for shell-command+-prompt, Philip Kaludercic, 2021/04/18
- [elpa] shell-command+ f19569d 1/6: Add shell-command+-prompt option,
Philip Kaludercic <=
- [elpa] shell-command+ c31f5f5 6/6: Bump version to 2.1.0, Philip Kaludercic, 2021/04/18
- [elpa] shell-command+ 1c132fe 3/6: Give example configuration in README, Philip Kaludercic, 2021/04/18
- [elpa] shell-command+ c99c73e 4/6: Fix eshell command detection, Philip Kaludercic, 2021/04/18
- [elpa] shell-command+ 6cac2e4 5/6: Fix setup form in README, Philip Kaludercic, 2021/04/18