Made consistent and simplified code to show search placeholders

It also fixes an issue when switching from "filter" to "search in files" and vice-versa.

review: @devoncarew