folders-component icon indicating copy to clipboard operation
folders-component copied to clipboard

Fold all / unfold all please

Open LudwikJaniuk opened this issue 6 years ago • 12 comments

This is a feature request. I would like to be able to fold all folders with a button, for being able to get a quick overview.

LudwikJaniuk avatar Mar 08 '19 12:03 LudwikJaniuk

What would be the suggested UI/UX for this?

moughxyz avatar Mar 08 '19 15:03 moughxyz

Look, I'm no designer but here's a mockup: https://imgur.com/a/v5rbLJX Disregard the duplicate tag, I have some kinda issue. I'm sure it can be done much nicer and cleaner. Also, how about a recursive implementation, where each (non-leaf) node has a "fold lower"/"unfold lower" button which applies fold/unfold respectively to all children?

LudwikJaniuk avatar Mar 08 '19 16:03 LudwikJaniuk

As for UX: quickly getting an overview of all folders. Very useful when reorganizing. Unfold would be the opposite, expanding rapidly, also useful when organizing.

Now that I think about this, not to clutter the UI maybe a "reorganization mode" would be appropriate, where you're supposed to turn these options on?

LudwikJaniuk avatar Mar 08 '19 17:03 LudwikJaniuk

Perhaps a click and hold on the circle would be an appropriate UX. A dedicated link would be too distracting IMO.

moughxyz avatar Mar 11 '19 15:03 moughxyz

I agree, that sounds much better. How about discoverability?

LudwikJaniuk avatar Mar 11 '19 15:03 LudwikJaniuk

Possibly just a title attribute on the circle so on a brief hover it could say something along the lines of Press to collapse/expand, Long press to collapse/expand all.

Wording could be perfected lol

bryvin avatar Mar 11 '19 15:03 bryvin

For now I can't think of a better way than the mentioned click-and-hold. Zim implements collapsing/expanding a folder and all its children via the right-click menu, but that would diverge a lot from how things work in SN.

Either way, it will be a huge productivity boost because folder expansions sometimes really grow wild and you'll be able to clear it up with a single click.

Discoverability is an issue, but in my opinion it's to be tacked on a higher level. E.g. I missed that folders can be collapsed/extended by clicking the dots, even though this was something I've been looking forward to ever since I began using SN.

If this gets implemented, then please make sure this won't work only globally (collapsing/expanding every note down the hierarchy in "All"), but also for any folder or subfolder (e.g. in OP's example, maybe I want to expand only "Barcelona" down to the last subfolder, but leave the rest of the folders collapsed).

leafcutterant avatar Aug 08 '19 19:08 leafcutterant

Could also be alt/option + click..

moughxyz avatar Aug 09 '19 14:08 moughxyz

Could also be alt/option + click..

It could be, but that would kinda break the pattern of not requiring a keyboard for anything but typing, wouldn't it? Also, it would be hard to pull off for people such as touch screen users.

leafcutterant avatar Aug 09 '19 19:08 leafcutterant

I also dislike needing alt. Obviously bad on mobile, but also bad on desktop bc you now need both hands

LudwikJaniuk avatar Aug 11 '19 06:08 LudwikJaniuk

I've never seen long pressing in a desktop environment though. Maybe double clicking can work.

moughxyz avatar Aug 12 '19 14:08 moughxyz

I think long pressing would be safer. Some may accidentally collapse a single item with one click and then click again to expand, but they may do it too quickly and trigger a "collapse/expand this and all its children", losing the collapsed/expanded state of all child items.

Also, double-clicking/tapping is harder to do precisely on touch screens, while long pressing is not. Its "safety" would depend on getting the required hold time right.

leafcutterant avatar Nov 02 '19 15:11 leafcutterant