Comments (6)
The argument can be possible indeed. We only define the behavior in case of piped output (lsd --indent | wc -c
for example). It seems many implementations disable this kind of feature in case of pipe in order to allow the following program to work properly.
I think the following would do the trick:
lsd --prefix-indent=never # never indent (by default)
lsd --prefix-indent=auto # only indent when the output is a tty
lsd --prefix-indent=always # always indent
What do you think of it?
from lsd.
As a sidenote, this is a ton faster than colorls
. As soon as some more features are added, I'm going to make this my default ls
command. Great work, @Peltoche.
from lsd.
Hello @alichtman,
Lsd is a little more than a simple rewrite as it aims to offer more features. That's why we can have some differences with the original colorls package. For the tabulation there is several opinions on this subject:
- exa doesn't indent
- colorls indent
- ls doesn't indent
- lsd doesn't indent
I think that it's a good idea to follow the classic ls as much as possible so I don't think lsd should implement this tabulation by default.
from lsd.
It would be cool to be able to set the indentation somehow.
I was thinking this could be an extra argument, like -indent
. I would use it, but I agree that it shouldn't be enabled by default.
from lsd.
This seems to make sense, yeah. I think this is a good solution, but there may be a better one. I'll think about it some more and let you know if I come up with anything.
from lsd.
As there is no news I close this ticket. Feel free to reopen it if you want to propose your solution
from lsd.
Related Issues (20)
- should we hide the user/group block when permission set to attribute in windows HOT 3
- alacritty no show icon HOT 1
- fails to build with `--locked` HOT 3
- [Bug]: `name` icon settings with capital letters are ignored
- icons.yaml not letting configure any new extensions except for default
- [Bug]: "corrupted size vs. prev_size" on ARM with "--git -l" HOT 1
- Missing icon HOT 3
- [Bug]: lsd unicode characters not piped correctly in windows HOT 1
- [Bug]: All files from NTFS partition showing with green highlight HOT 1
- Truncate file names for a better looking grid list HOT 2
- Date formatted value doesn't work HOT 5
- Debian repo way out of date
- [Bug]: lsd 1.1.2 reporting 1.0.0? HOT 4
- [Bug]: Incorrectly shown icons after update HOT 1
- [Bug]: LSD not reading config.yaml HOT 5
- [Feature] Flag to show all blocks (columns), overriding config.yaml
- [Bug]: `lsd` has a different pipe behavior from `ls` HOT 3
- [Bug]: LSD -l permissions incorrect and user/group are both always "?"
- Names not aligned when using nerd font glyphs and Unicode emojis cusomization file HOT 1
- Tests fail on OpenBSD with Rust 1.78.0
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lsd.