athityakumar / colorls

A Ruby gem that beautifies the terminal's ls command, with color and font-awesome icons. :tada:
MIT License
4.9k stars 387 forks source link

When the argument is a file with path provided, show the relative path of the file #594

Closed ayushpoddar closed 1 year ago

ayushpoddar commented 1 year ago

Description

In order to demonstrate what this PR does, I am displaying the difference in the output of the command colorls exe/colorls (which is a file) before and after this PR

Before this PR

image

After this PR

image

Comment

This PR takes this gem one step closer to the behaviour of the in-built ls command.

Details

codecov-commenter commented 1 year ago

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.08 :tada:

Comparison is base (d1e28ed) 92.04% compared to head (414820b) 92.13%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #594 +/- ## ========================================== + Coverage 92.04% 92.13% +0.08% ========================================== Files 8 8 Lines 616 623 +7 ========================================== + Hits 567 574 +7 Misses 49 49 ``` | [Impacted Files](https://codecov.io/gh/athityakumar/colorls/pull/594?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None) | Coverage Δ | | |---|---|---| | [lib/colorls/fileinfo.rb](https://codecov.io/gh/athityakumar/colorls/pull/594?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None#diff-bGliL2NvbG9ybHMvZmlsZWluZm8ucmI=) | `90.19% <100.00%> (+1.55%)` | :arrow_up: | | [lib/colorls/flags.rb](https://codecov.io/gh/athityakumar/colorls/pull/594?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None#diff-bGliL2NvbG9ybHMvZmxhZ3MucmI=) | `89.59% <100.00%> (ø)` | |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

avdv commented 1 year ago

Thank you!