diff options
author | Bart Schaefer <schaefer@zsh.org> | 2024-11-12 19:48:56 -0800 |
---|---|---|
committer | Bart Schaefer <schaefer@zsh.org> | 2024-11-12 19:48:56 -0800 |
commit | ec8fc4024f5be0a76f5604ddc18380c7053d2649 (patch) | |
tree | d932703b8742f95b01c0552d1cc36311fc5cc5c7 /Completion | |
parent | 6973a9ea843b1504e4c39ed560ee6e99d829ee8f (diff) | |
download | zsh-ec8fc4024f5be0a76f5604ddc18380c7053d2649.tar.gz zsh-ec8fc4024f5be0a76f5604ddc18380c7053d2649.zip |
Karel Balej: 53240, 53241: updated completions for mpc add, mpc insert
Diffstat (limited to 'Completion')
-rw-r--r-- | Completion/Unix/Command/_mpc | 16 |
1 files changed, 15 insertions, 1 deletions
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() { |