Stop Smart copy/paste in links TAB

Tell us about your wildest feature dreams. Or just harmless suggestions for improvement.
Post Reply
User avatar
sitenoise
Addicted to Bruji
Addicted to Bruji
Posts: 230
Joined: Fri Mar 21, 2008 12:42 pm
Contact:

Stop Smart copy/paste in links TAB

Post by sitenoise »

Silly, I know ... but I cut/paste the domain name a lot from the link address field to paste it into the Name field, and with smart copy/paste going on it always adds a space:

http://www.domain.com becomes www. domain.com and the the link doesn't work unless I fix it up.

just askin' ;) cause it doesn't seem like there is a reason for it to be implemented there. Unless it's a global code thing.

Why do I cut instead of paste, you ask? It's mouse buttons. If I were at the keyboard with two hands, I'd copy.
User avatar
Conor
Top Dog
Posts: 5345
Joined: Sat Jul 03, 2004 12:58 pm
Contact:

Re: Stop Smart copy/paste in links TAB

Post by Conor »

This is actually a global Apple cut behaviour, it's thinking of the domain as a word to be inserted at paste time (because you double clicked it). I run into this problem all the time using the forum when copy pasting URLs. Although we also wish the Apple way were to paste what was selected and not an extra space, it's more important that our programs behave the Mac way (not to mention removing the smarts from copy/cut/paste is tricky. Sounds easy but there is a lot of sharing of a single NSTextVIew for editing in order to save memory).

What is interesting is that the cut/copy/paste is smart enough to take into account a trailing space and make that part of the paste and cut, but not smart enough to realize there is no space prefixing the domain but a period and therefore the word should not be prefixed with a space (URLs are not even mentioned in their word selection guidelines). John Grubber has an interesting write up about it. As you will find from the article dragging to select avoids the space; so by not double clicking the domain but swiping it you get just the domain – but that might be more work than removing the space.

Apple bug database is not public but there must be reports asking for the smart copy/cut/paste to be smarter or better yet not smart at all. Let's hope this is the case in OS X 10.6 (small domestic house cat).
User avatar
sitenoise
Addicted to Bruji
Addicted to Bruji
Posts: 230
Joined: Fri Mar 21, 2008 12:42 pm
Contact:

Re: Stop Smart copy/paste in links TAB

Post by sitenoise »

I figured. I think I'll try swiping for a while. I wasn't aware of that.
Post Reply