summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Unix/Command/_mpc16
2 files changed, 20 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 22ee71a4e..e72294ce1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2024-11-12 Bart Schaefer <schaefer@zsh.org>
+
+ * Karel Balej: 53240, 53241: Completion/Unix/Command/_mpc:
+ updated completions for mpc add, mpc insert
+
2024-11-12 Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>
* 53137 + 53213: Doc/Makefile.in, Doc/intro.ms, allow creating
diff --git a/Completion/Unix/Command/_mpc b/Completion/Unix/Command/_mpc
index c3f93878c..e3383e56d 100644
--- a/Completion/Unix/Command/_mpc
+++ b/Completion/Unix/Command/_mpc
@@ -178,6 +178,16 @@ _mpc_helper_files() {
fi
}
+(( $+functions[_mpc_helper_all_files] )) ||
+_mpc_helper_all_files() {
+ local ret=1
+ if [[ $words[CURRENT] == [/~]* ]]; then
+ _files
+ ret=$?
+ fi
+ _mpc_helper_files || return $ret
+}
+
(( $+functions[_mpc_helper_directories] )) ||
_mpc_helper_directories() {
if [[ -n $MPD_MUSIC_DIR ]]; then
@@ -204,7 +214,11 @@ _mpc_helper_outputs() {
}
_mpc_add() {
- _mpc_helper_files
+ _mpc_helper_all_files
+}
+
+_mpc_insert() {
+ _mpc_helper_all_files
}
_mpc_albumart() {