Skip to content

Auto example directories with only 1 child#11737

Merged
keith merged 1 commit intomasterfrom
ks/auto-example-directories-with-only-1-child
Mar 31, 2026
Merged

Auto example directories with only 1 child#11737
keith merged 1 commit intomasterfrom
ks/auto-example-directories-with-only-1-child

Conversation

@keith
Copy link
Copy Markdown
Contributor

@keith keith commented Mar 31, 2026

This is similar to the github file browser behavior such that if there
is a directory in the file tree you're browsing that only has a single
other nested directory in it, it will expand those directories until it
gets to one with multiple entries, or only files.

This makes it faster to expand out the common case of many nested
subdirectories like external/k8-fastbuild/bin/external/REPO/

Before:

before.mov

After:

after.mov

This is similar to the github file browser behavior such that if there
is a directory in the file tree you're browsing that only has a single
other nested directory in it, it will expand those directories until it
gets to one with multiple entries, or only files.

This makes it faster to expand out the common case of many nested
subdirectories like `external/k8-fastbuild/bin/external/REPO/`
@keith
Copy link
Copy Markdown
Contributor Author

keith commented Mar 31, 2026

here's a more real world example of where this is nice:

image

Copy link
Copy Markdown
Member

@bduffany bduffany left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great idea! this will save a bunch of clicks

@keith keith merged commit 32f28d4 into master Mar 31, 2026
10 of 12 checks passed
@keith keith deleted the ks/auto-example-directories-with-only-1-child branch March 31, 2026 15:01
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.

2 participants