How can I close all notebooks with one click?

I created a lot of notebooks and some of them are nested. Is there any way that I can close (collapse) or open all of the notebooks in the sidebar with one click?

2 Likes

Create a main notebook, make the rest to be subnotebooks and collapse the main one

I think this is not a good idea. because it does not affect subnotebooks. It means when you collapse the main notebook then open it, you will see all of subnotebooks are opened

1 Like

Ah, so you are looking to have all notebooks collapsed. That makes sense and it is surprising that it doesn't already exist.

1 Like

yes, I think this is a good feature. This feature says all notebooks and subnotebooks can collapse and open with a button. I really need it because I have a lot of subnotebooks.

2 Likes

I'd like this option too :blush:

2 Likes

I agree it would be useful. Any idea how the UI should look? or how other apps might do this?

Other apps just use a modifier when you click on the collapse/expand icon.

e.g.

ctrl+left_mouse_click - collapse/expand all notebooks below the current notebook
shift+left_mouse_click - collapse/expand all notebooks at the same level of the notebook

I think a right click context menu is a must - "Collapse all Notebooks" which is what Atom has in its sidebar.
As for UI could the icon on Notebooks be utilised or is that too obscure even if it can change state?
Otherwise maybe something like image near the Notebooks + icon?

3 Likes

Here's a example how a FF plugin does this: JSON Lite – Get this Extension for 🦊 Firefox (en-US)

I am using this as an example, because aren't we storing the notebooks in json format? Or is this only for the ones that are collapsed and expanded? I definitely remember seeing JSON in a notebook context.

2 Likes

I like an interface with less buttons as possible.
I suggest just one keyboard key, “ * ”, a star or anything else to open and close all sub notebooks only.

e.g. Initial state all open :

  • Main notebook1a
    • notebook2a
      • notebook.3a
      • notebook.3b
    • notebook2b
      • notebook.3c
        • notebook4a
          • notebook.5a
          • notebook.5b

If I select “notebook2b” and press the * button, I close or open all sub-notebooks like this :

  • Main notebook1a
    • notebook2a

      • notebook.3a
      • notebook.3b
    • notebook2b
      • notebook.3c

In addition, for each notebook.

1 Like

Hi all,
In Mac OS, the alt+click key combination unrolls or closes the whole hierarchy of nested elements like folders or lists. This applies to native Apple applications, but also to those developed in coherence with the Mac interface.
It works with Adobe Lightroom for example.

1 Like

I agree. And personally I think that's all that should be necessary in the interface. Having a keyboard shortcut and command palette item would be golden.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.