Feature request: jump to first matching song.


Hi, I'd like to be able to jump to target song on playlist from a command line. In fact it could be enough to enable option:
$ mocp --jumpto MATCH
running like a sequence "/MATCH" entered. Is it possible to do it now? Or do you find this functionality useless? Currently I can use pretty obscure workaround to play one song:
$ mocp -c -a "`locate -i "MATCH" | grep /path/to/music | line`" -p

Best regards,

mocp --jumpto MATCH

In the future you will be able to do exactly this.

Is it possible to do it now?

No. There is quite a bit of work to be done before that can happen.

Or do you find this functionality useless?

It doesn't matter. The goal is that you will be able to add this for yourself without the need for changes in MOC itself. If it's useful to you, then you will be able to do it. If you think it would also be useful to others, then you can share it with them.

Hi, thank you for your answer. Have you already done anything to introduce this feature or should I take a look at source and contribute some code?

There is an awful lot of design work been done to support features such as this. I have had a "proof of concept" version of MOC running for several years now, but it needs some work to realign it to the new design before it can be released.

I appreciate your offer but it would take considerable time to document what I keep in my head and explain how it will all fit together. But there's no reason you can't hack on the code to satisfy your own requirements; that's the nature of open source, after all (and it's something many of us do all the time).