de-jcup / eclipse-yaml-editor

Eclipse YAML editor
https://marketplace.eclipse.org/content/yaml-editor
Apache License 2.0
35 stars 10 forks source link

Folding actions: expand all /collapse all #34

Closed de-jcup closed 5 years ago

de-jcup commented 6 years ago

It's sometimes a little bit cumbersome to use folding feature : you have to select all parts wanted to be folded per mouse click.

When there are big documents and user wants a fast overview it maybe more convenient to have context menu entries inside editor about

"Expand all folding" "Collopse all foldings"

Maybe also an preference entry (disabled per default) "enable auto collapse foldings on editor startup" should be introduced as well. The quick outline and the outline are showing always complete content, so still accessible.

@PyvesB what do you think about this idea ?

PyvesB commented 6 years ago

It's a good idea in my opinion, especially with the ability to tune the default behaviour in the preferences. There's also a nice feature in some Eclipse editors, "Toggle folding", which completely hides/unhides the folding buttons from the entire editor. 😉

de-jcup commented 5 years ago

Ruler context menu has got now the actions: image

When folding is disabled, then expand/collapse all are disabled as well: image

Preferences now in ruler context menu pointing to yaml editor preferences. Also changed text and behaviour so the global setup is now only for new opened editors, but can be changed in editors explicit. image

PyvesB commented 5 years ago

Nice, adding it to the ruler context menu seems like good user experience. 👍

By the way, the latest commit on the repository doesn't show the author properly.

de-jcup commented 5 years ago

Thanks. I am using multiple devices for development. And the commit was on a machine completely reinstalled...

de-jcup commented 5 years ago

did forced push, and changed author... so commit 6375144 replaces 494627f