Bug 47746 (Collapse-expand) - "Code folding" for Writer / Collapse or expand parts of a document
Summary: "Code folding" for Writer / Collapse or expand parts of a document
Status: NEW
Alias: Collapse-expand
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
(earliest affected)
Inherited From OOo
Hardware: Other All
: medium enhancement
Assignee: Not Assigned
: 63352 96229 (view as bug list)
Depends on:
Blocks: Writer-Enhancements
  Show dependency treegraph
Reported: 2012-03-23 00:39 UTC by gleppert
Modified: 2020-01-16 07:25 UTC (History)
19 users (show)

See Also:
Crash report or crash signature:


Note You need to log in before you can comment on or make changes to this bug.
Description gleppert 2012-03-23 00:39:15 UTC
Microsoft will introduce a very neat feature in Word 15, which basically takes the idea of code folding from text editors to word processors. In long texts this can be extraordinarily helpful.

Please see here under section "Section expand and collapse": http://www.winsupersite.com/article/office/whats-coming-microsoft-word-15-142595
Comment 1 sasha.libreoffice 2012-06-18 03:43:10 UTC
Thanks for new idea.
Sorry, not found where to see on link. It is something like this Bug 38093 ?
Or completely different?
Comment 2 leighman 2012-10-03 10:13:44 UTC
Libreoffice should allow collapsing of sections .g. by toggling on the header.
Seems like this would fit well with improvements to the styling system.
Comment 3 Jared 2013-05-08 21:44:17 UTC
I have MS Office 2013 and have seen this feature.  I'll be happy to help if needed.
It "can" be a nice feature, if we're looking for parity between the two suites.
Comment 4 Owen Genat (retired) 2013-05-30 01:01:03 UTC
The link in the description is not as clear as it might be, which is understandable given it was looking toward a future product. Here is a clearer description of this feature:


A small triangular graphic indicator is set adjacent to headings to indicate collapse / expand functionality. That is all this feature does. This should make it clear that this is not same feature as indicated in bug #38093, which is more of an outline view / navigator facility i.e., that bug additionally deals with promotion / demotion and moving of headings and their related content.

In response to comment #3 please do not use the term "section" in relation to this type of feature. It has nothing to do with the Insert > Section... feature. What is being collapsed / expanded is a heading and all content that falls under this heading.

I am including this detail purely for information and clarity.
Comment 5 Owen Genat (retired) 2013-12-22 12:38:56 UTC
Added related Apache OO issue to See Also list. Version set to Inherited From OOo.
Comment 6 Owen Genat (retired) 2014-01-06 10:47:11 UTC
Setting version back from "Inherited From OOo" to what it was prior (for bugs marked enhancement), for QA tracking purposes. My mistake. Apologies.
Comment 7 Joel 2015-02-24 22:48:23 UTC
This would indeed be a very helpful feature for writing long documents! Is there any way to vote for this feature to be implemented other than subscribing to the CC list?
Comment 8 Owen Genat (retired) 2015-03-07 05:02:35 UTC
*** Bug 63352 has been marked as a duplicate of this bug. ***
Comment 9 Jean-Baptiste Faure 2016-01-10 15:47:27 UTC
*** Bug 96229 has been marked as a duplicate of this bug. ***
Comment 10 Murz 2016-04-14 07:08:07 UTC
Seems that we can do hide-show paragraphs at current Libreoffice version via macros: https://help.libreoffice.org/Writer/Hiding_Text 
Maybe we can write extension, that automate this process - creating checkbox and variable for current paragraph?
Comment 11 Paul 2018-02-22 21:50:31 UTC
This would be a tremendous feature for working on long documents, and for getting tangential material out of the way in any document. It doesn't seem it would be very hard to do, and I hope it can be done soon.
Comment 12 Franz 2018-02-25 04:31:19 UTC
This would be a very interesting feature for meeting minutes or invitations to trade fairs or conferences. Especially useful in a corporate environment.
I hope this gets worked on soon.
Comment 13 C 2018-09-11 08:42:54 UTC
Any reasonably advanced document is extraordinarily enhanced when an author has an easily collapsible and expandable outline view such as that provided by Microsoft Word.

This feature has probably been the most requested feature in OpenOffice / LibreOffice over the many years it has been asked for.

The Navigator feature is no replacement for a in-document collapsible outline feature as in Microsoft Office and other packages.

Using a hidden text expression defined through a complex and laborious process for each specified paragraph or section in Write, is certainly no answer. Point and collapse/expand hierarchies with a click of the mouse is the only way to do it.

What is interesting is OpenOffice/LibreOffice Impress, impressively does have a collapsible outline feature, however, it does not hide regular text. Calc has foldable rows, to hide rows.

Can the code from Impress or Calc be modified to provide collapsible hierarchies in Write in the form of foldable text?

Clearly the OpenOffice / LibreOffice developers are hugely retarded in this most basic understanding of writing complex documents, or the Write team do not have the technical skills to implement it. Perhaps the Impress and Calc teams have the skills?

One certainly can not complain in regard to opensource software, since the programmers have donated their time and effort for the good of all. However, those of us in the opensource field, are often vastly superior to paid programmers. Let’s try keep it that way.

Much thanks to the OpenOffice / LibreOffice teams!!!

Comment 14 Harbinger 2018-10-01 16:59:52 UTC
+1 on this feature (bug?)

The ONLY reason i still use MS Word is the only feature. As a technical writer, the ability to quickly set up an outline and flesh it out is paramount to my work and hobbies.
If LibreOffice could provide this feature, i could abandon WORD forever and focus on one application for everything text-related.

Let me encourage our volunteer devs to pursue this concept.

Comment 15 Harbinger 2018-10-01 17:01:59 UTC Comment hidden (me-too, obsolete)
Comment 16 Kaue 2018-11-10 10:47:16 UTC
This feature would make LO a wonderful One-pane outliner.
Comment 17 bbd.ids@gmail.com 2019-05-03 15:59:00 UTC
I really, desperately need this feature of text folding in LO. Please add i! Please!
Comment 18 Duns 2019-06-10 07:43:07 UTC
+1 for this very helpful feature
Comment 19 Francewhoa 2019-07-07 00:07:43 UTC
+1 for this new feature

I would be happy to contributed testing and documentation
Comment 20 aslmx 2019-07-09 20:28:23 UTC
I've been told this is possible in Word. Searched if this feature exists in LO and after some minutes I find this feature request.


 Folding text for the sake of having a better overview or because a piece of text is not needed right now is a feature i want to see in LO.
Comment 21 Jason White 2019-08-14 12:28:12 UTC
+1, As an engineer who writes out requirement trees as numbered lists this would be very, very helpful.

Realistically, what would it take to make this happen? Perhaps a small donation to one of the core developers of LibreOffice?
Comment 22 Duncan 2019-10-27 03:40:50 UTC
+1 Went searching and was disappointed to see this isn't yet implemented despite years of it being requested. Text folding is an indispensable tool, and I'm forced to continue using other software instead of switching to LibreOffice because of it.
Comment 23 kocj 2019-11-17 03:33:29 UTC
me-too I am also waiting for this future
Comment 24 Francewhoa 2020-01-16 00:11:27 UTC
+1 for this new feature. I'm happy to contribute testing and documentation if needed.

MB Squared contributed a proposal, mockups, and examples at https://ask.libreoffice.org/en/question/2596/text-folding-pretty-please/
Comment 25 Mike Kaganski 2020-01-16 06:08:25 UTC
This definitely looks like a dupe of tdf#38093 - outline mode for Writer.