Skip to content

Indicate presence of undisplayed hidden files with empty message#2663

Merged
jeremypw merged 20 commits into
mainfrom
jeremypw/fix-empty-label
May 13, 2026
Merged

Indicate presence of undisplayed hidden files with empty message#2663
jeremypw merged 20 commits into
mainfrom
jeremypw/fix-empty-label

Conversation

@jeremypw

@jeremypw jeremypw commented Nov 2, 2025

Copy link
Copy Markdown
Contributor

Fixes #1278

BEFORE

Screenshot from 2025-11-03 09 28 38

AFTER

  • Completely empty folder
Screenshot from 2025-11-08 19 21 45
  • Only hidden files
Screenshot from 2026-02-09 17 56 12
  • Hidden files temporarily revealed
Screenshot from 2026-05-11 15 13 19

@jeremypw jeremypw marked this pull request as ready for review November 3, 2025 09:35
@jeremypw jeremypw added this to the 7.2.0 milestone Nov 3, 2025
@jeremypw jeremypw requested a review from a team November 3, 2025 11:08
@jeremypw jeremypw mentioned this pull request Nov 7, 2025
3 tasks
@teamcons

teamcons commented Nov 7, 2025

Copy link
Copy Markdown

if we mention hidden files we may as well straight up display a button to show them, instead of "lol go find it yourself" ?

@jeremypw

jeremypw commented Nov 8, 2025

Copy link
Copy Markdown
Contributor Author

@danirabbit What is your opinion of adding a "Show Hidden" button in this context?

@jeremypw

jeremypw commented Nov 8, 2025

Copy link
Copy Markdown
Contributor Author

OK, so should it change the global setting or just reveal the hidden files for the folder in question?

@teamcons

teamcons commented Nov 8, 2025

Copy link
Copy Markdown

A one-time "display this folder" that lasts only till you change folder could be nice

@jeremypw

jeremypw commented Nov 8, 2025

Copy link
Copy Markdown
Contributor Author

That would be possible. My only concern is that there would be no obvious way to revert the step without reloading or navigating away from the folder (the appmenu and context menu would still show hidden files are not shown). Its not a big deal though I guess.

@jeremypw

jeremypw commented Nov 8, 2025

Copy link
Copy Markdown
Contributor Author

@teamcons Latest commit implements a basic implementation of you idea. Instead of having two labels, there are now only one showing at any time - corresponding to the two relevant situations. I have also avoided the words "Empty Folder" as it is rather ambiguous.

@teamcons

teamcons commented Nov 14, 2025

Copy link
Copy Markdown

"This folder contains only hidden files" ?
"hidden files are present" sound slightly ominous
That is a nitpick tho. Pretty cool and thank you for adding this. It feels more "aware"

@jeremypw

Copy link
Copy Markdown
Contributor Author

I wonder whether the button should show below the text? Any styling required?

@jeremypw jeremypw modified the milestones: 7.2.0, 7.2.1 Dec 7, 2025
@jeremypw jeremypw modified the milestones: 7.2.1, 7.3.1 Dec 27, 2025
@zeebok

zeebok commented Feb 8, 2026

Copy link
Copy Markdown
Contributor

I wonder whether the button should show below the text? Any styling required?

Using only mental images I feel like below might look cleaner

@jeremypw

jeremypw commented Feb 9, 2026

Copy link
Copy Markdown
Contributor Author

@zeenbok, Yes, I guess action buttons more usually show below message text. I'll amend.

@jeremypw jeremypw marked this pull request as draft February 9, 2026 10:46
@jeremypw jeremypw marked this pull request as ready for review February 9, 2026 17:57
@jeremypw

jeremypw commented Feb 9, 2026

Copy link
Copy Markdown
Contributor Author

@zeebok Moved button as per your suggestion. Unsure of the best alignment but I have use CENTER as the moment analagous to the Welcome screen

@zeebok

zeebok commented Mar 30, 2026

Copy link
Copy Markdown
Contributor

I think this is good to go if you fix the conflicts

@jeremypw jeremypw marked this pull request as draft April 5, 2026 15:24
@jeremypw

jeremypw commented Apr 5, 2026

Copy link
Copy Markdown
Contributor Author

Need to make compatible with recent changes to settings and actions.

@jeremypw jeremypw modified the milestones: 7.3.1, 7.3.2 May 11, 2026
@jeremypw jeremypw marked this pull request as ready for review May 11, 2026 14:15
@jeremypw

Copy link
Copy Markdown
Contributor Author

@zeebok Could you take another look when you have time? I have updated this for recent changes to main and also added a refinement allowing the hidden files temporarily shown using the override for that folder to be hidden again. This requires the overlay to continue to be shown but I do not think this is likely to be a problem if the user is only taking a peek at the files.

@zeebok

zeebok commented May 12, 2026

Copy link
Copy Markdown
Contributor

Yeah I can take a look tomorrow!

@zeebok

zeebok commented May 12, 2026

Copy link
Copy Markdown
Contributor

It all functions as you describe! Code looks good too. I do notice a strange delay of sorts with this new overlay. If I am in a folder with this message and go up to the parent, I see the folder change and the message overlay is still there for a moment. Also see this delay when pressing the Show/Hide button; slight moment after clicking for the button to update.

@jeremypw

Copy link
Copy Markdown
Contributor Author

Thanks for the review. I'll see if I can reduce the update delay before merging.

@jeremypw jeremypw enabled auto-merge (squash) May 13, 2026 10:20
@jeremypw jeremypw merged commit 936d66b into main May 13, 2026
4 checks passed
@jeremypw jeremypw deleted the jeremypw/fix-empty-label branch May 13, 2026 10:22
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

Successfully merging this pull request may close these issues.

Ignore hidden files for 'this folder is empty' message

3 participants