api.commands: improved tab-completion of :rename and others

The list of items that you tab through is now constrained to non-hidden
files and the order is the same as visible on the screen - starting from
the current file.