[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/projectile e5ccfdd 1/2: [Fix #1692] Enable minibuffer comp
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/projectile e5ccfdd 1/2: [Fix #1692] Enable minibuffer completion for projectile-run{-async, }-shell-command-in-root |
Date: |
Mon, 1 Nov 2021 03:58:02 -0400 (EDT) |
branch: elpa/projectile
commit e5ccfdd128e53bfd9e8159209a5c9e0bf0755fb9
Author: Daanturo <daanturo@gmail.com>
Commit: GitHub <noreply@github.com>
[Fix #1692] Enable minibuffer completion for
projectile-run{-async,}-shell-command-in-root
---
CHANGELOG.md | 2 +-
projectile.el | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index f61579d..ce7276e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -14,7 +14,7 @@
### Changes
* [#1447](https://github.com/bbatsov/projectile/issues/1447): Restructure the
menu.
-
+* [#1716](https://github.com/bbatsov/projectile/pull/1716): Allow completions
when reading shell-commands.
## 2.5.0 (2021-08-10)
### New features
diff --git a/projectile.el b/projectile.el
index fadb243..7a1387b 100644
--- a/projectile.el
+++ b/projectile.el
@@ -3970,14 +3970,14 @@ installed to work."
;;;###autoload
(defun projectile-run-shell-command-in-root (command &optional output-buffer
error-buffer)
"Invoke `shell-command' in the project's root."
- (interactive "sShell command: ")
+ (interactive (list (read-shell-command "Shell command: ")))
(projectile-with-default-dir (projectile-acquire-root)
(shell-command command output-buffer error-buffer)))
;;;###autoload
(defun projectile-run-async-shell-command-in-root (command &optional
output-buffer error-buffer)
"Invoke `async-shell-command' in the project's root."
- (interactive "sAsync shell command: ")
+ (interactive (list (read-shell-command "Async shell command: ")))
(projectile-with-default-dir (projectile-acquire-root)
(async-shell-command command output-buffer error-buffer)))