Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
lower minimum search length to 2 characters
Signed-off-by: Robin Appelman <[email protected]>
  • Loading branch information
icewind1991 authored and backportbot[bot] committed Jul 9, 2020
commit a7d4a69898c2d147a1c59d1225ef630f0e77c493
2 changes: 1 addition & 1 deletion apps/files/js/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
search.setFilter('files', function (query) {
if (self.fileAppLoaded()) {
self.fileList.setFilter(query);
if (query.length > 2) {
if (query.length > 1) {
//search is not started until 500msec have passed
window.setTimeout(function() {
$('.nofilterresults').addClass('hidden');
Expand Down
2 changes: 1 addition & 1 deletion core/search/js/searchprovider.js
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@
function(query) {
if (lastQuery !== query) {
currentResult = -1;
if (query.length > 2) {
if (query.length > 1) {
self.search(query);
} else {
self.hideResults();
Expand Down