You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"ls" was so outdated, and users may often invoke it several hundreds times a day.
So we all need maximum comfort at reading results.
LSD added icons, styles and tree layout, it's so cool.
But what what we definitely miss is the ability to customize fields: which ones we exactly want and their order.
It's soooo basic and surprising not to have it
Instead we have not intuitive options from "ls" when it comes to mix -l and -i or -o options - I would personally reconsider this to achieve sometime clean.
Think of the format string as flexible as a timestamp provided by the "date" GNU program.
See as attachment the format i like to use. I did it via a mere bash script, piping from the "stat" GNU program.
The community deserves a flexible ultra-fast program and this seems the right project.
%t as file type
%i inode number
%h number of hard links
%n/%N as filename with/out path
%t/%T idem for target if its a link
%p for rwx permissions, with %po %pg %pw dedicated to owner,user,group
%uo/%Uo as user name/id
%ug/%Ug as group name/id
%s/%S as size in bytes/or in units (k,M,G) - i like to display both
etc
date fields as "date" (prefixing with d to remind the link to date and avoid confusion with other): %dy %dm %dd %dh %dm %ds
Any of these fields should be able to carry custom colors, so i think we shoud let user choose either to inject RGB color info into the format string | or in a config file.
"[red]%y%m%d_[green]%h%m%s ...
or
y ff0000 (red)
h 00ff00 (green)
etc
I like also to provided inverted colors to draw attention (directories, special files not regular nor dir)
I have some knowledge of C and may help by providing the core of the code, filling a structure with those elements. If someone wants to work with me already knowing and how to complete the task.
Beside, even more readability is gained by masking data that makes no sense (size for a pipe ...) or replacing it when it's not helpful (e.g. you may want to have "=" displayed when the owner is YOU (id -un) ; show '-' instead of counter "1" when a file has no hard link - or just a binary value "-"/L).
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
"ls" was so outdated, and users may often invoke it several hundreds times a day.
So we all need maximum comfort at reading results.
LSD added icons, styles and tree layout, it's so cool.
But what what we definitely miss is the ability to customize fields: which ones we exactly want and their order.
It's soooo basic and surprising not to have it
Instead we have not intuitive options from "ls" when it comes to mix -l and -i or -o options - I would personally reconsider this to achieve sometime clean.
Think of the format string as flexible as a timestamp provided by the "date" GNU program.
See as attachment the format i like to use. I did it via a mere bash script, piping from the "stat" GNU program.
The community deserves a flexible ultra-fast program and this seems the right project.
%t as file type
%i inode number
%h number of hard links
%n/%N as filename with/out path
%t/%T idem for target if its a link
%p for rwx permissions, with %po %pg %pw dedicated to owner,user,group
%uo/%Uo as user name/id
%ug/%Ug as group name/id
%s/%S as size in bytes/or in units (k,M,G) - i like to display both
etc
date fields as "date" (prefixing with d to remind the link to date and avoid confusion with other): %dy %dm %dd %dh %dm %ds
Any of these fields should be able to carry custom colors, so i think we shoud let user choose either to inject RGB color info into the format string | or in a config file.
"[red]%y%m%d_[green]%h%m%s ...
or
y ff0000 (red)
h 00ff00 (green)
etc
I like also to provided inverted colors to draw attention (directories, special files not regular nor dir)
I have some knowledge of C and may help by providing the core of the code, filling a structure with those elements. If someone wants to work with me already knowing and how to complete the task.
Beside, even more readability is gained by masking data that makes no sense (size for a pipe ...) or replacing it when it's not helpful (e.g. you may want to have "=" displayed when the owner is YOU (id -un) ; show '-' instead of counter "1" when a file has no hard link - or just a binary value "-"/L).
All reactions