Hi all,
I've come across another serious TM bug :(
It appears that TM modifies the contents of the pasteboard without the user doing the ⌘+c. If you copy a piece of rich text (or text with image data) and you just switch to TM so its window is frontmost and active, TM will go ahead and just strip all rich edit out of text and leave you with just plain text representation. You can verify this if you use any of the pasteboard history viewers. Or say you copy a large number of cells out of Numbers and you inadvertently ⌘-tab to TM, TM will freeze while it's messing up your pasteboard data.
Anyway, modifying system-wide pasteboard without any user input is really bad form. Will this ever be fixed or is MacVim the only solution for now?
Mel
Never really was one for copying rich text. Causes more hassles then it's worth in my opinion.
Regards,
-Josh___________________________________________ Joshua Kehn | Josh.Kehn@gmail.com http://joshuakehn.com
On Tuesday, April 26, 2011 at 12:45 PM, Mel Brands wrote: Hi all,
I've come across another serious TM bug :(
It appears that TM modifies the contents of the pasteboard without the user doing the ⌘+c. If you copy a piece of rich text (or text with image data) and you just switch to TM so its window is frontmost and active, TM will go ahead and just strip all rich edit out of text and leave you with just plain text representation. You can verify this if you use any of the pasteboard history viewers. Or say you copy a large number of cells out of Numbers and you inadvertently ⌘-tab to TM, TM will freeze while it's messing up your pasteboard data.
Anyway, modifying system-wide pasteboard without any user input is really bad form. Will this ever be fixed or is MacVim the only solution for now?
Mel
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
Joshua Kehn wrote:
Never really was one for copying rich text. Causes more hassles then it's worth in my opinion.
I'm not sure you're understanding the problem that Mel described.
(1) Open a TextEdit document. (2) Add a few lines of text and then style some of them: make one italic, one bold, one a different font, one centered. (3) Copy these lines with Cmd-C or the edit menu. (4) Paste them onto the end of the document just to verify that you get back what you copied, with all the styles. (5) Switch to an open TextMate window. Don't do ANYTHING. Just switch to it. (6) Switch back to TextEdit and hit Cmd-V for paste again. (7) The pasted text will have lost all of its styling.
Maybe you have a workflow in which you never, ever, ever copy styled text to the Clipboard and expect it to retain its styles. I don't usually work with styled text, either, but I can't guarantee I never will -- and Mel is absolutely right. TextMate has absolutely no business mucking about with the clipboard when no command that should touch the clipboard is invoked. This may be a bug that few people encounter, but it's a potentially serious one for people who use the clipboard a lot. (And it's one I've just opened a ticket on.)
I understand the problem, I'm saying I don't find copying already formatted text a priority.
The fact that it does muck with the clipboard would be an annoyance if you routinely tab through TextMate on your way to pasting RTF copy into another application.
Regards,
-Josh___________________________________________ Joshua Kehn | Josh.Kehn@gmail.com http://joshuakehn.com
On Tuesday, April 26, 2011 at 3:58 PM, Watts Martin wrote:
Joshua Kehn wrote:
Never really was one for copying rich text. Causes more hassles then it's worth in my opinion.
I'm not sure you're understanding the problem that Mel described.
(1) Open a TextEdit document. (2) Add a few lines of text and then style some of them: make one italic, one bold, one a different font, one centered. (3) Copy these lines with Cmd-C or the edit menu. (4) Paste them onto the end of the document just to verify that you get back what you copied, with all the styles. (5) Switch to an open TextMate window. Don't do ANYTHING. Just switch to it. (6) Switch back to TextEdit and hit Cmd-V for paste again. (7) The pasted text will have lost all of its styling.
Maybe you have a workflow in which you never, ever, ever copy styled text to the Clipboard and expect it to retain its styles. I don't usually work with styled text, either, but I can't guarantee I never will -- and Mel is absolutely right. TextMate has absolutely no business mucking about with the clipboard when no command that should touch the clipboard is invoked. This may be a bug that few people encounter, but it's a potentially serious one for people who use the clipboard a lot. (And it's one I've just opened a ticket on.)
-- Watts Martin layotl@gmail.com
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
Attachments:
- smime.p7s
On Apr 26, 2011, at 12:58 PM, Watts Martin wrote:
I'm not sure you're understanding the problem that Mel described
If that's true then you should direct your tirade at BIGHYPE for failing to provide basic info to explain/test the alleged bug. Even with your steps to replicate, which may not be what s/he/it did, it still may not be TM's fault.
I am tired of the people who automatically assume it's this or that program because of a thin thread of connection. Correlation is not causation. Then come on the list and start thumping their chest about the SERIOUS bug THEY found.
I am sure I am not the only one here who feels that some people, BIGHYPE *hint* and others, need to tone their attitude down. Being an ass, doesn't help anyone.
Mark Jackson <mrcodewizard@...> writes:
I am tired of the people who automatically assume it's this or that program because of a thin thread of connection. Correlation is not causation. Then come on the list and start thumping their chest about the SERIOUS bug THEY found.
Good grief. When did this list become so hostile and unhelpful? Yes, Mel's final sentence was somewhat flamebait-ish, but she describes a real bug which was originally reported three years ago: http://ticket.macromates.com/show?ticket_id=28925743
Mel Brands <bighype@...> writes:
Will this ever be fixed...?
Your answer, Mel, is in that original ticket.
Note added by Allan Odgaard on 2007-11-21 17:46:49
The reason for this is the way TM’s clipboard history works. There won’t be any fix for this in 1.x, but I am going to use another approach in 2.x, so this will be moot.
Ad hominem tirades and attacks are what don't help anyone.
Here's the proof:
1) Copy test/images out of Safari.
2) Paste them immediately into TextEdit.
3) Switch to TM (don't do copy/paste... just switch to it so it's frontmost and active).
4) Go back to TextEdit, do ⌘+n and ⌘+v
5) Your formatting is now gone.
I don't have any services that record pasteboard running, I've quit LaunchBar, I'm running the latest 10.6.7 OS with all updates as of today applied.
Problem is reproducible 100% to me.
Mel
On Tue, Apr 26, 2011 at 4:17 PM, Mark Jackson mrcodewizard@gmail.com wrote:
On Apr 26, 2011, at 12:58 PM, Watts Martin wrote:
I'm not sure you're understanding the problem that Mel described
If that's true then you should direct your tirade at BIGHYPE for failing to provide basic info to explain/test the alleged bug. Even with your steps to replicate, which may not be what s/he/it did, it still may not be TM's fault.
I am tired of the people who automatically assume it's this or that program because of a thin thread of connection. Correlation is not causation. Then come on the list and start thumping their chest about the SERIOUS bug THEY found.
I am sure I am not the only one here who feels that some people, BIGHYPE *hint* and others, need to tone their attitude down. Being an ass, doesn't help anyone.
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
On 26-04-2011, at 21:58, Watts Martin wrote:
Joshua Kehn wrote:
Never really was one for copying rich text. Causes more hassles then it's worth in my opinion.
I'm not sure you're understanding the problem that Mel described.
(1) Open a TextEdit document. (2) Add a few lines of text and then style some of them: make one italic, one bold, one a different font, one centered. (3) Copy these lines with Cmd-C or the edit menu. (4) Paste them onto the end of the document just to verify that you get back what you copied, with all the styles. (5) Switch to an open TextMate window. Don't do ANYTHING. Just switch to it. (6) Switch back to TextEdit and hit Cmd-V for paste again. (7) The pasted text will have lost all of its styling.
Doesn't happen for me. Step 7 gives styled text.
Berend
Berend Hasselman wrote (Tue, 26 Apr 2011 22:21:36 +0200):
On 26-04-2011, at 21:58, Watts Martin wrote: (...)
I'm not sure you're understanding the problem that Mel described.
(1) Open a TextEdit document. (2) Add a few lines of text and then style some of them: make one italic, one bold, one a different font, one centered. (3) Copy these lines with Cmd-C or the edit menu. (4) Paste them onto the end of the document just to verify that you get back what you copied, with all the styles. (5) Switch to an open TextMate window. Don't do ANYTHING. Just switch
to it.
(6) Switch back to TextEdit and hit Cmd-V for paste again. (7) The pasted text will have lost all of its styling.
Doesn't happen for me. Step 7 gives styled text.
But it happens for me, too -- TextMate 1.5.10 (1623), Mac OS X 10.6.6. Admittedly, if I would've found that bug, I probably would have thought that it isn't TextMate's fault but rather that PTH Pasteboard (a clipboard history manager that I use) is screwing something up. But it only happens when switching to TextMate (not on other applications) so I guess TextMate IS involved.
This bug doesn't bother me a lot, since I use PTH Pasteboard I always can go back to the previous clipboard entry (the styled one) -- after all, that's what a clipboard history manager is for. ;-) But I agree that this is bad behaviour.
Kind regards, Tobias Jung
On 26 Apr 2011, at 21:21, Berend Hasselman wrote:
I'm not sure you're understanding the problem that Mel described.
(1) Open a TextEdit document. (2) Add a few lines of text and then style some of them: make one italic, one bold, one a different font, one centered. (3) Copy these lines with Cmd-C or the edit menu. (4) Paste them onto the end of the document just to verify that you get back what you copied, with all the styles. (5) Switch to an open TextMate window. Don't do ANYTHING. Just switch to it. (6) Switch back to TextEdit and hit Cmd-V for paste again. (7) The pasted text will have lost all of its styling.
Doesn't happen for me. Step 7 gives styled text.
When I tried this I used the following text:
This is some plain text. This is some bold text. This is italic text. This is underlined.
Appropriately styled as per each line. When I pasted the text back in to TextEdit (step 7) all four lines were underlined and the other stylings had been lost. This happened if there was a document open in TextMate or not. If I change the order of the lines, it still comes back all underlined.
I am using OSX 10.6.7 and TextMate 1.5.10 (1623)
G.
-- I'm on a horse! http://playr.co.uk/
On 2011-04-27 06:59, Gaby Vanhegan wrote:
Appropriately styled as per each line. When I pasted the text back in to TextEdit (step 7) all four lines were underlined and the other stylings had been lost. This happened if there was a document open in TextMate or not. If I change the order of the lines, it still comes back all underlined. I am using OSX 10.6.7 and TextMate 1.5.10 (1623)
Ditto here. Same OS rev, slightly newer version of TextMate: 1.5.10 (1631)
I think the fact that everything is underlined when you paste it back into TextEdit is a red herring. That's what I got the first time, too, but I tried again after explicitly setting the style back to "Default". Just plain text, no underlining. I'm pretty sure the underlining is just due to that being the current style at your cursor position when you did the paste.
I've never noticed this before in years of using TextMate. Actually, if I'd known I might have considered it a feature. I often copy some styled text, paste it into TextMate to remove the styling, then copy and paste it from TM into something else. I could have saved a copy/paste step! :-) (But I agree with the original assessment, it's bad form to mess with the pasteboard contents.)
Totally off-topic, but there's a little app called Plain Clip that can do this for you: http://www.bluem.net/en/mac/plain-clip/
Lorin
On Apr 27, 2011, at 6:58 AM, Steve King wrote:
I've never noticed this before in years of using TextMate. Actually, if I'd known I might have considered it a feature. I often copy some styled text, paste it into TextMate to remove the styling, then copy and paste it from TM into something else. I could have saved a copy/paste step! :-) (But I agree with the original assessment, it's bad form to mess with the pasteboard contents.)
-- Steve King Sr. Software Engineer Arbor Networks +1 734 821 1461 www.arbornetworks.com http://www.arbornetworks.com/
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
On 27 April 2011 17:25, Lorin Hochstein lorinh@gmail.com wrote:
Totally off-topic, but there's a little app called Plain Clip that can do this for you: http://www.bluem.net/en/mac/plain-clip/
Totally off-topic indeed. I don't think the intention in the OP was to remove formatting, but rather the opposite.