Terminal-Icons icon indicating copy to clipboard operation
Terminal-Icons copied to clipboard

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

Open Matsuyanagi opened this issue 2 years ago • 0 comments

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

Matsuyanagi avatar Sep 25 '22 18:09 Matsuyanagi