Skip to content
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

Directory and column descriptions only show up on first launch #41

Closed
LucasOe opened this issue Aug 10, 2020 · 4 comments
Closed

Directory and column descriptions only show up on first launch #41

LucasOe opened this issue Aug 10, 2020 · 4 comments

Comments

@LucasOe
Copy link

LucasOe commented Aug 10, 2020

The "Directory" and the "Mode", "LastWriteTime", "Length" and "Name" text only show up on the first launch of Get-ChildItemColor in the directory. After chaning the dir the headline text shows up again. This doesn't happen with Get-ChildItemColorFormatWide

Cmder

@joonro
Copy link
Owner

joonro commented Jun 2, 2022

Hi sorry for the late response and thank you for reporting this --- I quickly checked the code and there is no difference between the first and and the second, so it is is quite an odd behavior. Will keep this in mind.

@LucasOe
Copy link
Author

LucasOe commented Jun 3, 2022

After looking at it again I noticed this is semi intended behaviour. The directory only gets printed if the parent directory has changed since the last call. LastParentName has to be not equal to ParentName. Removing the if clause prints the directory before every single file however.

@joonro
Copy link
Owner

joonro commented Jun 6, 2022

I see, thank you for the pointer --- I forgot about doing this. Yes this doesn't make sense, I should remove this.

@joonro
Copy link
Owner

joonro commented Jun 6, 2022

Fixed with 78ab202.

@joonro joonro closed this as completed Jun 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants