retype icon indicating copy to clipboard operation
retype copied to clipboard

Hide folder unless navigated into

Open Le0Developer opened this issue 2 years ago • 1 comments

Hey! Wondering if it's possible to hide a folder from the navigation unless the user is currently already in the folder?

For example, imagine the following setup:

// index.md
# Hello world

// private-docs/index.yml
visibility: hidden

// private-docs/first.md
# First

// private-docs/second.md
# Second

When navigated to /, the private-docs folder is not shown in the navigation. However, upon navigating to private-docs/first (by changing the URL), the folder is added to the navigation and you can see the 2nd file and navigate to it in the navigation (the folder is hidden again after navigating outside of it).

Le0Developer avatar Jul 23 '23 23:07 Le0Developer

Interesting idea, although not exactly possible with the current options within Retype. I can flag this as a feature request.

Something kinda similar would be visibility: protected, but those Pages would be visible in the navigation tree. They would require entering a password upon your first navigation to the Page, then the other protected pages would be automatically unlocked.

geoffreymcgill avatar Jul 24 '23 00:07 geoffreymcgill