Two annoyances

Posted June 10, 2008 by Franck Guadagnini

Two annoyances I've noticed in the Developement branch of WR :

  1. When I switch to full screen mode, the cursor doesn't remain where it was and goes at the top of the document. (By the way it would be fine if, when I reopen a document, the cursor would be where it was when I closed the document.)

  2. In full screen mode, with the cursor at the top (i. e.: every time I swith to it…), when I type "command-down arrow" (standard shortcut to go to the end of a doc in cocoa) the cursor doesn't go to the end, but usually somewhere in the second half of the doc, and I have to type the shortcut a second time to get the cursor properly to the end.

jesse - June 10, 2008 2:35 PM

I agree the cursor position should be maintained.

I'm not immediately able to reproduce the second problem (jump to top/bottom of document not working). Does it need to be a really long document? Any ideas for making it easier to reproduce?

Franck Guadagnini - June 11, 2008 12:14 PM

Yes, it needs to be a long document. I just tried on my iMac as well as on my macbook air, and with a 2000 words long document, it works well, although with a 100 000 words document I can reproduce the bug each time I open the doc on my two computers.

jesse - June 11, 2008 12:46 PM

Ok I think I know what's going on. The problem only happens right after you've switched into full screen mode right? So the first time you go to the end it doesn't work, but after that first time jumping to the top and bottom of the document should always work?

If that's the case then what's happening is...

When you enter full screen mode WriteRoom needs to reformat your document. For performance reasons the text view load and formats your text in a background thread. It starts at the beginning of the document and proceeds to the end. This is a nice feature because it means that even extremely large documents will appear to load instantly, but it's really only the beginning of the document that has been loaded, it takes a few seconds for the whole thing to get loaded.

So in your case I think you are trying to go to the end of the document before it has fully loaded. You are sent to the "end" of the formatted text, but after that more text is loaded in the background. My bet is that if you switch to full screen mode, wait a few seconds for everything to load, and then try to go to the end it should work as expected.

I don't really think there is a good way to get around the problem, but I hope that explanation (is correct I hope) helps you understand what is happening.

Franck Guadagnini - June 12, 2008 1:38 PM

Thanks for the explicative answer, Jesse, all your suppositions are right. I thought it was something like that, now I know. I guess I just have to wait for a couple of seconds before hitting the shortcut.

Franck Guadagnini - August 24, 2008 4:48 AM

Well, I've realized that, if, as you agree, the cursor should remain where it was when you swith to full screen mode, and as the cursor usually is at the end of the doc, where you're writing, your whole system of showing instantly the beginning of the doc while drawing the rest in the background is wrong : it's showing instantly the "page" you're writing on while drawing the rest of the doc in the background that would be the good system, no ? But I suppose that it's hard to draw the end before the beginning… So, as far as I'm concerned, I'd prefer to wait just a little more when transitionning from normal to full screen mode (it's not something you do very usually) to get the cursor when it was, ready to continue my sentence.

Topic's comments