-
-
Notifications
You must be signed in to change notification settings - Fork 441
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
Create a git integration #7
Comments
Can you explain what kind of git integration you're looking to add? |
Hello @alichtman, There is no defined specs yet. This feature is already implemented by the colorls and the exa projects, I think it can be a good start to check how they do it. |
There is an example on the exa website: https://the.exa.website/features/git Basically there is a new column that displays the git status for the files in the listed directory. (new, modified etc..) |
Seems cool. I think that we can do something even better with the icons support. I don't know if we should add a new icons for the git status or just override the existing one. We can also add a new column of course. |
Another tool to check out that displays the git status of files is ranger. I like their use of icons, and I also like that they display the git status of entire repos too, so you could |
Maybe add a option or a flag to hide files based on the .gitignore file |
I definitely support this. Would be useful to be able to see the current git status of files and also being able to hide files based on the .gitignore file. |
+1 from me! I'd really love to have this as well, it's the only thing I still miss from exa/colorls! |
+1!!!! |
I like this idea; maybe I can do it. Is there already someone on this issue ? About the icons, if we want funny glyphs, my suggestions are (from https://www.nerdfonts.com/cheat-sheet) The display should be with two columns (staged, not staged) To get git info, I can use libgit2 (https://github.com/rust-lang/git2-rs) Is there any other constraint ? |
Hi @hpwxf , There is noone working on this right now, please feel free to take this up and thanks for contributing to LSD! as the icons part, maybe we should have @meain 's attention, PS: |
Hey @hpwxf, thanks a lot for taking looking into this. I have not been able to fully think through it but here are few things that I wanted to mention. I don't think separating the output of ls to two columns would be a good idea, this should be just a "block" similar to size or date. As for the representation, we could use how git-status represents it with two items (working tree and index). This would make the data familiar to read. We kinda loose the details on partially staged files for example if we stick to just one char/icon. About the icons, I think icons should be optional as this feature should also be usable by people who do not have the proper fonts setup. We could have this configurable and make it use icons, but I am not also worried if having two icons close together would look good. Related to the implementation, when listing a top level folder |
Gather flags for all files in a git directory (panic out of git directory).
@hpwxf That sounds good. |
* Enabled using `cargo build --feature=git` * git block is by default on the left of name block * use `lsd --git --long` to enable git status info (only available on long display) * sort by git status using `lsd --sort=git --long`
* Enabled using `cargo build --feature=git` * git block is by default on the left of name block * use `lsd --git --long` to enable git status info (only available on long display) * sort by git status using `lsd --sort=git --long`
* Enabled using `cargo build --feature=git` * git block is by default on the left of name block * use `lsd --git --long` to enable git status info (only available on long display) * sort by git status using `lsd --sort=git --long`
* Enabled using `cargo build --feature=git` * git block is by default on the left of name block * use `lsd --git --long` to enable git status info (only available on long display) * sort by git status using `lsd --sort=git --long`
Completely unsolicited, but Git Integration in a manner similar to colorls in the grid view would be really nice for at a glance information. |
After this PR is merged, this seems to be a doable improvement. |
I love |
For sure, PR #495 should be updated. Is there only this remark #495 (comment) to solve? |
Any news on this? |
Thank you to ask. It seems useful to update my PR. I will try to do on next Wednesday (Feb 15th). |
I'm rebasing my previous work on master branch. I have many What do you prefer? default feature or optional feature ? |
I'm thinking it could be enabled on systems that support it. Don't think there is any point in keeping it optional. |
Ok; the only unsupported arches are:
Before the PR, I've just something to check about
and it should be done (hopefully in a few days). |
It's almost done. To fix issues shown in my previous PR, I need to know how to manage the case where we have:
In other words, do you consider that the output of Here my demo to plau this And some comparisons on it between |
hi @hpwxf, in my opinion, I would vote +1 for the |
I'm waiting two days for any other suggestions, and then I push my PR. |
/close |
1 similar comment
/close |
@zwpaper: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
No description provided.
The text was updated successfully, but these errors were encountered: