Custom path completion 683

Hi Pazz,

Here is a pull request for the custom path completion (issue #683).
I messed a bit with the other custom-path-completion branch so I created a new one: custom-path-completion-683 (however I still get why some commits I didn't make appear here).

Yann