nushell icon indicating copy to clipboard operation
nushell copied to clipboard

Add icons for files or folders like logo-ls

Open qianhaiyang opened this issue 2 years ago • 5 comments

Related problem

No response

Describe the solution you'd like

please add icons for files or folders to make it beautiful.

Refer to Yash-Handa/logo-ls

Describe alternatives you've considered

No response

Additional context and details

No response

qianhaiyang avatar Jun 22 '22 03:06 qianhaiyang

We already have icons for ls | grid --color

sholderbach avatar Jun 22 '22 10:06 sholderbach

We already have icons for ls | grid --color

cool!!!But consider supporting material icons or atom icons for ls.I think ls | grid --color is a little bit of inconvenient.

qianhaiyang avatar Jun 22 '22 11:06 qianhaiyang

ls | grid --color is a little bit of inconvenient.

which is why I have an alias like alias lsg = (ls | sort-by type name -i | grid -c)

fdncred avatar Jun 22 '22 11:06 fdncred

When I try ls | grid -c, I get ? inside a box instead of icons. How do I get the icons to appear in Windows 10/Terminal 1.13/Nushell 0.65?

xiaoxi-david avatar Jul 10 '22 08:07 xiaoxi-david

When I try ls | grid -c, I get ? inside a box instead of icons. How do I get the icons to appear in Windows 10/Terminal 1.13/Nushell 0.65?

You need to use a font that supports icons like a nerd font. I use Fira Code.

fdncred avatar Jul 10 '22 13:07 fdncred

We already have icons for ls | grid --color

This is cool. Is there a way to format the grid such that it follows the vertical structure seen by ls, exa (e.g. print in vertical representation instead of horizontal)

pulanski avatar Aug 13 '22 00:08 pulanski

@pulanski There is no way right now to add icons to the standard ls table view. However you can make the grid on column like this ls | grid -c -w 30

fdncred avatar Aug 13 '22 00:08 fdncred

I cannot see any icons

image

I search on the doc for "icon" but I've found nothing :)

You're not using a font with icons. Try using a nerd font.

fdncred avatar Oct 03 '22 10:10 fdncred

Is there a way I can get this type of view?

image

because the best i can get with icons is this which I am not really used to I am used to more of this view above with pwsh and fish

image

or maybe better icons in the table beside file names?

Felopater-Melika avatar Aug 12 '23 19:08 Felopater-Melika

We do not have a pwsh dir-like output. ATM icons are only available in grid mode.

fdncred avatar Aug 12 '23 19:08 fdncred

We do not have a pwsh dir-like output. ATM icons are only available in grid mode.

How to use it?

and will there be icons in the table output? is there a way i can modify nushell to have the icons in table mode? or make grid mode like pwsh?

Felopater-Melika avatar Aug 13 '23 17:08 Felopater-Melika

@Felopater-Melika The grid mode examples are above in this issue like ls | sort-by type name -i | grid -c. I realize this is not what you're asking for but it's all that is available right now.

fdncred avatar Aug 13 '23 20:08 fdncred