New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Working with options / flags #4
Comments
@kaustubhhiware - Can you confirm whether this is fixed on current master by pulling it? (as of commit 23d95fc) That is, usage like |
Umm, there is good news and bad news.
Bad news:
|
Understood. Previously, lc was only to work without options and hence it had custom indents and stuff. But now that I want lc to colorize any output of ls, it has to mimic it. Currently, it splits by newline and then space to get all words. If word is file / directory, colorize. Else, just print. This is the reason behind the issue #5 too. It somehow now has to be made to work without splitting with \n and space - and rather just do string manipulation on output of ls. |
@kaustubhhiware - Just had a look at this link and seems like it was a bad idea to try adding all ls flag features to lc. I think it'd be better to keep |
Hmm, maybe just stick with whatever best you do. According to me, only two flags could be useful to someone:
I don't think all flags need to be covered, for instance, if I were interested in more detailed information, I would just do |
|
Can confirm this as per commit Although I would suggest to add some error handling. If I were to execute Current response to incorrect command:
|
Thanks! Closing this issue now. 😄 |
@athityakumar I think this needs to be known. This seems intentional, since the number of listings per row seems to depend on the longest name in that folder. This is in no way an issue, but might as well check. |
@kaustubhhiware - Currently, it doesn't depend on the longest name in the folder, but the longest in each column being shown. But sure, error handling is required. Or rather, proper logic to rule out the incorrect flags (so, except |
ls -l
works, but something likelc -l
doesn't. Having this feature to highlight file formats in strings would be a great feature.The text was updated successfully, but these errors were encountered: