lsd icon indicating copy to clipboard operation
lsd copied to clipboard

Do not quote filename in 'oneline' view

Open eugenesvk opened this issue 2 years ago • 3 comments

You already have columns separating values, no need for unnecessary symbols that can also be part of file names, that's just confusing, especially when it makes "a'b'".txt look like '"a'\''b'\''".txt'

eugenesvk avatar Jan 15 '23 17:01 eugenesvk

This is done to keep the output consistent with gnu ls.

meain avatar Jan 16 '23 03:01 meain

But you're currently inconsistent, gnu ls has --quoting-style=WORD option which lsd doesn't, it even has an option to not use quotes (but still uses escapes), and doesn't have an option to do nothing, but at any rate I don't understand why that prevents lsd from adding this explicit user option for those who don't care about being 100% consistent, you can still be consistent by default

eugenesvk avatar Jan 16 '23 06:01 eugenesvk

Adding --quoting-style seems like a useful option. I was unaware of that flag.

meain avatar Jan 16 '23 07:01 meain