sugarlabs / write-activity

A simple word processor for the Sugar learning environment
GNU General Public License v2.0
2 stars 25 forks source link

Feature: save and restore edit point #35

Open quozl opened 5 years ago

quozl commented 5 years ago

At the moment, the edit point is always set to the start of document.

It is common for word processor programs to open a document and position the edit point to the most recent edit point. We might do the same.

nswarup14 commented 5 years ago

@quozl I looked through all the functions of Abi.Widget from here, but did not find any methods suitable to store the last edit position. However, would it be a good feature to store the last edited page number in the document and restore the same page on opening the activity again?

Thanks!

quozl commented 5 years ago

Thanks, but no. Save and restore edit point position to the exact letter, not the page,

nswarup14 commented 5 years ago

@quozl Thanks I shall look into the methods you've mentioned above. I wasn't aware of _invoke and invokeex methods of AbiWidget before