otterwiki icon indicating copy to clipboard operation
otterwiki copied to clipboard

Page Index hides folders

Open 0maunz0 opened this issue 1 year ago • 3 comments

I currently have several directories with subdirectories, e.g.:

Dir/Subdir Dir2/Subdir2

As soon as a Subdir or a Page is open, it only shows the parent directory in the page index, e.g.: Subdir2 is open --> Page Index only shows the tree starting with Dir2, Dir is no longer visible. image image

On this note, the sidebar currently doesn't handle long names very well. The name shifts one line down from the bullet: image Maybe also a setting for custom sidebar width is possible?

0maunz0 avatar Dec 08 '24 11:12 0maunz0

Hey @0maunz0, thanks for the feedback!

As soon as a Subdir or a Page is open, it only shows the parent directory in the page index, e.g.: Subdir2 is open --> Page Index only shows the tree starting with Dir2, Dir is no longer visible.

Yes, this is intended. The idea behind this was to put a focus on the current folder. If you have many many pages on a level (e.g. top) and open a folder you have to scroll to find its subpages.

On this note, the sidebar currently doesn't handle long names very well. The name shifts one line down from the bullet:

  • [ ] This needs to be improved!

Maybe also a setting for custom sidebar width is possible?

Hm, best would be to make the sidebar resizable 🤔 ...

redimp avatar Dec 08 '24 13:12 redimp

Yes, this is intended. The idea behind this was to put a focus on the current folder. If you have many many pages on a level (e.g. top) and open a folder you have to scroll to find its subpages.

I understand - maybe just showing folder is something to consider? On the other hand I guess the custom menu does mostly fill that role.

Hm, best would be to make the sidebar resizable 🤔 ...

This would be great!

0maunz0 avatar Dec 10 '24 11:12 0maunz0

On this note, the sidebar currently doesn't handle long names very well. The name shifts one line down from the bullet:

This has been fixed in v2.9.0.

redimp avatar Jan 23 '25 22:01 redimp

Is there a way to get at least the other root folders?

here's an example of how I think would be nice

Dir1
Dir2
Dir3
  |-Page1
  |-Page2
Dir4

When I then click Dir2 for example I see

Dir1
Dir2
  |-Page1
  |-Page2
  |-Page3
  |-Page4
Dir3
Dir4

Would be awesome if you could realize something like that, maybe as a additional option for SIDEBAR_MENUTREE_MODE

Bouni avatar Jun 06 '25 10:06 Bouni

Hey @Bouni, thanks for raising this up. I'm not sure if a different SIDEBAR_MENUTREE_MODE would solve this completly .. I think we need another flag here. Will look into it!

redimp avatar Jun 07 '25 20:06 redimp

Added the option SIDEBAR_MENUTREE_FOCUS that can be set to either SUBTREE or OFF. With focus set to OFF always all pages are displayed. In the Settings > Sidebar Preferences there is

Image

Released in v2.11.0.

redimp avatar Jun 22 '25 23:06 redimp

Nice, works like a charm. Thank you for implementing my FR so fast 😎

Bouni avatar Jun 23 '25 06:06 Bouni