Add to Index now prefer selection in file browser

If there is no selection, it’ll add the current file to the index.