Allow saving the current query to a file