mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-28 17:10:59 +01:00
Karel Balej: 53240, 53241: updated completions for mpc add, mpc insert
This commit is contained in:
parent
6973a9ea84
commit
ec8fc4024f
2 changed files with 20 additions and 1 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue