You are not logged in.

#1 2008-12-27 06:53:09

gotsomeideas
Member
Registered: 2007-08-14
Posts: 12

mpc tab completion not working

For some reason, bash tab completion isn't working for me with mpc. I can play songs from my mpd database by using the "mpc ls | mpc add" command, but when I try "mpc ls" and begin typing an album name and hitting Tab, nothing happens. I've had mpc/mpd working before, but I'm setting it up on a new computer and I've forgotten if I had to do something special to get it working correctly.

I have no idea what could be causing this, but my guess is that its something obvious that I'm forgetting. Any ideas?

Update: I tried adding the contents of /usr/share/doc/mpc/mpc-bashrc to my .bashrc file and that didn't seem to do anything. This is really bugging me, any suggestions?

Last edited by gotsomeideas (2009-01-04 02:31:20)

Offline

#2 2009-01-24 00:21:10

gotsomeideas
Member
Registered: 2007-08-14
Posts: 12

Re: mpc tab completion not working

Has anyone else experienced this, or at least have any ideas as to what I could try? I've tried using a different terminal (I normally use rxvt-unicode, I tried xterm) but that didn't help.

This is driving me nuts. And its not that mpc isn't working -- when I type everything in by hand it works fine. But its really unusable without tab completion.

Offline

#3 2009-01-24 00:34:53

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: mpc tab completion not working

Read the instructions on the top of /etc/bash_completion.d/mpc.

Offline

#4 2009-01-24 00:39:38

SamC
Member
From: Calgary
Registered: 2008-05-13
Posts: 611
Website

Re: mpc tab completion not working

What shows when you type "mpc add" followed by two tabs? If I just source that file, it shows a listing of all my music.

Offline

#5 2009-01-24 01:28:58

gotsomeideas
Member
Registered: 2007-08-14
Posts: 12

Re: mpc tab completion not working

skottish wrote:

Read the instructions on the top of /etc/bash_completion.d/mpc.

Unfortunately, this didn't work. It looks like that file is the same as the /usr/share/doc/mpc/mpc-bashrc file I tried earlier, but I tried this one too just to be sure and it didn't do anything.

SamC wrote:

What shows when you type "mpc add" followed by two tabs? If I just source that file, it shows a listing of all my music.

Nothing happens when I try "mpc add" and hit tab.

Did you guys find you had to add that mpc completion function to your .bashrc file before you got mpc to work? I could have sworn that I didn't have to do that when I used to have mpc working on my old computer. Either way, it doesn't seem to make a difference when I add it now.

Offline

#6 2009-01-24 01:33:21

SamC
Member
From: Calgary
Registered: 2008-05-13
Posts: 611
Website

Re: mpc tab completion not working

Note that I said two tabs, which is what completes, by default, if you have more than one possible completion.

Offline

#7 2009-01-24 03:57:30

gotsomeideas
Member
Registered: 2007-08-14
Posts: 12

Re: mpc tab completion not working

SamC wrote:

Note that I said two tabs, which is what completes, by default, if you have more than one possible completion.

I definitely hit tab about 50 times, nothing happened. Sorry for not making that clear in my previous post.

Last edited by gotsomeideas (2009-01-24 03:58:39)

Offline

#8 2009-01-24 04:03:08

SamC
Member
From: Calgary
Registered: 2008-05-13
Posts: 611
Website

Re: mpc tab completion not working

Odd. I don't know anything about scripting or completion, so I can't really suggest anything other than perhaps using ncmpcpp

Offline

#9 2010-02-15 16:24:59

mookatt
Member
Registered: 2010-02-15
Posts: 1

Re: mpc tab completion not working

install bash-completion (http://wiki.archlinux.org/index.php/Bash)

pacman -S bash-completion

Offline

Board footer

Powered by FluxBB