[I7] Table of Contents

Graham Nelson graham at gnelson.demon.co.uk
Sun Jan 6 17:40:46 CST 2008


On 6 Jan 2008, at 21:19, Andrew Hunter wrote:
> I agree; I left the buttons in this slightly untidy state to make  
> sure they didn't get forgotten. I was thinking the final  
> implementation should look more like the index tab: this would also  
> leave open the possibility for putting a file manager here in the  
> future.

Yes, we should bear that in mind.

> Something that will need to be resolved is what to do if we are  
> showing something like the last chapter in the first part and the  
> user clicks to go down: do we move to the first chapter in the next  
> part, or do we move to show the whole part? The problem with the  
> first case is that text at the beginning of the next part will be  
> missed, and it's not clear what to do if the next part only has  
> sections instead of chapters. The problem with the latter case is  
> that the action isn't symmetric, so clicking up after moving on will  
> take you to the whole preceding part and not back to the chapter you  
> were on before.

I think that's true, but the lesser of the evils.
That is - even though the operation is, as you
say, not self-inverse, I feel that a step up
most naturally goes to the most recent
heading not containing the current one. So

Chapter 1
   Section 1
   Section 2
Chapter 2
   Section 1

from Section 1, we go to Chapter 1, not
Section 2. But the screen would start at the
foot of Chapter 1, so the bottom tear would
be visible, and it would be easy to go down
again to Chapter 2.

Of course one option would be to display
the name of what's above and what's below
in small type, or italic, or both, above the
tear -

      Section 2 - Whatever
   /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\

Hmm. Does anyone like this idea? I'm not
sure.

> Something else that should probably be done is to hook this into the  
> undo system, so that pressing undo after changing the source view  
> will change it back again.

We also need to think about the effect of
Find (this probably needs to open the source
to the entirety?) and indeed what Replace
does if the user globally replace Volume
with Section...

--
Graham Nelson





More information about the Inform7-porters mailing list