Menu

#208 RFE - add chosen text wrapping value to document saved window state

9.0.2
closed
nobody
None
Bug
minor
2018-12-21
2018-12-11
Greg Dunn
No

I would like to see the "text wrapping" preference for a document be included in the "saved window state" parameters so that the document's chosen text wrapping is saved with the document and restored when the document is re-opened..

1 Attachments

Discussion

  • Greg Dunn

    Greg Dunn - 2018-12-11

    Sorry, meant to set type as RFE. :-(

     
  • Bernard Desgraupes

    This is implemented now. The Text Wrapping state is saved as extended file attrtibute when the Record Window State item is on.
    Changes committed to the repository (rev. 1581 (sourceforge.net)). The core must be rebuilt.

     
  • Bernard Desgraupes

    • status: open --> fixed
     
  • Greg Dunn

    Greg Dunn - 2018-12-14

    I just downloaded Alpha 9.0.2d1 (devbuild) on both OS X 10.12.6 Sierra and OS X 10.10.5 Yosemite. The updated code works as expected on 10.12.6, including remembering the text wrapping state, whether saved as "on" or "off". Alpha correctly asks to wrap a file with long lines that was saved with text wrapping "off". Excellent.

    Unfortunately, on 10.10.5 Yosemite, it appears that the "text wrapping" state is always set to "on" when opening a file, even if it is manually turned "off" and the file saved with "record window state" selected. In fact, I can even open a file which has never been edited with Alpha and it will have the "text wrapping" state set to "on" as it is opened.

    If (e.g.) I disable "record window state", turn off text wrapping, reposition the window and save the file, the window size/position is not saved (correct) and the "record window state" flag is cleared (correct), but the "text wrapping" state is still "on" when the file is re-opened.

    I've tried several variations (for example, opening a file not created by Alpha) to see if there's a sequence which triggers this behavior, but it seems to be consistent no matter what steps I follow when saving a file. I do not have a global or text mode preferences file created, so it doesn't seem to be a rogue preference lurking there.

    I'll be glad to try other steps if this can't be readily reproduced. I know 10.10.5 is several versions old by now, so if this is not easily fixable, it's not a big problem to deal with.

     
  • Bernard Desgraupes

    Hi Greg,
    what is the value of the Wrap on Open preference on this Maverick machine? You find it in Alpha ↣ Preferences ↣ Global Preferences ↣ Documents.

     

    Last edit: Bernard Desgraupes 2018-12-14
  • Greg Dunn

    Greg Dunn - 2018-12-14

    Ha! That was the problem. I didn't think I had "wrap on open" set for any of my installs, but obviously I did on this one. That must have happened while I was trying to test text wrapping behavior before the update. Now it's fine. Thanks!

     
  • Bernard Desgraupes

    • status: fixed --> closed
    • Version: 9.0.1 --> 9.0.2
     

Log in to post a comment.

MongoDB Logo MongoDB