Move the cursor position to the beginning when open a file

Bug #618710 reported by Tony Martínez
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
PyRoom
Confirmed
Undecided
Unassigned

Bug Description

When PyRoom opens a file, the cursor position is on the end of the file. When I open a file I prefer the cursor position on the beginning of the document.

I attach the changes.

I've seen this bug report right now ( https://bugs.launchpad.net/pyroom/+bug/587763 ) and the interesting feature that https://launchpad.net/~jackoneill proposes.

So it would be ok if the program could remember the last cursor position when we close a file, and also, PyRoom (imo) should move the cursor position to the beginning when a file that never has been opened is going to open the first time.

Grettings.

Revision history for this message
Tony Martínez (tonini500) wrote :
Revision history for this message
Adam Rooke (abelianr) wrote : Re: [Bug 618710] Re: Move the cursor position to the beginning when open a file

I definitely agree with default start position being top of the
document. I'm pretty certain we used to have this behaviour at some point,
but removed it for some reason?

I think it makes sense, maybe an option along the lines of "Remember
position cursor" or something?

2010/8/16 Tony Martínez <email address hidden>

>
> ** Patch added: "mod2.patch"
>
> https://bugs.launchpad.net/bugs/618710/+attachment/1493444/+files/mod2.patch
>
> --
> Move the cursor position to the beginning when open a file
> https://bugs.launchpad.net/bugs/618710
> You received this bug notification because you are a member of PyRoom
> Bug Squad, which is subscribed to PyRoom.
>

Revision history for this message
Florian Heinle (tiax) wrote :

I've been looking into saving the scrolling position. I've yet to read the docs in full, but apparently there's no easy way to get the current *scrolling* position if the mouse wheel has been used. The reason is that scrolling with the wheel doesn't change the position of the input mark but rather only the scrolling position

It would be possible, however, to save the input cursor's position, which would be the same as the scrolling position, provided the user didn't scroll with the mouse. As far as I can tell, that's the best we can do for now.

As to "start position on top" - I believe this is personal preference. Personally, I'd like to have PyRoom start at the bottom so I can pick up where I stopped writing and continue from there.

I think we should decide if a) we just implement the "save cursor position" feature b) offer another setting in preferences if pyroom should open files at the top or at the bottom. c) do both and offer "saved/top/bottom"

Revision history for this message
Florian Heinle (tiax) wrote :

Personally, I'd prefer a) save cursor position as I'd like to keep our preferences GUI as minimal as possible

Changed in pyroom:
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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