Achrou / goindex-theme-acrou

This is a goindex theme.一个goindex的扩展主题。
https://ossdev.node6.workers.dev/
MIT License
1.62k stars 874 forks source link

Show folders in search results first #102

Closed abhishek-sharma8 closed 4 years ago

abhishek-sharma8 commented 4 years ago

Hi, thanks for your awesome work. I was wondering if there's a way that the search results show the folders first and the files that contain the search query later. I have seen scripts doing that but can't find it.

Achrou commented 4 years ago

reference FAQ

A comma-separated list of sort keys. Valid keys are 'createdTime', 'folder', 'modifiedByMeTime', 'modifiedTime', 'name', 'name_natural', 'quotaBytesUsed', 'recency', 'sharedWithMeTime', 'starred', and 'viewedByMeTime'. Each key sorts ascending by default, but may be reversed with the 'desc' modifier. Example usage: ?orderBy=folder,modifiedTime desc,name. Please note that there is a current limitation for users with approximately one million files in which the requested sort order is ignored.

abhishek-sharma8 commented 4 years ago

Thanks. Can I hide everything and only show the folders in search results?