Conversation
Add a new option to display column titles when using the -l flag Signed-off-by: A Ottenheimer <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Feature Request:
Add a new option to display column titles when using the -l flag
This is following up on the comment at https://lists.gnu.org/archive/html/coreutils/2023-03/msg00086.html by Pádraig that adding headers to
lsbears merit.Headers:
-i)-s)-g)-G/-o)--author)-Z)Alignment:
Tests:
Test suite tests:
tests/ls/header.sh:ls -l --header: with columns (Mode Links Owner Group Size Date Name).ls -il --header: Add Inode columnls -sl --header: Add Blocks columnls -isl --header: Add both Inode and Blocks.ls -g --header/ls -o --header/ls -og --header: omission of Owner/Group.ls -n --header: numeric UID/GID column headerls -l --header --author: Add author column.ls -l --header --full-time: full timestampls -l --header file1 file2: withouttotalline.ls -lR --header: recursive directory headers.ls --headerwithout-l: do not display without -l flag.Examples:
I understand that the preferred process for sending changes
is to email [email protected] or [email protected] respectively.
However, as a first attempt at submitting a patch to such an important repo, I'd prefer to see if this
is acceptable first.
Copyright Assignment
I assign copyright of this to the FSF. I have submitted the email to [email protected]