Forum seems lazy, here is my simplest solution, for use with our templates. Sorry, I cant work it out just now without javascript, maybe the macro masters can have a try, but it wont be as simple as this.
Append this to main.js:
function folderQuery() {
frm = document.folderForm;
if(frm.query.value.length < 3) {
alert(lv_searchAlert);
} else {
document.location.href = "http://"+serverHost+"?folders-filter=*"+frm.query.value+"*&recursive&files-filter=%5C";
}
}
Put this in place of the advanced search link and the simple search form:
<form action="javascript:folderQuery();" name="folderForm" method="get">
<input class="formInput" type="text" name="query" size="13" maxlength="32" value="{.$search-data.}" onclick="if(this.value=='{.$search-data.}')this.value=''"/>
<input type="submit" value="Go"/>
</form>