ifm icon indicating copy to clipboard operation
ifm copied to clipboard

Pagination Feature

Open zenull opened this issue 5 years ago • 7 comments

Could you please add pagination feature so it can be possible browse directories with thousands of files?

Many thanks and much appreciated!

zenull avatar Sep 19 '20 10:09 zenull

Yes. I'm working currently on an update which comes with some breaking changes. but is not ready yet.

misterunknown avatar Sep 22 '20 18:09 misterunknown

If you don't want to wait for the next release, you can build the IFM from the branch "sane-coding-style" which I just pushed. There is an additional config option "paging", which is false by default, but can be set to true.

Note: In this branch I rework the error messages, so you might get error messages saying "null". In the best case this shouldn't happen :-P

misterunknown avatar Sep 22 '20 18:09 misterunknown

I would love something like this as well. I have a few large directories and they take forever to load ...

BTW, thanks for creating and opensourcing this awesome project!

SaswatPadhi avatar Oct 04 '20 15:10 SaswatPadhi

I would love something like this as well. I have a few large directories and they take forever to load ...

Hm, the current solution works only client-side, which does not reduce the loading time for the entire file table. Implementing a "lazy-loading" solution would take some more time.

misterunknown avatar Oct 05 '20 14:10 misterunknown

Thank you, @misterunknown.

Either full lazy loading, or lazy loading of metadata (size, permissions, etc.) would be great for large directories.

SaswatPadhi avatar Oct 07 '20 17:10 SaswatPadhi

I think I'll go with full lazy loading. Lazy loading only for the metadata would require some huge effort on the client-side and I'm really a JS noob. I hope I can use the DataTables library to handle it client-side, and hence only have to implement it server-side.

misterunknown avatar Oct 08 '20 12:10 misterunknown

Bug: when pagination enabled - image preview work only on 1-st page.

novashdima avatar Jun 09 '22 10:06 novashdima