sayanarijit / xplr

A hackable, minimal, fast TUI file explorer
https://xplr.dev
MIT License
4.06k stars 75 forks source link

Provide option to sort based on user created custom column #674

Closed ChillarAnand closed 8 months ago

ChillarAnand commented 8 months ago

Thanks for the great work on xplr.

I have created a custom called line_count in xplr as described in this post.

However, I couldn't find any option or a way to customize on how to sort based on this column.

It would be great if xplr could sort files based on user-created columns.

sayanarijit commented 8 months ago

Cool post. Unfortunately, sorting based on custom column isn't supported, and the implementation isn't trivial, so I guess it's out of scope for this project.

sayanarijit commented 8 months ago

As a side note, you might want to cache the function call result by file path and file modified time to make the rendering faster.

ChillarAnand commented 8 months ago

As a side note, you might want to cache the function call result by file path and file modified time to make the rendering faster.

Will do that. Thanks for the tip.