Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show file size in file browser #69

Open
ioplker opened this issue Mar 8, 2021 · 1 comment
Open

Show file size in file browser #69

ioplker opened this issue Mar 8, 2021 · 1 comment

Comments

@ioplker
Copy link
Contributor

ioplker commented Mar 8, 2021

Hi! Is it possible to show file sizes in file browser aligned to the right of file names? In human-readable format like so:

~/.textadept/modules/textredux/core : 8/8 items

../
buffer.lua                                                                32Kb
filteredlist.lua                                                         124Mb 
@rgieseke
Copy link
Owner

rgieseke commented Mar 8, 2021

There are two options i think.

  • Do something like the git example in examples and shell out to ls.
  • write your own list function (or extend it) which gives back the file size in addition to the current checks (see fs.lua)
    Textredux uses luafilesystem and this can also give the size.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants