From: Bernard D. <bde...@or...> - 2019-12-10 15:13:14
|
Hi Greg, I have fixed this. The Automatic Line Breaking parameter is now saved with the window state. This will be in the forthcoming 9.1.1 release. Thank you for reporting this issue. cheers, Bernard > Le 6 déc. 2019 à 09:22, Greg Dunn <gre...@in...> a écrit : > > Thanks for looking into this! > > I've tried several different things to try to isolate the selection issue - including creation of a new file, copy/paste of text into a blank file, etc. and it only shows up in my "text mode" files. I frequently use text mode for writings which heavily make use of the soft wrap feature, so one physical line may take up a significant number of apparent lines on the screen - if that is of any use to know. The physical lines are numbered correctly, i.e., one wrapped line (no matter how far down the page it flows) gets a unique line number in the gutter. I'm not sure how the physical vs. logical line count discrepancy is handled in Alpha when calculating where the file displays in a resizable text window, but that might point to a cause of this behavior. I don't see any other issues when resizing a window or flowing text. > > The auto line break in text mode is apparently overridden by the text mode preferences (i.e., the global line break prefs do not determine the state of auto line break in a text file). When I set the text mode preference to "off", the file maintains that status. I can set the individual file's auto line break to "on" via the pop-up menu and of course it does not get saved with the file state. Therefore, opening the file again shows auto line break "off" again in the "I" popup. > > If there is a way to have the line break state at file creation obey the mode preference but allow it to be changed and saved for an individual file, that would be nice - but I'm not sure if that would conflict with the way Alpha's mode settings operate for other modes. So I'm hesitant to suggest a change just to satisfy one user's preferred actions. Using a "magic" line is awkward for a pure text file which is intended to be shared via print or email, though it would be a possible short term workaround. > > If this is of interest to anyone else, please feel free to contribute your thoughts. > > On 12/6/19 2:25 AM, Bernard Desgraupes wrote: >> Hi Greg, >> I can’t reproduce the first issue: on reopening a file, the last position (or selection) is displayed approximately in the middle of the screen. Maybe there are additional circumstances causing what you see. >> Concerning the second point, « automatic line breaking » is not currently recorded in the window state (neither in version 9.0, nor in 9.1). This property is already controlled at different levels: >> - global preference called Line Break (in the Text panel) >> - mode-specific preference also called Line Break which some modes may define >> - magic first line of your file which can contain a (linebreak) or (nolinebreak) statement. For instance, if your file is a TeX file, your first line could be >> % -*-TeX-*- (nolinebreak) >> I could include this property in the recorded window state in a future version if you think it is useful. >> Cheers, >> Bernard >>> Le 6 déc. 2019 à 00:19, Greg Dunn <gre...@in...> a écrit : >>> >>> I was editing some files which I had created with an earlier version of Alpha 9.x and noticed that the insert cursor was placed at the correct location in the file - however the window view shows a different location in the file. Moving the insert cursor with a keyboard command of any kind pops the window view back to where the cursor is located, which is fine. >>> >>> I have "record window state" turned on, and am also using "text wrapping". As an incidental concern, even after unchecking "automatic line breaking" and then saving/closing the file, the item is checked again when re-opening the file. >>> >>> Just checking to see whether I'm overlooking a setting (or need to clear preferences since I'm trying to open a file saved in [probably] 9.0) or if this is an actual misbehavior in Alpha... >>> >>> High Sierra 10.13.6. Alpha 9.1 (8799). >>> >>> -- >>> | Greg Dunn | "And I don't think it's my | >>> | gre...@in... | fault... you never get what | >>> | The Sultan of Slack(tm) | you want." | >>> | http://www.indy.net/~gregdunn/ | Patty Griffin | >>> >>> >>> _______________________________________________ >>> AlphaCocoa-devel mailing list >>> Alp...@li... >>> https://lists.sourceforge.net/lists/listinfo/alphacocoa-devel > > > -- > | Greg Dunn | Every year is getting shorter, | > | gre...@in... | never seem to find the time | > | The Sultan of Slack(tm) | Plans that either come to nought | > | http://www.indy.net/~gregdunn/ | or half a page of scribbled lines | > | | Pink Floyd | |