Implement autocomplete for the directory search field