GithubHelp home page GithubHelp logo

Comments (9)

Peltoche avatar Peltoche commented on September 10, 2024

Hi @LippyBoy,

Thanks for the issue, it seems to be a good idea indeed. I see that with ls --color=always the files are colored in green if the user have the executable permission but I don't see any *.

For the specific icon I'm not sure it will make it more readable. For example if we lsd an executable bash script and we replace the bash icon by generic executable icon we duplicate the "this file is an executable" info (color green + icon) and we loose the "this file is a bash script" info with the bash icon. There is currently the same issue with one of the latest change with the symbolic link.

from lsd.

Peltoche avatar Peltoche commented on September 10, 2024

#44 created

from lsd.

Peltoche avatar Peltoche commented on September 10, 2024

#45 created

from lsd.

LippyBoy avatar LippyBoy commented on September 10, 2024

Apparently the * only appears when using the "-F" flag, which was the default on my machine.

This is the full list of symbols:

@ means symbolic link (or that the file has extended attributes).
* means executable.
= means socket.
| means named pipe.
> means door.
/ means directory.

Maybe this should also be a feature.

from lsd.

Peltoche avatar Peltoche commented on September 10, 2024

I learned something new today, thanks to you.

The / is already done for the directories.

The question is: Should it be set as default or do we need a flag for it? Personally I vote to put them by default without any flag, I think it would simplify the options.

from lsd.

alaymari avatar alaymari commented on September 10, 2024

As it is, lsd displays icons for directories and files. I feel adding / to the end of the filename is not a good idea for lsd. I feel icons should indicate the type of the file (link, shell script, etc) and the colors should be as per LS_COLORS.

Edit: The problem with the indicators I have faced is when I double click+middle button press to copy-paste the names, the indicators are also included, which is an annoyance.

from lsd.

Peltoche avatar Peltoche commented on September 10, 2024

You copy-paste issue is interesting and it's true that moving the information into the icons solve the problem in most cases (as explained in my previous message the symbolic link bother me a little).

In any case an option allowing to setup the icons set (current icons / unicode only / no icons) should appear soon. This means that some user would have to possibility to print the result without icons and so I think that the -F flag would be useful for them.

If I resume the discussion:

We add custom icons for all the custom files (pipe / symlink / executable / etc) and we create a -F flag like the classic ls which can be used by the user who doesn't want to use the icons.

Seems good to you?

from lsd.

alaymari avatar alaymari commented on September 10, 2024

As you suggest, a -F may be useful for printing purposes. But, would not the vanilla ls already do that job? :-)

Regarding the icons, I noticed that the TeX file has an icon which is so thin, it is nearly invisible. Can a different icon be set for that; maybe the txt file icon itself would be better than the existing one.

from lsd.

Peltoche avatar Peltoche commented on September 10, 2024

Yep, finally it's probably the best idea to follow the classic ls -F option and add the filetype specific icons. If we do that it means that we should to remove the '/' at the end of the directories when the -F option is not set.

from lsd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.