Closed DenebTM closed 11 months ago
Changed to draft because I've realised that this messes with multi-column display in its current state.
After some more testing, I've realised that the grid view is currently broken on main
.
Reopening as the problem lies somewhere else, not with this PR.
See recent comments on issues #885, as well as #990 and #1198.
If a file name contains spaces, it will be wrapped in single quotes ('). If a file name contains literal single quotes, it will instead be wrapped in double quotes ("). This somewhat mimicks the default behaviour of modern-day GNU
ls
.This resolves #216 and contributes to #211. It also cleans up the code in the non-printable characters loop a bit.
I personally believe quotes should be the default, but a command-line switch (
--no-quotes
) exists for those who prefer not having them. This also provides a framework for supporting different quoting styles in the future.