wikmd icon indicating copy to clipboard operation
wikmd copied to clipboard

NavBar

Open adamwojt opened this issue 3 years ago • 9 comments

I am really missing sticky NavBar on the left for this library. i think it might be bit different request than https://github.com/Linbreux/wikmd/issues/51 Virtually all docs have this.

image image image

adamwojt avatar Sep 20 '22 17:09 adamwojt

Hi @adamwojt, What kind of navbar do you mean? A table of contents of the current page? We are currently working of a [[toc]] macro, there are also plans to create a sidebar. https://github.com/Linbreux/wikmd/discussions/70#discussioncomment-3614896

Linbreux avatar Sep 20 '22 18:09 Linbreux

@Linbreux The sidebar on the left. I guess it's a dupe then. I thought that the macro issue is bit different than that.

adamwojt avatar Sep 20 '22 20:09 adamwojt

@adamwojt The sidebar is on the TODO list ;) We just need to find a good way to integrate it. I'll notify you when we are there!

Linbreux avatar Sep 20 '22 20:09 Linbreux

Is this still on the "not planned" list?

I think a sidebar would be really useful feature!

skjerns avatar Feb 01 '23 15:02 skjerns

Hi @skjerns, I am currently working on this. For now I'm thinking of something like the image bellow: image

On the left a customizable sidebar, maybe a yaml or something. On the right a table of contents.

Suggestions or PR's :) are always welcome.

Linbreux avatar Feb 01 '23 17:02 Linbreux

I have started on this. How does something like this look?

I think that having practically having the whole folder structure would be the best. Then on the right side we could add the table of content like in Linbreux example above.

https://github.com/Linbreux/wikmd/assets/5273682/a5e1c352-a5c4-4eb7-b874-8c8dfdd7707d

Jerakin avatar Feb 24 '24 19:02 Jerakin

@Jerakin This looks clean! Keep in mind that a bunch of people have a lot of files in there root folder (50+).

Linbreux avatar Feb 25 '24 10:02 Linbreux

Yeah, if there is a lot of files there will be a scrollbar image

Jerakin avatar Feb 25 '24 11:02 Jerakin

I was thinking that it would be really cool that if you had a structure like this

wiki/
├─ gummi/
│  ├─ cupcake.md
│  ├─ fruitcake.md
├─ gummi.md
├─ how to use the wiki.md

The the gummi.md file wouldn't show up in the list but rather it would be rendered if you pressed the gummi folder. This would require a bit of change though as currently you can press anywhere on the folder name to expand it, if we added that functionality you would need to press on the arrow only to expand it.

Meaning the menu would be rendered without the gummi.md but the folder would the page for it.

wiki/
├─ gummi/
│  ├─ cupcake.md
│  ├─ fruitcake.md
├─ how to use the wiki.md

Jerakin avatar Feb 25 '24 12:02 Jerakin