Zim

Table of Contents expands on every save.

Bug #1577252 reported by Beth
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Zim
Confirmed
Undecided
Unassigned

Bug Description

Zim 0.65 - Windows or Linux.

Whenever the page I'm working is saved, the Table of Contents panel will re-expand all headers, even those whose content didn't change at all. This is a problem when you are working on a long page, because the expansion will throw the headers you are currently interested beyond the bottom of the screen, and you will need to keep scrolling after them.

Thank you!

Revision history for this message
Shane Optima (optima-shane) wrote :

I brought this up on the mailing list recently. Something that makes this bug much worse is that there is apparently some sort of auto-save functionality after editing, so typing even a single letter will fully expand the ToC in about 2 seconds.

So, you can't work around this issue by trying to remember not to save.

Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote : Re: [Bug 1577252] Re: Table of Contents expands on every save.

Can't reproduce myself. Is there any error message that gives a hint of
what goes wrong? Maybe with "--debug" enabled ?

On Sat, Mar 11, 2017 at 12:39 PM Shane Optima <email address hidden>
wrote:

> I brought this up on the mailing list recently. Something that makes
> this bug much worse is that there is apparently some sort of auto-save
> functionality after editing, so typing even a single letter will fully
> expand the ToC in about 2 seconds.
>
> So, you can't work around this issue by trying to remember not to save.
>
> --
> You received this bug notification because you are subscribed to Zim.
> https://bugs.launchpad.net/bugs/1577252
>
> Title:
> Table of Contents expands on every save.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/zim/+bug/1577252/+subscriptions
>

Revision history for this message
Shane Optima (optima-shane) wrote :

Curious. I can't NOT reproduce this. The behavior is present in 0.62 from the Debian 8 repos, it's there in 0.65, and I just confirmed it's also there in the Windows version of 0.65.

It happens when the ToC is 'floating'. It happens when it's in a side pane. It happens after pressing "\" to collapse everything. It happens after clicking to collapse individual items. It happens when I'm on a boat. It happens if I'm with a goat. Etc.

Just start Zim, enable Table of Contents plugin, make some nested headings, wait for ToC to update itself, collapse some (or all) items in the ToC, then begin typing more on the same page. In 1-7 seconds (it varies significantly), the ToC will fully expand again.

Debug just says "DEBUG: Wrote <UnixFile: /home/user/Notebooks/Notes/Home.txt>"

If there's any other tinkering I can do (...short of "go learn Python") that would be of use, please let me know. I actually use Zim regularly, and resolving this would be a significant usability enhancement for me.

Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote :

Ah - now I get what you are saying. My misunderstanding was that I though "expand" ment it grows with more and more items. But you are talking about expanding from a folded state. Should have understood that the first time :/

Will look into it

Changed in zim:
status: New → Confirmed
Revision history for this message
Shane Optima (optima-shane) wrote :

No worries, I mean you do spreekt een extra taal than most people around here. Folded / unfolded would probably be a more logical term to use.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.