Added automatic selection of prefix for the selected item

I think that could be useful ! :-)