echasnovski / mini.nvim

Library of 40+ independent Lua modules improving overall Neovim (version 0.8 and higher) experience with minimal effort
MIT License
4.54k stars 175 forks source link

mini-files: How to sort file base on file creat time? #857

Closed Leiyi548 closed 2 months ago

Leiyi548 commented 2 months ago

Contributing guidelines

Module(s)

mini-files

Description

In oil.nvim, you can sort files based on their creation time, but I have checked the mini files document and it does not have this option. image

Neovim version

v0.9.5

Steps to reproduce

  1. nvim -nu minimal.lua
  2. ...

Expected behavior

No response

Actual behavior

hello

echasnovski commented 2 months ago

This is out of scope for being built-in, but can be implemented on the user side similar to toggle showing dot files but utilizing config.content.sort instead.

Closing as not planned.

Leiyi548 commented 2 months ago

This is out of scope for being built-in, but can be implemented on the user side similar to toggle showing dot files but utilizing config.content.sort instead.

Closing as not planned.

fs_entries not include file createtime

image

echasnovski commented 2 months ago

fs_entries not include file createtime

vim.loop.fs_stat() can give that information based on the full path (which is present in the output of get_fs_entry()).