From: Bernard D. <bde...@us...> - 2017-04-21 19:29:24
|
Eureka! I found the solution. It is in fact sooooo easy and soooo elegant ! Finally I have installed a new preference called *Copy Includes Font Info* in the *General* panel of the *Global Preferences* dialog (with value 0 by default). This preserves both multiple selections and rectangular selections. The trick was to subclass the *writablePasteboardTypes* in class *AlphaTextPane*. Changes committed to the repository ([rev. 1325](http://sourceforge.net/p/alphacocoa/code/1325/)). The core must be rebuilt. --- ** [tickets:#120] Copy copies also font info** **Status:** open **Created:** Tue Apr 04, 2017 07:31 PM UTC by Joachim Kock **Last Updated:** Fri Apr 21, 2017 11:07 AM UTC **Owner:** nobody Alpha (in contrast to AlphaX) copies text WITH formatting, instead of just copying the text as a sequence of chars. I think this is wrong, since the formatting is not an attribute of the text copied but only an artefact of how the text editor presents the text on screen. (In practical terms, when from time to time I have to edit a Word document, I always found it useful to do as much as possible of the editing in AlphaX, before pasting it into Word, where it will be inserted free of formatting. I hope this use of AlphaX can be inherited by Alpha.) If for some reason the new behaviour is deemed useful, perhaps this is not a bug report but a feature request: could we then have a prefs flag for controlling this, please? --- Sent from sourceforge.net because alp...@li... is subscribed to https://sourceforge.net/p/alphacocoa/tickets/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/alphacocoa/admin/tickets/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |