feat!: support env EZA_QUOTING_STYLE, replace --no-quotes with --quotes=always,auto,never
#584
Got me thinking about the different quoting styles that LS supports, and I think it's reasonable to offer some of this. Also, I am not a fan of the --no-x flags. I think it makes much more sense to offer an ENV var solution for NEVER and default it to auto and then offer a way to pass it in the command line. Idk who would want all their filenames quoted but hey, it's an option for LS.
It would obviously remain defaulted to auto, so the only thing that would break would be the --no-quotes flag would have to either be --quotes=never or the EZA_QUOTING_STYLE=never would have to be set.
Also: for anyone testing this, we are still waiting on #569 to get merged to fix the width/spacing issue
EDIT: should be all set now
It would obviously remain defaulted to
auto, so the only thing that would break would be the--no-quotesflag would have to either be--quotes=neveror theEZA_QUOTING_STYLE=neverwould have to be set.
I mean, right now I do kinda feel comfortable with just saying goodbye to the --no-quotes flag, but post-clap post-1.0 we'd probably not do this, and have --no-quotes equivalent to --quotes=never.
SO, I tried to fix the conflicts here (sorry for necrobumping but I thought it would be fun to try and clear out a bit of backlog). Did we ever talk about perhaps keeping around a backward compat --no-quotes flag? We could hide it from the user (not put in readme etc), but just make it behave like --quotes=never to avoid making this a breaking change
I honestly don't remember if we did. Seems like a reasonable thing to do tho, just to avoid breaking anything