ag-typed function. Version, where one can choose file type to search.