Open milahu opened 1 year ago
This is interesting, there was a conversation about this on Discord as well: https://discord.com/channels/729975036148056075/729975036664086560/1049379410228301935
A few notes:
/
is good or not, still making up my mind about thatreadme.md
kinda makes sense in the context of documentation, some might say index.md
would be also good/better?Happy to hear more suggestions, edge cases, and considerations
How about prioritizing
index.md
> README.md
> <name of the directory>.md
> show a explorer view
How about prioritizing
index.md > README.md >
.md > show a explorer view
👍 My understanding is that this chain of defaults (at least index.md and readme.md) is the same as how github.com chooses docs to render in a repo directory, which feels good and consistent!
That's interesting, do you have a reference for that chain of defaults?
Unfortunately not — I've looked and it looks like it doesn't exist anywhere in the docs... I can try to make a demo repo at some point to test
github tree api index file:
Describe the bug
foam navigates to
somedir/.md
instead ofsomedir/readme.md
Small Reproducible Example
No response
Steps to Reproduce the Bug or Issue
lets say i have this markdown file
then Control-Click on
[somedir/](somedir/)
navigates tosomedir/.md
Expected behavior
foam should use
somedir/readme.md
as the index file of thesomedir/
folder... or show a directory listing, if there is no index file
my goal is a "buildless" wiki on the github blob api so readme.md is the default index file, and i can use only markdown links
Screenshots or Videos
No response
Operating System Version
x
Visual Studio Code Version
x
Additional context
No response