-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Motivation
When users enable "Show Hidden Files" in a folder, hidden files (those starting with .) become visible. However, users cannot easily tell how many files are hidden vs. visible without manually counting. This information is useful for understanding folder contents and verifying that hidden files are being displayed correctly.
Current Behavior
The status bar shows only the total count of visible items (e.g., "8 items" or "5 files, 3 folders"), but doesn't indicate how many of those items are hidden files even when hidden files are being displayed.
Reproduction Steps:
- Open Puter and navigate to any folder (e.g., Documents)
- Create some visible files:
- Right-click → New → Text Document
- Name it
file1.txt - Repeat to create
file2.txt
- Create some hidden files (files starting with
.):- Right-click → New → Text Document
- Name it
.hidden1(note the dot at the beginning)
- Observe: By default, the hidden files are visible in the folder view
- Look at the status bar at the bottom - it shows only "2 items" (the visible files)
Expected Behavior
When hidden files are visible in the current view, the status bar should indicate how many items are hidden files. For example: "8 items (3 hidden)" or "8 items • 3 hidden".
Acceptance Criteria:
- When "Show Hidden Files" is enabled and hidden files are present, status shows count of hidden items
- Format should be clear, e.g., "8 items (3 hidden)" or "5 files, 3 folders (2 hidden)"
- When no hidden files are present, status remains as-is (e.g., "5 items")
- When "Show Hidden Files" is disabled, no hidden count is shown (since they're not visible)
- Count updates dynamically when files are added/removed
- Hidden count only includes items starting with
.(standard hidden file convention)
Steps To Test
-
Open Puter and create a new folder:
- Right-click on Desktop or in Documents
- Select New → New Folder
- Name it "TestHiddenFiles"
- Double-click to open it
-
Create visible files:
- Right-click → New → Text Document
- Name it
document1.txt - Right-click → New → Text Document
- Name it
document2.txt - Verify status bar shows "2 items"
-
Create hidden files (files starting with dot):
- Right-click → New → Text Document
- Name it
.hidden1(must start with a dot) - Right-click → New → Text Document
- Name it
.hidden2 - Right click in the folder and check "Show Hidden Files" if it's not checked.
- Status bar shows visible item count and hidden item count
Submission
Download https://cap.so/ to record your screen (use Studio mode). Export as an mp4, and drag and drop into an issue comment below.
Guide to submitting pull requests: https://hackmd.io/@timothy1ee/Hky8kV3hlx