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

Show icons in `tree` command

Open Marin-Kitagawa opened this issue 3 years ago • 1 comments

How to make this to show terminal icons in tree command in pwsh?

Marin-Kitagawa avatar Nov 04 '21 05:11 Marin-Kitagawa

Hi @ruby-rust-perl

The tree command outputs a string and not objects representing files or folders. Terminal-Icons relies on System.IO.DirectoryInfo and System.IO.FileInfo objects output from Get-ChildItem. There isn't an easy way to take what tree outputs and make it usable in Terminal-Icons. An alternative would be to reproduce what tree does in a new function that leverages TI's folder/file resolution and display logic. I'll dig into that a bit to see if it's feasable.

devblackops avatar Nov 13 '21 20:11 devblackops