Skip to content
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

Feature request: append directory suffix indicator (like directory \\ ) to entries like linux ls -F #87

Open
Matsuyanagi opened this issue Sep 25, 2022 · 0 comments

Comments

@Matsuyanagi
Copy link

Expected Behavior

'\' is added to the end of the directory.
( '/' or '\' depends on OS , [System.IO.Path]::DirectorySeparatorChar )

-a---        2022-09-15     13:59           4735   dot.nyagos.org
d----        2019-12-30     22:43                  source\
d----        2021-01-17     00:41                  vendor\
la---        2022-09-25     02:33              0   text.2022-03-29.txt  E:\Works\text.2022-03-29.txt
l----        2022-09-25     02:33                  Workbench  E:\Works\Workbench\

Current Behavior

Only 'Mode' and 'icon' can distinguish types.

-a---        2022-09-15     13:59           4735   dot.nyagos.org
d----        2019-12-30     22:43                  source
d----        2021-01-17     00:41                  vendor
la---        2022-09-25     02:33              0   text.2022-03-29.txt  E:\Works\text.2022-03-29.txt
l----        2022-09-25     02:33                  Workbench  E:\Works\Workbench

Possible Solution

Take file information with function Resolve-Icon,
It turns out that function Format-TerminalIcons creates output lines.
I think adding a suffix to the end of the file name will do the trick.

Steps to Reproduce (for bugs)

Context

Originally, the file suffix may not be the role of Terminal-Icon.
I was looking for a module to suffix files like ls -F in linux but couldn't find it.
I thought it would be a good idea to opt-in to Terminal-Icon's filename manipulation.

Your Environment

  • Module version used: 0.10.0
  • Operating System and PowerShell version: Windows 21H2 , PSVersion 7.2.6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant