Don't complete commands if there is already an submode set.
Added completion for search-queries.