Allow custom fields and format when printing file info
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 200
- Forks
- 85
- Avg merge
- 3d 21h
- Merged PRs (30d)
- 2
Description
When printing file info to the screen or writing it to a text file, it would be nice to allow the user to specify the fields and formats they'd like to use. This could be done with printf/strftime-style format string, e.g.
%F - full path of file
%f - basename of file
%m - mode in octal
%M - mode in long dash form -rwxr-x---
%s - size in bytes
%S - size as float with human-readable units
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No files, tests, or entry points are named in the issue. Start by locating the file-info output path and any existing screen or text-file formatting tests. Done means users can select the listed fields and formats for both output destinations, with behavior covered by tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100